aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-09 20:25:42 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-09 20:25:42 +0100
commit02dd96f688994b5ef4f79a7cdf940b844d6ac52b (patch)
tree070d6b63f53dbea99ddf7bcfead5afe238beaa3f
parent607f65d17145e27c3daae6543d08743ab756043d (diff)
downloadbusybox-02dd96f688994b5ef4f79a7cdf940b844d6ac52b.tar.gz
cpio: fix -o-less cpio -F FILE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/cpio.c b/archival/cpio.c
index 5eb393d57..858e59b30 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -312,7 +312,7 @@ int cpio_main(int argc UNUSED_PARAM, char **argv)
opt_complementary = "=0";
opt = getopt32(argv, OPTION_STR, &cpio_filename);
if (opt & CPIO_OPT_FILE) { /* -F */
- archive_handle->src_fd = xopen(cpio_filename, O_RDONLY);
+ xmove_fd(xopen(cpio_filename, O_RDONLY), STDIN_FILENO);
}
#else
/* _exactly_ one parameter for -p, thus <= 1 param if -p is allowed */