]> Dogcows Code - chaz/tar/blobdiff - src/names.c
Make sure transformed file names retain trailing slash in listing.
[chaz/tar] / src / names.c
index 32403b3995f8193638dd522de5f50d37dd80f988..7777dc18a20f1bd7994e295374f2b880dd06bdf0 100644 (file)
@@ -22,6 +22,7 @@
 #include <hash.h>
 #include <quotearg.h>
 #include <wordsplit.h>
+#include <argp.h>
 
 #include "common.h"
 \f
@@ -491,6 +492,8 @@ read_next_name (struct name_elt *ent, struct name_elt *ret)
          ent->v.file.term = 0;
          /* fall through */
        case file_list_success:
+         if (unquote_option)
+           unquote_string (name_buffer);
          if (handle_option (name_buffer) == 0)
            {
              name_list_adjust ();
@@ -567,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.025785 seconds and 4 git commands to generate.