Deal with package filenames which contain spaces.

Submitted by:	Ming-I Hsieh <mihs@wm28.csie.ncu.edu.tw>
PR:		15667
This commit is contained in:
jkh 2000-01-04 05:08:58 +00:00
parent 7d7d807427
commit aaeed54ed4

View File

@ -490,7 +490,7 @@ unpack(char *pkg, char *flist)
else
strcpy(args, "-z");
strcat(args, " -xpf");
if (vsystem("tar %s %s %s", args, pkg, flist ? flist : "")) {
if (vsystem("tar %s '%s' %s", args, pkg, flist ? flist : "")) {
warnx("tar extract of %s failed!", pkg);
return 1;
}