From 248cf5a5735be3d9b4bcf52f741d24857965b211 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Mon, 15 Jan 2001 09:45:16 +0000 Subject: Fix a bug arised from the ')' in the wrong place when calling printf()-like varargs function, which lead to one of the arguments was left out. This resulted in failure when inwoking mtree, warning message "mtree returned a non-zero status - continuing" and probably is the reason for zillion mtree errors on bento. --- usr.sbin/pkg_install/add/perform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index 9422c5421bf8..f53f3cd71f41 100644 --- a/usr.sbin/pkg_install/add/perform.c +++ b/usr.sbin/pkg_install/add/perform.c @@ -366,7 +366,7 @@ pkg_do(char *pkg) if (Verbose) printf("mtree -U -f %s -d -e -p %s >%s\n", MTREE_FNAME, p ? p->name : "/", _PATH_DEVNULL); if (!Fake) { - if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s >%s", MTREE_FNAME, p ? p->name : "/"), _PATH_DEVNULL) + if (vsystem("/usr/sbin/mtree -U -f %s -d -e -p %s >%s", MTREE_FNAME, p ? p->name : "/", _PATH_DEVNULL)) warnx("mtree returned a non-zero status - continuing"); } unlink(MTREE_FNAME); -- cgit v1.3