wok-4.x view busybox/stuff/busybox-1.18.1-cpio.u @ rev 7982
Fix: patch two bugs in make 3.82
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Mon Jan 17 18:24:29 2011 +0100 (2011-01-17) |
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 */