summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>2001-06-11 23:27:42 +0000
committerjkh <jkh@FreeBSD.org>2001-06-11 23:27:42 +0000
commitafe7baffadc60d490f83998cf1245b6c9ea5d39a (patch)
treee1bc7ada6d715386951b50c249ad5054f2ddb837 /usr.sbin
parentc10c4165522727877e1150ae3757de4adff6de0d (diff)
downloadFreeBSD-src-afe7baffadc60d490f83998cf1245b6c9ea5d39a.zip
FreeBSD-src-afe7baffadc60d490f83998cf1245b6c9ea5d39a.tar.gz
Properly quote recursive pkg_add operations so that filenames with
spaces or special characters in them won't barf.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/add/perform.c2
1 files changed, 1 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud