projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
607f65d
)
cpio: fix -o-less cpio -F FILE
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 9 Jan 2010 19:25:42 +0000
(20:25 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 9 Jan 2010 19:25:42 +0000
(20:25 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/cpio.c
patch
|
blob
|
history
diff --git
a/archival/cpio.c
b/archival/cpio.c
index 5eb393d57e697d5d7200b7b2db67cbc59ba4bd35..858e59b306732357a7c7a2f596e6d5182cbc84ce 100644
(file)
--- 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 */