From 77277aa67e755a79973c7e536d63ebce3fe1be92 Mon Sep 17 00:00:00 2001 From: "Jordan K. Hubbard" Date: Sun, 12 Sep 1993 20:56:40 +0000 Subject: [PATCH] Whoops - got the exclude flag wrong, try again. --- usr.sbin/pkg_install/create/perform.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index 4744a9864abe..8b0f73be3f50 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