Quellcode durchsuchen

(update_archive): Exclude pathnames if any of their components are excluded.

Paul Eggert vor 26 Jahren
Ursprung
Commit
8ae9f94ce2
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      src/update.c

+ 2 - 0
src/update.c

@@ -188,6 +188,8 @@ update_archive (void)
 
     while (path = name_from_list (), path)
       {
+	if (excluded_pathname (excluded, path))
+	  continue;
 	if (interactive_option && !confirm ("add", path))
 	  continue;
 	if (subcommand_option == CAT_SUBCOMMAND)