Ver código fonte

Fix the use of --no-recursion and --recursion options.

Each option remains in effect until cancelled by the next ocurrence
of its counterpart, as stated in the documentation.

* src/names.c (name_next_elt): Restore recursion_option from the
value of matching_flags.
Sergey Poznyakoff 11 anos atrás
pai
commit
2bd9c15391
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/names.c

+ 1 - 0
src/names.c

@@ -570,6 +570,7 @@ name_next_elt (int change_dirs)
 
 	case NELT_FMASK:
 	  matching_flags = ep->v.matching_flags;
+	  recursion_option = matching_flags & FNM_LEADING_DIR;
 	  name_list_advance ();
 	  continue;