When extracting package pass `-p' option to tar(1), so that files are

extracted with correct permissions.
This commit is contained in:
sobomax 2002-08-02 17:26:53 +00:00
parent 7e3ab43ac8
commit ea0392402a

View File

@ -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); \