]> Dogcows Code - chaz/tar/blobdiff - src/tar.c
Include indexfile.at
[chaz/tar] / src / tar.c
index ff3c5c957cf4270426b940335c4181d50aeb37a9..1e0f95ddd8f42117dd1701f9d642e5538ff0ce33 100644 (file)
--- a/src/tar.c
+++ b/src/tar.c
@@ -2198,6 +2198,16 @@ decode_options (int argc, char **argv)
       break;
     }
 
+  /* Initialize stdlis */
+  if (index_file_name)
+    {
+      stdlis = fopen (index_file_name, "w");
+      if (! stdlis)
+       open_error (index_file_name);
+    }
+  else
+    stdlis = to_stdout_option ? stderr : stdout;
+
   archive_name_cursor = archive_name_array;
 
   /* Prepare for generating backup names.  */
This page took 0.02158 seconds and 4 git commands to generate.