Explorar el Código

Update invocations of name_scan.

Sergey Poznyakoff hace 19 años
padre
commit
288315211a
Se han modificado 3 ficheros con 4 adiciones y 4 borrados
  1. 2 2
      src/delete.c
  2. 1 1
      src/incremen.c
  3. 1 1
      src/update.c

+ 2 - 2
src/delete.c

@@ -173,7 +173,7 @@ delete_archive_members (void)
 	  abort ();
 
 	case HEADER_SUCCESS:
-	  if ((name = name_scan (current_stat_info.file_name)) == NULL)
+	  if ((name = name_scan (current_stat_info.file_name, false)) == NULL)
 	    {
 	      skip_member ();
 	      break;
@@ -284,7 +284,7 @@ delete_archive_members (void)
 
 	  /* Found another header.  */
 
-	  if ((name = name_scan (current_stat_info.file_name)) != NULL)
+	  if ((name = name_scan (current_stat_info.file_name, false)) != NULL)
 	    {
 	      name->found_count++;
 	      if (ISFOUND(name))

+ 1 - 1
src/incremen.c

@@ -208,7 +208,7 @@ procdir (char *name_buffer, struct stat *stat_data,
      omit it... */
   if (one_file_system_option && device != stat_data->st_dev
       /* ... except if it was explicitely given in the command line */
-      && !((np = name_scan (name_buffer)) && np->explicit))
+      && !((np = name_scan (name_buffer, true)) && np->explicit))
     directory->children = NO_CHILDREN;
   else if (children == ALL_CHILDREN)
     directory->children = ALL_CHILDREN;

+ 1 - 1
src/update.c

@@ -131,7 +131,7 @@ update_archive (void)
 	    archive_format = current_format;
 
 	    if (subcommand_option == UPDATE_SUBCOMMAND
-		&& (name = name_scan (current_stat_info.file_name)) != NULL)
+		&& (name = name_scan (current_stat_info.file_name, false)) != NULL)
 	      {
 		struct stat s;