Put back the $PWD override behavior of revision 1.4. The concensus

*seems* to be that it was the right thing to do.
This commit is contained in:
Jordan K. Hubbard 1996-07-01 22:55:57 +00:00
parent 1b83dffc37
commit c4d74c02f2

View File

@ -396,6 +396,12 @@ 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.