Date: Thu, 27 Jun 1996 16:10:13 -0600 (MDT) From: Nate Williams <nate@mt.sri.com> To: "Jordan K. Hubbard" <jkh@time.cdrom.com> Cc: Scott Blachowicz <scott@statsci.com>, current@freebsd.org Subject: Re: Building inside of /usr/src? Message-ID: <199606272210.QAA11833@rocky.mt.sri.com> In-Reply-To: <7251.835912432@time.cdrom.com> References: <m0uZNv8-00060AC@main.statsci.com> <7251.835912432@time.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Jordan K. Hubbard writes: > > (totum)(root) # cd /usr/src/lib/libc > > (totum)(root) # unsetenv PWD > > (totum)(root) # make cleandir > > (totum)(root) # make obj > > /usr/obj/a/src/lib/libc created for /a/src/lib/libc > > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRH > HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH > HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH > HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH!! > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > > Ahem. Sorry, I feel better now! :-) > > Check this out in make: > > if ((pwd = getenv("PWD")) != NULL) { > if (stat(pwd, &sb) == 0 && sa.st_ino == sb.st_ino && > sa.st_dev == sb.st_dev) > (void) strcpy(curdir, pwd); > } > > Anyone else think that this is totally bogus and should be removed? > It certainly EXPLAINS a few things! :-) > > With all the shells in existance out there, I don't think that $PWD > should or can be trusted. Comments? Well, you already took it out, so I guess comments don't matter, but there's *probably* a reason for doing it. You're best bet would be to remove it *locally* and then test the change to see if bad things happen before spamming the repository making us find all the bugs. :( Nate
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606272210.QAA11833>