Pārlūkot izejas kodu

(read_and): Use excluded_filename instead of check_exclude.
Check base name of incoming file name, not entire file name, when
deciding whether to exclude it.

Paul Eggert 26 gadi atpakaļ
vecāks
revīzija
7962e1901b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/list.c

+ 1 - 1
src/list.c

@@ -70,7 +70,7 @@ read_and (void (*do_something) ())
 
 	  if (!name_match (current_file_name)
 	      || current_stat.st_mtime < newer_mtime_option
-	      || (exclude_option && check_exclude (current_file_name)))
+	      || excluded_filename (excluded, base_name (current_file_name)))
 	    {
 	      int isextended = 0;