wok view busybox/stuff/busybox-1.18.1-cpio.u @ rev 7776

busybox: enable filters for cpio -i and cpio -t
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 23 10:37:39 2010 +0100 (2010-12-23)
parents
children
line source
1 Enable filters for cpio -i and cpio -t
2 --- busybox-1.18.1/archival/cpio.c
3 +++ busybox-1.18.1/archival/cpio.c
4 @@ -309,7 +309,7 @@
6 #if !ENABLE_FEATURE_CPIO_O
7 /* no parameters */
8 - opt_complementary = "=0";
9 + // -i may have parameters //opt_complementary = "=0";
10 opt = getopt32(argv, OPTION_STR, &cpio_filename);
11 argv += optind;
12 if (opt & CPIO_OPT_FILE) { /* -F */
13 @@ -317,7 +317,7 @@
14 }
15 #else
16 /* _exactly_ one parameter for -p, thus <= 1 param if -p is allowed */
17 - opt_complementary = ENABLE_FEATURE_CPIO_P ? "?1" : "=0";
18 + // -i may have parameters //opt_complementary = ENABLE_FEATURE_CPIO_P ? "?1" : "=0";
19 opt = getopt32(argv, OPTION_STR "oH:" IF_FEATURE_CPIO_P("p"), &cpio_filename, &cpio_fmt);
20 argv += optind;
21 if ((opt & (CPIO_OPT_FILE|CPIO_OPT_CREATE)) == CPIO_OPT_FILE) { /* -F without -o */