diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-06-24 12:36:54 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-06-24 12:36:54 +0000 |
commit | 222e53d87d310a6eb886387908b6a8a8f764ddde (patch) | |
tree | 78fb21d71f9d8680422f85a00bc3045cd6185a99 /archival/cpio.c | |
parent | 3f112d9577b556de7e29e6dc007772972f0e96bf (diff) | |
download | busybox-w32-222e53d87d310a6eb886387908b6a8a8f764ddde.tar.gz busybox-w32-222e53d87d310a6eb886387908b6a8a8f764ddde.tar.bz2 busybox-w32-222e53d87d310a6eb886387908b6a8a8f764ddde.zip |
Nore unarchive (and doc) fixes from Laurence Anderson
git-svn-id: svn://busybox.net/trunk/busybox@2894 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'archival/cpio.c')
-rw-r--r-- | archival/cpio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/archival/cpio.c b/archival/cpio.c index ecd6f534a..101d6ec49 100644 --- a/archival/cpio.c +++ b/archival/cpio.c | |||
@@ -21,7 +21,6 @@ | |||
21 | * Limitations: | 21 | * Limitations: |
22 | * Doesn't check CRC's | 22 | * Doesn't check CRC's |
23 | * Only supports new ASCII and CRC formats | 23 | * Only supports new ASCII and CRC formats |
24 | * Doesnt support hard links | ||
25 | * | 24 | * |
26 | */ | 25 | */ |
27 | #include <fcntl.h> | 26 | #include <fcntl.h> |
@@ -45,9 +44,9 @@ extern int cpio_main(int argc, char **argv) | |||
45 | case 'i': // extract | 44 | case 'i': // extract |
46 | extract_function |= extract_all_to_fs; | 45 | extract_function |= extract_all_to_fs; |
47 | break; | 46 | break; |
48 | case 'd': // create directories | 47 | case 'd': // create _leading_ directories |
49 | extract_function |= extract_create_dirs; | 48 | extract_function |= extract_create_leading_dirs; |
50 | oldmask = umask(077); /* Make create_path act like GNU cpio */ | 49 | oldmask = umask(077); /* Make make_directory act like GNU cpio */ |
51 | break; | 50 | break; |
52 | case 'm': // preserve modification time | 51 | case 'm': // preserve modification time |
53 | extract_function |= extract_preserve_date; | 52 | extract_function |= extract_preserve_date; |