summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install/add
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-19 22:40:54 +0000
committerjkh <jkh@FreeBSD.org>1995-05-19 22:40:54 +0000
commit7afb459d6e5fe9e4b29d919b1467381493d054ed (patch)
treea2e7fa3166790571af6730731857c8ca57731c30 /usr.sbin/pkg_install/add
parentf7060dc1d946ba7f000341bf4f89df717b1e5e1f (diff)
downloadFreeBSD-src-7afb459d6e5fe9e4b29d919b1467381493d054ed.zip
FreeBSD-src-7afb459d6e5fe9e4b29d919b1467381493d054ed.tar.gz
Only apply @mode directives to files.
Don't use the -p flag to tar; it sets the files to the wrong permissions. Submitted by: jmz
Diffstat (limited to 'usr.sbin/pkg_install/add')
-rw-r--r--usr.sbin/pkg_install/add/extract.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/add/extract.c b/usr.sbin/pkg_install/add/extract.c
index 6a48ba6..4fb1767 100644
--- a/usr.sbin/pkg_install/add/extract.c
+++ b/usr.sbin/pkg_install/add/extract.c
@@ -1,5 +1,5 @@
#ifndef lint
-static const char *rcsid = "$Id: extract.c,v 1.5 1993/09/18 03:38:47 jkh Exp $";
+static const char *rcsid = "$Id: extract.c,v 1.6 1994/12/06 00:51:32 jkh Exp $";
#endif
/*
@@ -32,7 +32,7 @@ static const char *rcsid = "$Id: extract.c,v 1.5 1993/09/18 03:38:47 jkh Exp $";
#define PUSHOUT(todir) /* push out string */ \
if (strlen(where_args) > sizeof(STARTSTRING)-1) { \
- strcat(where_args, "|tar xpf - -C "); \
+ strcat(where_args, "|tar xf - -C "); \
strcat(where_args, todir); \
if (system(where_args)) \
barf("can't invoke tar pipeline"); \
@@ -40,7 +40,7 @@ static const char *rcsid = "$Id: extract.c,v 1.5 1993/09/18 03:38:47 jkh Exp $";
where_count = sizeof(STARTSTRING)-1; \
} \
if (perm_count) { \
- apply_perms(todir, perm_args); \
+ if (!isdir(todir)) apply_perms(todir, perm_args); \
perm_args[0] = 0;\
perm_count = 0; \
}
OpenPOWER on IntegriCloud