[BusyBox-cvs] busybox/archival tar.c,1.170,1.171
Glenn McGrath
bug1 at busybox.net
Sat Apr 26 13:16:48 UTC 2003
Update of /var/cvs/busybox/archival
In directory winder:/tmp/cvs-serv6025/archival
Modified Files:
tar.c
Log Message:
Always preserve date
Index: tar.c
===================================================================
RCS file: /var/cvs/busybox/archival/tar.c,v
retrieving revision 1.170
retrieving revision 1.171
diff -u -d -r1.170 -r1.171
--- tar.c 21 Apr 2003 10:07:48 -0000 1.170
+++ tar.c 26 Apr 2003 13:16:44 -0000 1.171
@@ -624,7 +624,7 @@
/* 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 @@
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) ||
More information about the busybox-cvs
mailing list