diff options
author | jkh <jkh@FreeBSD.org> | 1996-03-19 12:02:20 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-03-19 12:02:20 +0000 |
commit | f9637440628e258d3a020e80dc1ff25499403828 (patch) | |
tree | 115b277ae605b1bc0a9b52471efce78885f19871 /usr.sbin | |
parent | 59452b81ee0a6e623be5f55a96a49278b427632e (diff) | |
download | FreeBSD-src-f9637440628e258d3a020e80dc1ff25499403828.zip FreeBSD-src-f9637440628e258d3a020e80dc1ff25499403828.tar.gz |
Fix cpioVerbosity() botch when verbosity set very low.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sysinstall/media.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index 6c77800..36ac438 100644 --- a/usr.sbin/sysinstall/media.c +++ b/usr.sbin/sysinstall/media.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated to essentially a complete rewrite. * - * $Id: media.c,v 1.27 1995/12/07 10:34:00 peter Exp $ + * $Id: media.c,v 1.28 1996/03/18 15:28:01 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -426,7 +426,10 @@ mediaExtractDistBegin(char *dir, int *fd, int *zpid, int *cpid) close(1); open("/dev/null", O_WRONLY); dup2(1, 2); } - i = execl("/stand/cpio", "/stand/cpio", "-idum", cpioVerbosity(), "--block-size", mediaTapeBlocksize(), 0); + if (strlen(cpioVerbosity())) + i = execl("/stand/cpio", "/stand/cpio", "-idum", cpioVerbosity(), "--block-size", mediaTapeBlocksize(), 0); + else + i = execl("/stand/cpio", "/stand/cpio", "-idum", "--block-size", mediaTapeBlocksize(), 0); if (isDebug()) msgDebug("/stand/cpio command returns %d status\n", i); exit(i); |