From 11fed5e2e0624df1858edcff9e2d37d691ab14df Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Mon, 11 Jun 2001 23:27:42 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/pkg_install/add/perform.c b/usr.sbin/pkg_install/add/perform.c index ad5e2f015344..3f981ad72419 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)