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

Up: murrine to 0.98.1.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Jan 23 16:00:57 2011 +0000 (2011-01-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 */