From 481dc61302bc0e813ebf037bf87c1a8dc47a4e93 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Tue, 4 Jan 2000 05:08:58 +0000 Subject: Deal with package filenames which contain spaces. Submitted by: Ming-I Hsieh PR: 15667 --- usr.sbin/pkg_install/lib/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/lib/file.c b/usr.sbin/pkg_install/lib/file.c index 5c71081f73d2..bc717f9f018a 100644 --- a/usr.sbin/pkg_install/lib/file.c +++ b/usr.sbin/pkg_install/lib/file.c @@ -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; } -- cgit v1.3