mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-05 14:29:28 +00:00
Remove code which overrode the opinion of getcwd() with an often bogus
value for $PWD.
This commit is contained in:
parent
b9e1fead9e
commit
664a482fd0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16809
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user