diff options
author | Thomas Graichen <graichen@cvs.openbsd.org> | 1996-12-29 12:18:30 +0000 |
---|---|---|
committer | Thomas Graichen <graichen@cvs.openbsd.org> | 1996-12-29 12:18:30 +0000 |
commit | ffe9629a5082b592df7f244740ad5261b00a3efc (patch) | |
tree | 254a0edb71ae6578f8540d1822e7bf86805bfc11 /usr.sbin/pkg_install/create/main.c | |
parent | 6a36b63b6e39a16419ce054f6dea04e65c3add07 (diff) |
work around the missing (gtar) -T (--files-from) option of our paxtar
in pkg_create so that it should work now with paxtar (the -X option is
still missing due to missing -X - in the gtar meaning --exclude-from-file
option)
i did it by changing the FreeBSD way of doing it (open a pipe to tar with
-T - (read filenames from stdin) and give all the filenames to the pipe)
to constructing a big :-) argumentlist for tar and executing it without
the pipe (not the best solution but it works :-)
Diffstat (limited to 'usr.sbin/pkg_install/create/main.c')
-rw-r--r-- | usr.sbin/pkg_install/create/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/create/main.c b/usr.sbin/pkg_install/create/main.c index d8cc661b938..5d318d0edd8 100644 --- a/usr.sbin/pkg_install/create/main.c +++ b/usr.sbin/pkg_install/create/main.c @@ -1,7 +1,7 @@ -/* $OpenBSD: main.c,v 1.2 1996/06/04 08:43:35 niklas Exp $ */ +/* $OpenBSD: main.c,v 1.3 1996/12/29 12:18:27 graichen Exp $ */ #ifndef lint -static const char *rcsid = "$OpenBSD: main.c,v 1.2 1996/06/04 08:43:35 niklas Exp $"; +static const char *rcsid = "$OpenBSD: main.c,v 1.3 1996/12/29 12:18:27 graichen Exp $"; #endif /* @@ -94,6 +94,10 @@ main(int argc, char **argv) break; case 'X': + /* XXX this won't work until someone adds the gtar -X option + (--exclude-from-file) to paxtar - so long it is disabled + in perform.c */ + printf("WARNING: the -X option is not supported in OpenBSD\n"); ExcludeFrom = optarg; break; |