wok-4.x annotate busybox/stuff/busybox-1.10.1-cpio-mtime.u @ rev 2474
lua, lx*, lzlib: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 15 20:05:38 2009 +0000 (2009-03-15) |
parents | |
children |
rev | line source |
---|---|
pascal@644 | 1 --- busybox-1.10.0/archival/cpio.c |
pascal@644 | 2 +++ busybox-1.10.0/archival/cpio.c |
pascal@644 | 3 @@ -167,7 +167,7 @@ |
pascal@644 | 4 archive_handle = init_handle(); |
pascal@644 | 5 archive_handle->src_fd = STDIN_FILENO; |
pascal@644 | 6 archive_handle->seek = seek_by_read; |
pascal@644 | 7 - archive_handle->flags = ARCHIVE_EXTRACT_NEWER | ARCHIVE_PRESERVE_DATE; |
pascal@644 | 8 + archive_handle->flags = ARCHIVE_EXTRACT_NEWER; |
pascal@644 | 9 |
pascal@644 | 10 #if ENABLE_FEATURE_CPIO_O |
pascal@644 | 11 opt = getopt32(argv, "ituvF:dmoH:", &cpio_filename,&cpio_fmt); |
pascal@644 | 12 @@ -220,6 +220,9 @@ |
pascal@644 | 13 if (opt & CPIO_OPT_CREATE_LEADING_DIR) { |
pascal@644 | 14 archive_handle->flags |= ARCHIVE_CREATE_LEADING_DIRS; |
pascal@644 | 15 } |
pascal@644 | 16 + if (opt & CPIO_OPT_PRESERVE_MTIME) { |
pascal@644 | 17 + archive_handle->flags |= ARCHIVE_PRESERVE_DATE; |
pascal@644 | 18 + } |
pascal@644 | 19 |
pascal@644 | 20 while (optind < argc) { |
pascal@644 | 21 archive_handle->filter = filter_accept_list; |