Ahem: add new faq entry to list at top of FAQ.html
[oweals/busybox.git] / archival / cpio.c
index 8f85779c9bdfa2738f5b62ab16e4526289ccfb19..0fbe7b8e54c76982ef8be0f30f505a0b767c803f 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * Mini cpio implementation for busybox
  *
- * Copyright (C) 2001 by Glenn McGrath 
+ * Copyright (C) 2001 by Glenn McGrath
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -47,7 +47,7 @@ extern int cpio_main(int argc, char **argv)
 
        /* Initialise */
        archive_handle = init_handle();
-       archive_handle->src_fd = fileno(stdin);
+       archive_handle->src_fd = STDIN_FILENO;
        archive_handle->seek = seek_by_char;
        archive_handle->flags = ARCHIVE_EXTRACT_NEWER | ARCHIVE_PRESERVE_DATE;
 
@@ -62,7 +62,7 @@ extern int cpio_main(int argc, char **argv)
                /* if both extract and test option are given, ignore extract option */
                if (opt & CPIO_OPT_EXTRACT) {
                        opt &= ~CPIO_OPT_EXTRACT;
-               }               
+               }
                archive_handle->action_header = header_list;
        }
        if (opt & CPIO_OPT_EXTRACT) {