summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-08-01 12:13:20 +0000
committerjkh <jkh@FreeBSD.org>1996-08-01 12:13:20 +0000
commit8e3eb39d3225bac091a9b77470971be7942ae526 (patch)
treef8d1f52b21a2539921842568f670783593614646 /usr.sbin
parentb92ac389f9b92f597eb99a0a8207197b3e448bed (diff)
downloadFreeBSD-src-8e3eb39d3225bac091a9b77470971be7942ae526.zip
FreeBSD-src-8e3eb39d3225bac091a9b77470971be7942ae526.tar.gz
Put verbosity in the right place.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/lib/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c
index 8f69b96..c268ce2 100644
--- a/usr.sbin/pkg_install/lib/file.c
+++ b/usr.sbin/pkg_install/lib/file.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: file.c,v 1.21 1996/03/12 06:12:43 jkh Exp $";
+static const char *rcsid = "$Id: file.c,v 1.22 1996/06/20 18:33:51 jkh Exp $";
#endif
/*
@@ -255,8 +255,6 @@ fileGetURL(char *base, char *spec)
if (!tpid) {
dup2(fileno(ftp), 0);
i = execl("/usr/bin/tar", "tar", Verbose ? "-xzvf" : "-xzf", "-", 0);
- if (Verbose)
- printf("tar command returns %d status\n", i);
exit(i);
}
else {
@@ -264,6 +262,8 @@ fileGetURL(char *base, char *spec)
fclose(ftp);
tpid = waitpid(tpid, &pstat, 0);
+ if (Verbose)
+ printf("tar command returns %d status\n", WEXITSTATUS(pstat));
}
}
else
OpenPOWER on IntegriCloud