diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-04-26 13:16:44 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-04-26 13:16:44 +0000 |
commit | 0436461b9b10ff4fcc4ee0758483a0b5055e8496 (patch) | |
tree | 5a2b0332e28661c68bb14be0137eaccc17a4b1ff | |
parent | 759df07dfdda3bc5551c3e80ba066960b2d4f501 (diff) | |
download | busybox-w32-0436461b9b10ff4fcc4ee0758483a0b5055e8496.tar.gz busybox-w32-0436461b9b10ff4fcc4ee0758483a0b5055e8496.tar.bz2 busybox-w32-0436461b9b10ff4fcc4ee0758483a0b5055e8496.zip |
Always preserve date
git-svn-id: svn://busybox.net/trunk/busybox@6817 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | archival/tar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/archival/tar.c b/archival/tar.c index 23af9ffa3..00f9f87af 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -624,7 +624,7 @@ int tar_main(int argc, char **argv) | |||
624 | 624 | ||
625 | /* Initialise default values */ | 625 | /* Initialise default values */ |
626 | tar_handle = init_handle(); | 626 | tar_handle = init_handle(); |
627 | tar_handle->flags = ARCHIVE_CREATE_LEADING_DIRS; | 627 | tar_handle->flags = ARCHIVE_CREATE_LEADING_DIRS | ARCHIVE_PRESERVE_DATE; |
628 | 628 | ||
629 | while ((opt = getopt(argc, argv, "cjtxT:X:C:f:Opvz")) != -1) { | 629 | while ((opt = getopt(argc, argv, "cjtxT:X:C:f:Opvz")) != -1) { |
630 | switch (opt) { | 630 | switch (opt) { |
@@ -669,7 +669,6 @@ int tar_main(int argc, char **argv) | |||
669 | tar_handle->action_data = data_extract_to_stdout; | 669 | tar_handle->action_data = data_extract_to_stdout; |
670 | break; | 670 | break; |
671 | case 'p': | 671 | case 'p': |
672 | tar_handle->flags |= ARCHIVE_PRESERVE_DATE; | ||
673 | break; | 672 | break; |
674 | case 'v': | 673 | case 'v': |
675 | if ((tar_handle->action_header == header_list) || | 674 | if ((tar_handle->action_header == header_list) || |