diff options
Diffstat (limited to 'archival/cpio.c')
-rw-r--r-- | archival/cpio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/cpio.c b/archival/cpio.c index 858e59b30..e0ca7fa5c 100644 --- a/archival/cpio.c +++ b/archival/cpio.c | |||
@@ -311,6 +311,7 @@ int cpio_main(int argc UNUSED_PARAM, char **argv) | |||
311 | /* no parameters */ | 311 | /* no parameters */ |
312 | opt_complementary = "=0"; | 312 | opt_complementary = "=0"; |
313 | opt = getopt32(argv, OPTION_STR, &cpio_filename); | 313 | opt = getopt32(argv, OPTION_STR, &cpio_filename); |
314 | argv += optind; | ||
314 | if (opt & CPIO_OPT_FILE) { /* -F */ | 315 | if (opt & CPIO_OPT_FILE) { /* -F */ |
315 | xmove_fd(xopen(cpio_filename, O_RDONLY), STDIN_FILENO); | 316 | xmove_fd(xopen(cpio_filename, O_RDONLY), STDIN_FILENO); |
316 | } | 317 | } |
@@ -424,7 +425,7 @@ int cpio_main(int argc UNUSED_PARAM, char **argv) | |||
424 | if (archive_handle->cpio__blocks != (off_t)-1 | 425 | if (archive_handle->cpio__blocks != (off_t)-1 |
425 | && !(opt & CPIO_OPT_QUIET) | 426 | && !(opt & CPIO_OPT_QUIET) |
426 | ) { | 427 | ) { |
427 | printf("%"OFF_FMT"u blocks\n", archive_handle->cpio__blocks); | 428 | fprintf(stderr, "%"OFF_FMT"u blocks\n", archive_handle->cpio__blocks); |
428 | } | 429 | } |
429 | 430 | ||
430 | return EXIT_SUCCESS; | 431 | return EXIT_SUCCESS; |