projects
/
debian
/
tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autopoint too?
[debian/tar]
/
src
/
names.c
diff --git
a/src/names.c
b/src/names.c
index eecb9b075b21bd0996ae31a0ccce768b87e53a67..594e7fdd591a3116fb54dfc796c3562e7b5e983b 100644
(file)
--- a/
src/names.c
+++ b/
src/names.c
@@
-1,7
+1,7
@@
/* Various processing of names.
/* Various processing of names.
- Copyright 1988, 1992, 1994, 1996-2001, 2003-2007, 2009, 2013
Free
- Software Foundation, Inc.
+ Copyright 1988, 1992, 1994, 1996-2001, 2003-2007, 2009, 2013
-2014
+
Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@
-439,7
+439,7
@@
handle_option (const char *str)
int i;
while (*str && isspace (*str))
int i;
while (*str && isspace (*str))
- ;
+
++str
;
if (*str != '-')
return 1;
if (*str != '-')
return 1;
@@
-492,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:
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 ();
if (handle_option (name_buffer) == 0)
{
name_list_adjust ();
@@
-568,6
+570,7
@@
name_next_elt (int change_dirs)
case NELT_FMASK:
matching_flags = ep->v.matching_flags;
case NELT_FMASK:
matching_flags = ep->v.matching_flags;
+ recursion_option = matching_flags & FNM_LEADING_DIR;
name_list_advance ();
continue;
name_list_advance ();
continue;
@@
-1370,12
+1373,6
@@
new_name (const char *file_name, const char *name)
return buffer;
}
return buffer;
}
-/* Return nonzero if file NAME is excluded. */
-bool
-excluded_name (char const *name)
-{
- return excluded_file_name (excluded, name + FILE_SYSTEM_PREFIX_LEN (name));
-}
\f
/* Return the size of the prefix of FILE_NAME that is removed after
\f
/* Return the size of the prefix of FILE_NAME that is removed after