From 0436461b9b10ff4fcc4ee0758483a0b5055e8496 Mon Sep 17 00:00:00 2001 From: bug1 Date: Sat, 26 Apr 2003 13:16:44 +0000 Subject: Always preserve date git-svn-id: svn://busybox.net/trunk/busybox@6817 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- archival/tar.c | 3 +-- 1 file changed, 1 insertion(+), 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) /* Initialise default values */ tar_handle = init_handle(); - tar_handle->flags = ARCHIVE_CREATE_LEADING_DIRS; + tar_handle->flags = ARCHIVE_CREATE_LEADING_DIRS | ARCHIVE_PRESERVE_DATE; while ((opt = getopt(argc, argv, "cjtxT:X:C:f:Opvz")) != -1) { switch (opt) { @@ -669,7 +669,6 @@ int tar_main(int argc, char **argv) tar_handle->action_data = data_extract_to_stdout; break; case 'p': - tar_handle->flags |= ARCHIVE_PRESERVE_DATE; break; case 'v': if ((tar_handle->action_header == header_list) || -- cgit v1.2.3-55-g6feb