]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use env pwd instead of pwd in crunchgen.c
authorAlex Richardson <arichardson@FreeBSD.org>
Wed, 12 Aug 2020 17:27:24 +0000 (17:27 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Wed, 12 Aug 2020 17:27:24 +0000 (17:27 +0000)
commitd5c62a6f032e9fac5cf108d4a3ef0126a54dea19
tree3a9cb6384750ea9b03aacc61f5dc9a3a9d023ce7
parentf7d79f6c6d50b5ddba2ca9936345bf6f07837c1a
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