Commit Graph

25 Commits

Author SHA1 Message Date
Paul Eggert
d91f01988d Don't use "path" or "filename" to mean "file name"
in comments or local variable names.

(excluded_file_name): Renamed from excluded_filename.
All uses changed.
2005-06-02 05:02:14 +00:00
Jim Meyering
116e6fb244 Update FSF postal mail address. 2005-05-14 07:58:06 +00:00
Paul Eggert
1cc46fbf53 Sync from gnulib, to remove dependencies of other modules on unlocked-io. 2004-10-04 20:18:43 +00:00
Paul Eggert
632f0144b2 Update copyright. 2004-08-02 22:47:00 +00:00
Paul Eggert
fd0ca86dd2 (errno): Remove decl; we now assume C89 or better. 2004-08-02 22:41:37 +00:00
Jim Meyering
e3f195ba3c Update from gnulib. 2003-10-31 13:43:55 +00:00
Jim Meyering
523b7f35cd Update from gnulib. 2003-10-16 07:05:31 +00:00
Jim Meyering
bcbbea5319 Include <stdlib.h>, <string.h> unconditionally. 2003-09-10 08:31:47 +00:00
Jim Meyering
b1b4af8047 Sync with gnulib. 2003-08-18 09:44:49 +00:00
Jim Meyering
4a57eac20d Merge from gnulib. 2003-06-06 19:16:06 +00:00
Jim Meyering
58b92bbeb2 Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values. 2003-04-11 12:20:35 +00:00
Jim Meyering
0cc6e2962d Remove uses of `PARAMS'. 2003-03-19 08:14:02 +00:00
Jim Meyering
c8dd553971 revert last change 2003-03-19 08:09:20 +00:00
Jim Meyering
5f3bedb89a (excluded_filename): Define and use typedef to
avoid type mismatch in conditional expression.
2003-03-18 15:40:13 +00:00
Jim Meyering
9d89ba4161 2002-12-10 Paul Eggert <eggert@twinsun.com>
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.

(FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
defined (e.g., a pure POSIX system).
(EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
2003-01-06 13:17:48 +00:00
Jim Meyering
3eb2a22131 Include unlocked-io.h. 2001-11-17 13:29:42 +00:00
Jim Meyering
1c670cbcd2 (excluded_filename): 0 -> false, since it's a boolean context. 2001-09-30 06:26:46 +00:00
Jim Meyering
5aa9a43b0c (fnmatch_no_wildcards): Fix confusion between
usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
spotted by Jim Meyering.
2001-09-03 18:45:20 +00:00
Jim Meyering
847d1c0da7 Use ""', not <>' to #include non-system header files.
(fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
and strncasecmp as r-values.  Unixware didn't have declarations.
2001-09-01 07:28:51 +00:00
Jim Meyering
083a5e420b Merge 'exclude' changes from tar 1.13.22.
This fixes one or two unlikely storage allocation overflow bugs,
but doesn't change user-visible behavior otherwise.

(bool): Declare, perhaps by including stdbool.h.
(<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
(<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
Include	if available.
(<xalloc.h>): Include
(SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
(verify): New macro.  Use it to verify that EXCLUDE macros do not
collide with FNM macros.
(struct patopts): New struct.
(struct exclude): Use it, as exclude patterns now come with options.
(new_exclude): Support above changes.
(new_exclude, add_exclude_file):
Initial size must now be a power of two to simplify overflow checking.
(free_exclude, fnmatch_no_wildcards): New function.
(excluded_filename): No longer requires options arg, as the options
are determined by add_exclude.  Now returns bool, not int.
(excluded_filename, add_exclude):
Add support for the fancy new exclusion options.
(add_exclude, add_exclude_file): Now takes int options arg.
Check for arithmetic overflow when computing sizes.
(add_exclude_file): xrealloc might modify errno, so don't
realloc until after errno might be used.
2001-08-31 06:33:42 +00:00
Jim Meyering
0d47b4be52 Sync to the slightly more general version of GNU tar. 2000-01-12 06:37:30 +00:00
Jim Meyering
86d2f9eaa8 Use PARAMS, not __EXCLUDE_P. 1997-12-31 11:01:18 +00:00
Jim Meyering
a1003f154f remove FIXME-describe comments 1997-12-21 11:57:17 +00:00
Jim Meyering
3ba71d6de1 add FIXME-describe comments 1997-12-21 11:56:34 +00:00
Jim Meyering
cbd71d8eea . 1997-12-21 11:43:34 +00:00