wok-current diff busybox/stuff/busybox-1.10.1-cpio-mtime.u @ rev 3001

Up: alsa* (1.0.20)
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 11 21:51:38 2009 +0200 (2009-05-11)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.10.1-cpio-mtime.u	Mon May 11 21:51:38 2009 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +--- busybox-1.10.0/archival/cpio.c	
     1.5 ++++ busybox-1.10.0/archival/cpio.c	
     1.6 +@@ -167,7 +167,7 @@
     1.7 + 	archive_handle = init_handle();
     1.8 + 	archive_handle->src_fd = STDIN_FILENO;
     1.9 + 	archive_handle->seek = seek_by_read;
    1.10 +-	archive_handle->flags = ARCHIVE_EXTRACT_NEWER | ARCHIVE_PRESERVE_DATE;
    1.11 ++	archive_handle->flags = ARCHIVE_EXTRACT_NEWER;
    1.12 + 
    1.13 + #if ENABLE_FEATURE_CPIO_O
    1.14 + 	opt = getopt32(argv, "ituvF:dmoH:", &cpio_filename,&cpio_fmt);
    1.15 +@@ -220,6 +220,9 @@
    1.16 + 	if (opt & CPIO_OPT_CREATE_LEADING_DIR) {
    1.17 + 		archive_handle->flags |= ARCHIVE_CREATE_LEADING_DIRS;
    1.18 + 	}
    1.19 ++	if (opt & CPIO_OPT_PRESERVE_MTIME) {
    1.20 ++		archive_handle->flags |= ARCHIVE_PRESERVE_DATE;
    1.21 ++	}
    1.22 + 
    1.23 + 	while (optind < argc) {
    1.24 + 		archive_handle->filter = filter_accept_list;