Remove debugging statement.
[oweals/busybox.git] / cpio.c
diff --git a/cpio.c b/cpio.c
index ecd6f534a7769c73ac4f671a6d5cb48b2f6f3049..12a4340bd8b3735d1997a1c899fbe013a6a0af91 100644 (file)
--- a/cpio.c
+++ b/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;
@@ -86,7 +85,7 @@ extern int cpio_main(int argc, char **argv)
                optind++;
        }
 
-       unarchive(src_stream, &get_header_cpio, extract_function, "./", extract_names);
+       unarchive(src_stream, stdout, &get_header_cpio, extract_function, "./", extract_names);
        if (oldmask) umask(oldmask); /* Restore umask if we changed it */
        return EXIT_SUCCESS;
 }