From 64449e2a32419e4b19a17efd095bede10602cc5d Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Fri, 2 Aug 2002 17:26:53 +0000 Subject: [PATCH] When extracting package pass `-p' option to tar(1), so that files are extracted with correct permissions. --- usr.sbin/pkg_install/add/extract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/pkg_install/add/extract.c b/usr.sbin/pkg_install/add/extract.c index f74a90b99e66..83f46e312c99 100644 --- a/usr.sbin/pkg_install/add/extract.c +++ b/usr.sbin/pkg_install/add/extract.c @@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$"); #define PUSHOUT(todir) /* push out string */ \ if (where_count > (int)sizeof(STARTSTRING)-1) { \ - strcat(where_args, "|tar --unlink -xf - -C "); \ + strcat(where_args, "|tar --unlink -xpf - -C "); \ strcat(where_args, todir); \ if (system(where_args)) { \ cleanup(0); \