diff options
author | jkh <jkh@FreeBSD.org> | 1995-04-28 04:16:30 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-04-28 04:16:30 +0000 |
commit | afb65c647c312017e0b15bd4e01016f7cb1d5b6c (patch) | |
tree | 2b679fbde8e284b1d7fcf2d9995f3b849ce936ff | |
parent | 6702bdcc1ba2ea51bb08f3c1785a6f5da76b017d (diff) | |
download | FreeBSD-src-afb65c647c312017e0b15bd4e01016f7cb1d5b6c.zip FreeBSD-src-afb65c647c312017e0b15bd4e01016f7cb1d5b6c.tar.gz |
Use mtree -U instead of -u and put back error check. Thanks Rod!
-rw-r--r-- | usr.sbin/pkg_install/add/perform.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index 45da1cb..8679e95 100644 --- a/usr.sbin/pkg_install/add/perform.c +++ b/usr.sbin/pkg_install/add/perform.c @@ -1,5 +1,5 @@ #ifndef lint -static const char *rcsid = "$Id: perform.c,v 1.22 1995/04/26 15:06:26 jkh Exp $"; +static const char *rcsid = "$Id: perform.c,v 1.23 1995/04/27 11:33:08 jkh Exp $"; #endif /* @@ -316,11 +316,13 @@ 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, + printf("mtree -U -f %s -d -e -p %s\n", MTREE_FNAME, p ? p->name : "/"); - if (!Fake) - vsystem("/usr/sbin/mtree -u -f %s -d -e -p %s", - MTREE_FNAME, p ? p->name : "/")) + if (!Fake) { + if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s", + MTREE_FNAME, p ? p->name : "/")) + whinge("mtree returned a non-zero status - continuing."); + } unlink(MTREE_FNAME); } |