diff options
author | jkh <jkh@FreeBSD.org> | 1995-04-27 11:33:08 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1995-04-27 11:33:08 +0000 |
commit | 74bd1b4e5e50a7d4c0d7c2a0be31f63ded07589f (patch) | |
tree | fa500eb338925e02bdea293845a264bcfd094ab4 /usr.sbin | |
parent | 7288999f24c00e95042a766e6323a9e53313e839 (diff) | |
download | FreeBSD-src-74bd1b4e5e50a7d4c0d7c2a0be31f63ded07589f.zip FreeBSD-src-74bd1b4e5e50a7d4c0d7c2a0be31f63ded07589f.tar.gz |
Don't bother checking the return status of the mtree command - it returns
non-zero stats when it changes things, too.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/add/perform.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index cbf1e70..45da1cb 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.21 1995/04/26 07:43:30 jkh Exp $"; +static const char *rcsid = "$Id: perform.c,v 1.22 1995/04/26 15:06:26 jkh Exp $"; #endif /* @@ -318,14 +318,9 @@ pkg_do(char *pkg) if (Verbose) printf("mtree -u -f %s -d -e -p %s\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 : "/")) { - perror("error in the execution of mtree"); - unlink(MTREE_FNAME); - goto fail; - } - } + if (!Fake) + vsystem("/usr/sbin/mtree -u -f %s -d -e -p %s", + MTREE_FNAME, p ? p->name : "/")) unlink(MTREE_FNAME); } |