diff options
author | Glenn L McGrath | 2003-04-26 13:16:44 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-04-26 13:16:44 +0000 |
commit | e2aed7ffd75af80074d4b2861b4cc0a0d121b897 (patch) | |
tree | 5a2b0332e28661c68bb14be0137eaccc17a4b1ff /archival | |
parent | 91e1978ff0e46a57edaa74a1992ef24e801fc657 (diff) | |
download | busybox-e2aed7ffd75af80074d4b2861b4cc0a0d121b897.zip busybox-e2aed7ffd75af80074d4b2861b4cc0a0d121b897.tar.gz |
Always preserve date
Diffstat (limited to 'archival')
-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 23af9ff..00f9f87 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) || |