]> Dogcows Code - chaz/tar/commitdiff
Fix the use of --no-recursion and --recursion options.
authorSergey Poznyakoff <gray@gnu.org>
Thu, 9 Jan 2014 22:13:15 +0000 (00:13 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Thu, 9 Jan 2014 22:14:53 +0000 (00:14 +0200)
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.

src/names.c

index fc9841e25410d45f9ff3c3871ab676863af39d09..7777dc18a20f1bd7994e295374f2b880dd06bdf0 100644 (file)
@@ -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;
 
This page took 0.025904 seconds and 4 git commands to generate.