diff options
author | ru <ru@FreeBSD.org> | 2005-01-20 10:49:03 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-01-20 10:49:03 +0000 |
commit | 5db530c8aabca404e51eae1fe0750261df871cc3 (patch) | |
tree | ea4eaaa9e6070085f6e44b37635d4abfe83cd898 /usr.sbin/crunch/crunchgen | |
parent | 4f4d01c76f55e3e959b012189d867beaf3c0f0e3 (diff) | |
download | FreeBSD-src-5db530c8aabca404e51eae1fe0750261df871cc3.zip FreeBSD-src-5db530c8aabca404e51eae1fe0750261df871cc3.tar.gz |
In crunchgen(1), when calling make(1), don't redirect stderr to stdout,
just rely on the exit status to detect an error. This makes crunchgen(1)
safe to use with certain make(1) debugging flags.
MFC after: 1 week
Diffstat (limited to 'usr.sbin/crunch/crunchgen')
-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 7984d54..ff8b6ec 100644 --- a/usr.sbin/crunch/crunchgen/crunchgen.c +++ b/usr.sbin/crunch/crunchgen/crunchgen.c @@ -700,7 +700,7 @@ void fillin_program_objs(prog_t *p, char *path) fclose(f); - snprintf(line, MAXLINELEN, "cd %s && make -f %s crunchgen_objs 2>&1", + snprintf(line, MAXLINELEN, "cd %s && make -f %s crunchgen_objs", p->srcdir, tempfname); if ((f = popen(line, "r")) == NULL) { warn("submake pipe"); |