]> Dogcows Code - chaz/tar/commitdiff
(addname,add_hierarchy_to_namelist): Initialize explicit member appropriately.
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 13 Dec 2005 13:32:29 +0000 (13:32 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 13 Dec 2005 13:32:29 +0000 (13:32 +0000)
src/names.c

index e6082d856af00b1532edca3c2fe133652b5dc9d7..2b24231efe4571abc341a41405ae7a213afed910 100644 (file)
@@ -209,6 +209,7 @@ name_add (const char *name)
     }
   name_array[names++] = name;
 }
+
 \f
 /* Names from external name file.  */
 
@@ -428,7 +429,8 @@ addname (char const *string, int change_dir)
   name->firstch = 1;           /* assume first char is literal */
   name->change_dir = change_dir;
   name->dir_contents = 0;
-
+  name->explicit = 1;
+  
   if (string && is_pattern (string))
     {
       name->regexp = 1;
@@ -708,6 +710,8 @@ add_hierarchy_to_namelist (struct name *name, dev_t device)
          string_length = strlen (string);
          if (*string == 'D')
            {
+             struct name *np;
+             
              if (allocated_length <= name_length + string_length)
                {
                  do
@@ -721,8 +725,9 @@ add_hierarchy_to_namelist (struct name *name, dev_t device)
                  namebuf = xrealloc (namebuf, allocated_length + 1);
                }
              strcpy (namebuf + name_length, string + 1);
-             add_hierarchy_to_namelist (addname (namebuf, change_dir),
-                                        device);
+             np = addname (namebuf, change_dir);
+             np->explicit = 0;
+             add_hierarchy_to_namelist (np, device);
            }
        }
 
This page took 0.024953 seconds and 4 git commands to generate.