]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use env pwd instead of pwd in crunchgen.c
authorarichardson <arichardson@FreeBSD.org>
Wed, 12 Aug 2020 17:27:24 +0000 (17:27 +0000)
committerarichardson <arichardson@FreeBSD.org>
Wed, 12 Aug 2020 17:27:24 +0000 (17:27 +0000)
commit324a5cdbba1977c70667e262e2b723e9ad3e4a74
tree3a9cb6384750ea9b03aacc61f5dc9a3a9d023ce7
parentb5e6195d82c61a2ff0292f752c4f79fad75c7d87
Use env pwd instead of pwd in crunchgen.c

In r364166 I changed /bin/pwd to pwd, but pwd can be shell builtin that
may not correctly return a real path. To ensure that all symlinks are
resolved use `env pwd -P` instead (the -P flag is part of POSIX so
should be supported everywhere).

Reported By: rgrimes
Suggested By: jrtc27
usr.sbin/crunch/crunchgen/crunchgen.c