aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-10 04:16:43 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-10 04:16:43 +0200
commitff0e875e02487b61dcc520b295feb6477b859065 (patch)
tree234845d306bf04446b9839c51b06d18d5f9dc9a6 /archival
parent572b9a3019caf0929a41a45e1f3a8c7e59ec141c (diff)
downloadbusybox-ff0e875e02487b61dcc520b295feb6477b859065.tar.gz
work on adding testsuite runs to randomconfig test builds
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival')
-rw-r--r--archival/cpio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/archival/cpio.c b/archival/cpio.c
index 2698f0791..e0ca7fa5c 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -311,6 +311,7 @@ int cpio_main(int argc UNUSED_PARAM, char **argv)
/* no parameters */
opt_complementary = "=0";
opt = getopt32(argv, OPTION_STR, &cpio_filename);
+ argv += optind;
if (opt & CPIO_OPT_FILE) { /* -F */
xmove_fd(xopen(cpio_filename, O_RDONLY), STDIN_FILENO);
}