diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-01-14 13:20:51 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-01-14 13:20:51 +0000 |
commit | d630e088d28f0775bdbeb914e138aaa78e877b72 (patch) | |
tree | 49364b4b299fddb0fa5f7d82c5e68e6c8b7382eb /usr.sbin/pkg_install/add/extract.c | |
parent | 48460329742003a375df507854c04a429e451d08 (diff) |
feed tar the -p option to retain set[ug]id bits, this was due
to the fact that GNU tar retatins the bits when run as root, but paxtar does
not, and we use the latter.
Diffstat (limited to 'usr.sbin/pkg_install/add/extract.c')
-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 3add2b04442..ff1cc588ff5 100644 --- a/usr.sbin/pkg_install/add/extract.c +++ b/usr.sbin/pkg_install/add/extract.c @@ -1,7 +1,7 @@ -/* $OpenBSD: extract.c,v 1.2 1996/06/04 08:43:32 niklas Exp $ */ +/* $OpenBSD: extract.c,v 1.3 1998/01/14 13:20:50 niklas Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: extract.c,v 1.2 1996/06/04 08:43:32 niklas Exp $"; +static const char *rcsid = "$OpenBSD: extract.c,v 1.3 1998/01/14 13:20:50 niklas Exp $"; #endif /* @@ -34,7 +34,7 @@ static const char *rcsid = "$OpenBSD: extract.c,v 1.2 1996/06/04 08:43:32 niklas #define PUSHOUT(todir) /* push out string */ \ if (strlen(where_args) > sizeof(STARTSTRING)-1) { \ - strcat(where_args, "|tar xf - -C "); \ + strcat(where_args, "|tar xpf - -C "); \ strcat(where_args, todir); \ if (system(where_args)) \ barf("can't invoke tar pipeline"); \ |