aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archival/tar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/archival/tar.c b/archival/tar.c
index 45701c985..503db5f78 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -818,6 +818,10 @@ int tar_main(int argc UNUSED_PARAM, char **argv)
818 | ARCHIVE_PRESERVE_DATE 818 | ARCHIVE_PRESERVE_DATE
819 | ARCHIVE_EXTRACT_UNCONDITIONAL; 819 | ARCHIVE_EXTRACT_UNCONDITIONAL;
820 820
821 /* Apparently only root's tar preserves parms (see bug 3844) */
822 if (getuid() != 0)
823 tar_handle->ah_flags |= ARCHIVE_NOPRESERVE_PERM;
824
821 /* Prepend '-' to the first argument if required */ 825 /* Prepend '-' to the first argument if required */
822 opt_complementary = "--:" // first arg is options 826 opt_complementary = "--:" // first arg is options
823 "tt:vv:" // count -t,-v 827 "tt:vv:" // count -t,-v