diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-19 22:40:54 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-19 22:40:54 +0000 |
| commit | ceb1d42782c796d89f20a591374d6dd7a848dc50 (patch) | |
| tree | a2e7fa3166790571af6730731857c8ca57731c30 /usr.sbin/pkg_install | |
| parent | 606ec289aa7638e12d0a28760e5011e38c9142ff (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg_install')
| -rw-r--r-- | usr.sbin/pkg_install/add/extract.c | 6 |
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 6a48ba6d4598..4fb176725402 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; \ } |
