aboutsummaryrefslogtreecommitdiff
path: root/cpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpio.c')
-rw-r--r--cpio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpio.c b/cpio.c
index ecd6f534a..101d6ec49 100644
--- a/cpio.c
+++ b/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;