summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1993-09-12 20:56:40 +0000
committerjkh <jkh@FreeBSD.org>1993-09-12 20:56:40 +0000
commitb1c65574c1b43503f2318fec8b537ae3ea4b4058 (patch)
tree7710e724f13de028d3303557a44b93c1fda96db0 /usr.sbin
parenta0cfa510c6755a7083a8c3fc5d73c2f41f2ffdb0 (diff)
downloadFreeBSD-src-b1c65574c1b43503f2318fec8b537ae3ea4b4058.zip
FreeBSD-src-b1c65574c1b43503f2318fec8b537ae3ea4b4058.tar.gz
Whoops - got the exclude flag wrong, try again.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/create/perform.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c
index 4744a98..8b0f73b 100644
--- a/usr.sbin/pkg_install/create/perform.c
+++ b/usr.sbin/pkg_install/create/perform.c
@@ -139,18 +139,21 @@ make_dist(char *home, char *pkg, char *suffix, Package *plist)
{
char tball[FILENAME_MAX];
char args[10];
+ int ret;
args[0] = '\0';
- if (ExcludeFrom)
- sprintf(args, "-X %s ", ExcludeFrom);
sprintf(tball, "%s/%s.%s", home, pkg, suffix);
if (index(suffix, 'z')) /* Compress/gzip? */
strcat(args, "z");
if (Verbose)
printf("Creating gzip'd tar ball in '%s', contents:\n", tball);
strcat(args, "cf");
- if (vsystem("tar %s %s .", args, tball))
- barf("tar command failed!");
+ if (ExcludeFrom)
+ ret = vsystem("tar %sX %s %s .", args, tball, ExcludeFrom);
+ else
+ ret = vsystem("tar %s %s .", args, tball);
+ if (ret)
+ barf("tar command failed with code %d", ret);
}
static void
OpenPOWER on IntegriCloud