Nore unarchive (and doc) fixes from Laurence Anderson

This commit is contained in:
Glenn L McGrath
2001-06-24 12:36:54 +00:00
parent 1557626897
commit 2e6d3cfa82
11 changed files with 49 additions and 50 deletions

View File

@ -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;