diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2020-08-14 09:45:41 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2020-08-14 09:45:41 +0000 |
commit | 0d5e65186195325557d4b0a8331d066a85818e01 (patch) | |
tree | b1b02495fa83ea9d38f029077e8c394ce779143e /usr.sbin | |
parent | 9b9210015db6f63ab47b5b8eace1adf484630949 (diff) | |
download | src-0d5e65186195325557d4b0a8331d066a85818e01.tar.gz src-0d5e65186195325557d4b0a8331d066a85818e01.zip |
crunchgen: use pwd -P without env
The -P flag is required by POSIX so we don't have to care whether pwd is
a shell builtin or not. This also allows removing pwd from the list of
bootstrap tools since all shells we care about for building have a
builtin pwd command. This effectively reverts r364190.
Suggested By: rgrimes, jrtc27
Notes
Notes:
svn path=/head/; revision=364234
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/crunch/crunchgen/crunchgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.c b/usr.sbin/crunch/crunchgen/crunchgen.c index 914795be7a21..5a3200ed7fac 100644 --- a/usr.sbin/crunch/crunchgen/crunchgen.c +++ b/usr.sbin/crunch/crunchgen/crunchgen.c @@ -653,7 +653,7 @@ fillin_program(prog_t *p) /* Determine the actual srcdir (maybe symlinked). */ if (p->srcdir) { - snprintf(line, MAXLINELEN, "cd %s && env pwd -P", p->srcdir); + snprintf(line, MAXLINELEN, "cd %s && pwd -P", p->srcdir); f = popen(line,"r"); if (!f) errx(1, "Can't execute: %s\n", line); |