Redirect stdout from mtree to /dev/null; we don't really need to know

the list of directories being created when we install a package.
This commit is contained in:
Satoshi Asami 2000-01-03 22:59:27 +00:00
parent 40b27503d8
commit a9758dac1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55367

View File

@ -363,9 +363,9 @@ pkg_do(char *pkg)
printf("Running mtree for %s..\n", PkgName);
p = find_plist(&Plist, PLIST_CWD);
if (Verbose)
printf("mtree -U -f %s -d -e -p %s\n", MTREE_FNAME, p ? p->name : "/");
printf("mtree -U -f %s -d -e -p %s >/dev/null\n", MTREE_FNAME, p ? p->name : "/");
if (!Fake) {
if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s", MTREE_FNAME, p ? p->name : "/"))
if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s >/dev/null", MTREE_FNAME, p ? p->name : "/"))
warnx("mtree returned a non-zero status - continuing");
}
unlink(MTREE_FNAME);