diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-07-11 17:32:14 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-07-11 17:32:14 +0000 |
commit | 34f6c9190165c1263ed6aee5381a1123c35cf2c0 (patch) | |
tree | 06b6690e1666bbdccc2b7bb809f3c1bbd8ce2ac3 /archival | |
parent | 0e084e45ee8af16e254f3176ae28a2552c7bcaca (diff) | |
download | busybox-w32-34f6c9190165c1263ed6aee5381a1123c35cf2c0.tar.gz busybox-w32-34f6c9190165c1263ed6aee5381a1123c35cf2c0.tar.bz2 busybox-w32-34f6c9190165c1263ed6aee5381a1123c35cf2c0.zip |
Allow unarchive to redirect stdout (tobe used by dpkg applet)
git-svn-id: svn://busybox.net/trunk/busybox@3070 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival')
-rw-r--r-- | archival/ar.c | 2 | ||||
-rw-r--r-- | archival/cpio.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/archival/ar.c b/archival/ar.c index 09a4a8894..2a764ff5e 100644 --- a/archival/ar.c +++ b/archival/ar.c | |||
@@ -84,6 +84,6 @@ extern int ar_main(int argc, char **argv) | |||
84 | optind++; | 84 | optind++; |
85 | } | 85 | } |
86 | 86 | ||
87 | unarchive(src_stream, &get_header_ar, extract_function, "./", extract_names); | 87 | unarchive(src_stream, stdout, &get_header_ar, extract_function, "./", extract_names); |
88 | return EXIT_SUCCESS; | 88 | return EXIT_SUCCESS; |
89 | } | 89 | } |
diff --git a/archival/cpio.c b/archival/cpio.c index 101d6ec49..12a4340bd 100644 --- a/archival/cpio.c +++ b/archival/cpio.c | |||
@@ -85,7 +85,7 @@ extern int cpio_main(int argc, char **argv) | |||
85 | optind++; | 85 | optind++; |
86 | } | 86 | } |
87 | 87 | ||
88 | unarchive(src_stream, &get_header_cpio, extract_function, "./", extract_names); | 88 | unarchive(src_stream, stdout, &get_header_cpio, extract_function, "./", extract_names); |
89 | if (oldmask) umask(oldmask); /* Restore umask if we changed it */ | 89 | if (oldmask) umask(oldmask); /* Restore umask if we changed it */ |
90 | return EXIT_SUCCESS; | 90 | return EXIT_SUCCESS; |
91 | } | 91 | } |