diff options
Diffstat (limited to 'archival')
-rw-r--r-- | archival/cpio.c | 7 | ||||
-rw-r--r-- | archival/dpkg_deb.c | 2 |
2 files changed, 4 insertions, 5 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; |
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index b1cbb1bbc..7f4dcbf01 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c | |||
@@ -26,7 +26,7 @@ extern int dpkg_deb_main(int argc, char **argv) | |||
26 | char *output_buffer = NULL; | 26 | char *output_buffer = NULL; |
27 | int opt = 0; | 27 | int opt = 0; |
28 | int arg_type = 0; | 28 | int arg_type = 0; |
29 | int deb_extract_funct = extract_create_dirs | extract_unconditional; | 29 | int deb_extract_funct = extract_create_leading_dirs | extract_unconditional; |
30 | 30 | ||
31 | const int arg_type_prefix = 1; | 31 | const int arg_type_prefix = 1; |
32 | const int arg_type_field = 2; | 32 | const int arg_type_field = 2; |