From afe7baffadc60d490f83998cf1245b6c9ea5d39a Mon Sep 17 00:00:00 2001 From: jkh Date: Mon, 11 Jun 2001 23:27:42 +0000 Subject: Properly quote recursive pkg_add operations so that filenames with spaces or special characters in them won't barf. --- usr.sbin/pkg_install/add/perform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index ad5e2f0..3f981ad 100644 --- a/usr.sbin/pkg_install/add/perform.c +++ b/usr.sbin/pkg_install/add/perform.c @@ -260,7 +260,7 @@ pkg_do(char *pkg) if (cp) { if (Verbose) printf("Loading it from %s.\n", cp); - if (vsystem("pkg_add %s%s", Verbose ? "-v " : "", cp)) { + if (vsystem("pkg_add %s'%s'", Verbose ? "-v " : "", cp)) { warnx("autoload of dependency `%s' failed%s", cp, Force ? " (proceeding anyway)" : "!"); if (!Force) -- cgit v1.1