summaryrefslogtreecommitdiff
path: root/archival/cpio.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-01-05 04:43:21 +0100
committerDenys Vlasenko2010-01-05 04:43:21 +0100
commitaf1c8e8be070f2121d5d977c5ed7a7f60c03a6dc (patch)
tree7f0bc3627ab6b07baf8d8b835e5d47f5c9cb34c5 /archival/cpio.c
parent074e8dcba76ac2a313d6a14ca2289e648f926b25 (diff)
downloadbusybox-af1c8e8be070f2121d5d977c5ed7a7f60c03a6dc.zip
busybox-af1c8e8be070f2121d5d977c5ed7a7f60c03a6dc.tar.gz
cpio: fix unpacking of names with leading slashes
function old new delta get_header_cpio 968 990 +22 cpio_main 533 526 -7 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/cpio.c')
-rw-r--r--archival/cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/cpio.c b/archival/cpio.c
index 5c16678..067d6e8 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -364,7 +364,7 @@ int cpio_main(int argc UNUSED_PARAM, char **argv)
#endif
archive_handle = init_handle();
- archive_handle->src_fd = STDIN_FILENO;
+ /* archive_handle->src_fd = STDIN_FILENO; - done by init_handle */
archive_handle->seek = seek_by_read;
archive_handle->ah_flags = ARCHIVE_EXTRACT_NEWER;