summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchgen
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1998-01-22 19:34:31 +0000
committersos <sos@FreeBSD.org>1998-01-22 19:34:31 +0000
commite22d07fc0f4458653bf3eee3e9ece3c13af6c433 (patch)
tree17cc3494632c5e09c172b8778af182995432843c /usr.sbin/crunch/crunchgen
parent197bd655c435302ddb4156bc654705dfef1d9143 (diff)
downloadFreeBSD-src-e22d07fc0f4458653bf3eee3e9ece3c13af6c433.zip
FreeBSD-src-e22d07fc0f4458653bf3eee3e9ece3c13af6c433.tar.gz
Use /bin/pwd instead of a potentially shell builtin that does
not return the "real" path. This makes it possible to have the .o files put in the /usr/obj hierachy instead of in the /usr/src one.
Diffstat (limited to 'usr.sbin/crunch/crunchgen')
-rw-r--r--usr.sbin/crunch/crunchgen/crunchgen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/crunch/crunchgen/crunchgen.c b/usr.sbin/crunch/crunchgen/crunchgen.c
index 946cbd1..43cf9c7 100644
--- a/usr.sbin/crunch/crunchgen/crunchgen.c
+++ b/usr.sbin/crunch/crunchgen/crunchgen.c
@@ -487,7 +487,7 @@ void fillin_program(prog_t *p)
if(!p->objdir && p->srcdir) {
FILE *f;
- sprintf(path, "cd %s && echo -n /usr/obj/`pwd`", p->srcdir);
+ sprintf(path, "cd %s && echo -n /usr/obj`/bin/pwd`", p->srcdir);
p->objdir = p->srcdir;
f = popen(path,"r");
if (f) {
@@ -497,8 +497,6 @@ void fillin_program(prog_t *p)
p->objdir = strdup(path);
}
}
-
-
}
if(p->srcdir) sprintf(path, "%s/Makefile", p->srcdir);
OpenPOWER on IntegriCloud