Remove code which overrode the opinion of getcwd() with an often bogus

value for $PWD.
This commit is contained in:
jkh 1996-06-27 21:59:25 +00:00
parent 9cf0a3d345
commit 4977bf83a9

View File

@ -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.