Properly quote recursive pkg_add operations so that filenames with

spaces or special characters in them won't barf.
This commit is contained in:
Jordan K. Hubbard 2001-06-11 23:27:42 +00:00
parent f9f6897972
commit 11fed5e2e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78118

View file

@ -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)