]> Dogcows Code - chaz/tar/commitdiff
(name_next): If file names are given both in the
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 1999 13:04:17 +0000 (13:04 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 3 Dec 1999 13:04:17 +0000 (13:04 +0000)
command line (e.g. via -C) and in a file (via -T), do not
ignore the command-line names.

src/names.c

index 8674ec92613c052eb46d6bd4d76cd2cbe4eeb5ab..89afe185ce7fc81e17bab9860e9dd18309318424 100644 (file)
@@ -344,16 +344,15 @@ name_next (int change_dirs)
     {
       /* Get a name, either from file or from saved arguments.  */
 
-      if (name_file)
+      if (name_index == names)
        {
-         if (!read_name_from_file ())
+         if (! name_file)
+           break;
+         if (! read_name_from_file ())
            break;
        }
       else
        {
-         if (name_index == names)
-           break;
-
          source = name_array[name_index++];
          if (strlen (source) > name_buffer_length)
            {
This page took 0.024894 seconds and 4 git commands to generate.