summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorGlenn L McGrath2001-06-24 12:36:54 +0000
committerGlenn L McGrath2001-06-24 12:36:54 +0000
commit2e6d3cfa82eb64fffe53ccb5669aa7146228cf8f (patch)
tree78fb21d71f9d8680422f85a00bc3045cd6185a99 /archival
parent15576268971168108f289cac6d6ecc6fdbb5075e (diff)
downloadbusybox-2e6d3cfa82eb64fffe53ccb5669aa7146228cf8f.zip
busybox-2e6d3cfa82eb64fffe53ccb5669aa7146228cf8f.tar.gz
Nore unarchive (and doc) fixes from Laurence Anderson
Diffstat (limited to 'archival')
-rw-r--r--archival/cpio.c7
-rw-r--r--archival/dpkg_deb.c2
2 files changed, 4 insertions, 5 deletions
diff --git a/archival/cpio.c b/archival/cpio.c
index ecd6f53..101d6ec 100644
--- a/archival/cpio.c
+++ b/archival/cpio.c
@@ -21,7 +21,6 @@
* Limitations:
* Doesn't check CRC's
* Only supports new ASCII and CRC formats
- * Doesnt support hard links
*
*/
#include <fcntl.h>
@@ -45,9 +44,9 @@ extern int cpio_main(int argc, char **argv)
case 'i': // extract
extract_function |= extract_all_to_fs;
break;
- case 'd': // create directories
- extract_function |= extract_create_dirs;
- oldmask = umask(077); /* Make create_path act like GNU cpio */
+ case 'd': // create _leading_ directories
+ extract_function |= extract_create_leading_dirs;
+ oldmask = umask(077); /* Make make_directory act like GNU cpio */
break;
case 'm': // preserve modification time
extract_function |= extract_preserve_date;
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index b1cbb1b..7f4dcbf 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -26,7 +26,7 @@ extern int dpkg_deb_main(int argc, char **argv)
char *output_buffer = NULL;
int opt = 0;
int arg_type = 0;
- int deb_extract_funct = extract_create_dirs | extract_unconditional;
+ int deb_extract_funct = extract_create_leading_dirs | extract_unconditional;
const int arg_type_prefix = 1;
const int arg_type_field = 2;