From 664a482fd0bbd81fc2db70fd8f9be33ac5510d1e Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Thu, 27 Jun 1996 21:59:25 +0000 Subject: [PATCH] Remove code which overrode the opinion of getcwd() with an often bogus value for $PWD. --- usr.bin/make/main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 4094276d236..c3608f35ee9 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -396,12 +396,6 @@ main(argc, argv) exit(2); } - 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); - } - /* * Get the name of this type of MACHINE from utsname * so we can share an executable for similar machines.