Fix Savannah bug #20751.
[findutils.git] / ChangeLog
blob2fc87b161d00faf4f971b2e0187c482c1c3b5f39
1 2007-08-18  Eric Blake  <ebb9@byu.net>
3         Fix Savannah bug #20751.
4         * lib/listfile.c (list_file): Accomodate gnulib change of 3 Jul
5         2006.
6         * NEWS: Document this.
7         Reported by Nigel Stepp.
8         * THANKS: Sort and update.
9         * AUTHORS: Add myself.
11 2007-08-05  Eric Blake  <ebb9@byu.net>
13         Fix Savannah bugs #20662, #20688.
14         * find/find.c (at_top): Avoid memory leak.
15         * find/pred.c (do_fprintf, pred_iname, pred_name): Likewise.
16         (pred_name_common): New function, factored from pred_iname and
17         pred_name.
18         * find/parser.c (check_name_arg): Let -nowarn silence -name /.
19         * locate/locate.c (visit_basename): Avoid memory leak.
20         * NEWS: Document the changes.
21         * doc/find.texi (Warning Messages): Document -nowarn's effect on
22         -name and -iname.
23         * find/testsuite/find.gnu/name-slash.exp: New test, to ensure
24         20662 doesn't regress on '-name /', and that 20688 silences the
25         warning.
26         * find/testsuite/find.gnu/printf-slash.exp: Likewise.
27         * find/testsuite/find.gnu/name-slash.xo: Expected results.
28         * find/testsuite/find.gnu/printf-slash.xo: Likewise.
29         * find/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
30         Distribute new tests.
32 2007-07-31  Eric Blake  <ebb9@byu.net>
34         Allow choice of default arg size, Savannah bug #20594.
35         * configure.ac (DEFAULT_ARG_SIZE): Check environment for a default
36         size override.
37         * lib/buildcmd.c (bc_use_sensible_arg_max): Use default size from
38         configure, if requested.
39         * README (DEFAULT_ARG_SIZE): Mention the ability to tune this at
40         configure time.
41         * NEWS: Document the change.
43 2007-07-29  James Youngman  <jay@gnu.org>
45         * tr.po: Updated from Translation Project.
47 2007-07-26  Eric Blake  <ebb9@byu.net>
49         * doc/.cvsignore: Ignore more generated documentation.
51 2007-07-23  Eric Blake  <ebb9@byu.net>
53         * find/parser.c (parse_version): Avoid compiler warning.
54         * locate/code.c (includes): Likewise.
56 2007-07-22  Eric Blake  <ebb9@byu.net>
58         * po/POTFILES.in: Add lib/findutils-version.c.
60 2007-07-22  James Youngman  <jay@gnu.org>
62         * find/find.1: Corrected a number of typos and fixed up the
63         alphabetical section ordering.  This fixes Savannah bug #20552.
65         Version banners now comply with the GNU coding standard.
66         * find/parser.c (parse_version): Use display_findutils_version()
67         instead of printing the information manually.  Don't include
68         gnulib-version.h since we no longer directly use that header.
69         * lib/findutils-version.c: Added
70         * lib/findutils-version.h: Added
71         * import-gnulib.config (modules): Added version-etc and
72         version-etc-fsf.
73         * lib/Makefile.am (libfind_a_SOURCES): added findutils-version.c.
74         * find/version.c: Removed
75         * find/Makefile.am: Remove version.c
76         * locate/Makefile.am: Don't link ../find/version.o
77         * xargs/Makefile.am: Ditto
78         * xargs/xargs.c (main): Use display_findutils_version()
79         * locate/code.c (main): Ditto
80         * locate/frcode.c (main): Ditto
81         * locate/locate.c (dolocate): Ditto
82         * locate/updatedb.sh (version): Display copyright information in
83         the right format.   Also ensure that we exit with a nonzero status
84         if there was an output error for --help and --version.
85         * find/testsuite/config/unix.exp (find_version): Adjust for
86         --version format change
87         * locate/testsuite/config/unix.exp (locate_version): Ditto
88         * xargs/testsuite/config/unix.exp (xargs_version): Ditto
89         * NEWS: Mention the change
91 2007-07-19  Eric Blake  <ebb9@byu.net>
93         * po/POTFILES.in: Update to reflect current location of
94         translatable strings.
96 2007-07-17  Eric Blake  <ebb9@byu.net>
98         Ensure 'make distcheck' can pass on cygwin.
99         * configure.in: Rename...
100         * configure.ac: ...to this, to match automake recommendations.
101         * NEWS: Add release dates.
102         * doc/find-maint.texi: Remove trailing whitespace.
103         (Documentation): Document where release dates are usefully
104         recorded.
105         * locate/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Be
106         aware of .exe.
107         * .cvsignore: Ignore 'make dist' files.
108         * po/.cvsignore: Ignore remove-potcdate.sed.
110 2007-07-14  Eric Blake  <ebb9@byu.net>
112         * import-gnulib.config (gnulib_version): Bump date, to pick
113         up fix in canonicalize module testing.
115 2007-07-04  James Youngman  <jay@gnu.org>
117         * NEWS: Fixed typos in description of bugfix for bug #20310.
119 2007-07-03  James Youngman  <jay@gnu.org>
121         Fix Savannah bug #20310.
122         * m4/nullsort.m4: If we are cross compiling, assume "sort -z" does
123         not work on the target.
125         Manpage improvements.
126         * find/find.1: More consistent use of quotation marks.
127         *  locate/locate.1 (HISTORY): New section.
129 2007-07-02  James Youngman  <jay@gnu.org>
131         * import-gnulib.sh: (run_gnulib_tool): Don't pass --gpl3 to
132         gnulib-tool, since the program does not have that option (that was
133         a local change which proved not to be necessary).
135         GPL3 migration.
136         * COPYING: Migrate to version 3 of the GNU General Public license.
137         * Makefile.am: ditto
138         * build-aux/check-testfiles.sh: ditto
139         * build-aux/src-sniff.py: ditto
140         * debian/copyright: ditto
141         * doc/find-maint.texi: ditto
142         * find/defs.h: ditto
143         * find/find.c: ditto
144         * find/finddata.c: ditto
145         * find/fstype.c: ditto
146         * find/ftsfind.c: ditto
147         * find/parser.c: ditto
148         * find/pred.c: ditto
149         * find/testsuite/config/unix.exp: ditto
150         * find/tree.c: ditto
151         * find/util.c: ditto
152         * import-gnulib.config: ditto
153         * import-gnulib.sh: ditto
154         * lib/buildcmd.c: ditto
155         * lib/buildcmd.h: ditto
156         * lib/dircallback.c: ditto
157         * lib/dircallback.h: ditto
158         * lib/extendbuf.c: ditto
159         * lib/extendbuf.h: ditto
160         * lib/forcefindlib.c: ditto
161         * lib/gnulib-version.h: ditto
162         * lib/listfile.c: ditto
163         * lib/listfile.h: ditto
164         * lib/modetype.h: ditto
165         * lib/nextelem.c: ditto
166         * lib/nextelem.h: ditto
167         * lib/printquoted.c: ditto
168         * lib/printquoted.h: ditto
169         * lib/qmark.c: ditto
170         * lib/regexprops.c: ditto
171         * lib/regextype.c: ditto
172         * lib/regextype.h: ditto
173         * lib/savedirinfo.c: ditto
174         * lib/savedirinfo.h: ditto
175         * lib/strspn.c: ditto
176         * lib/wait.h: ditto
177         * lib/waitpid.c: ditto
178         * locate/bigram.c: ditto
179         * locate/code.c: ditto
180         * locate/frcode.c: ditto
181         * locate/locate.c: ditto
182         * locate/locatedb.h: ditto
183         * locate/testsuite/config/unix.exp: ditto
184         * locate/updatedb.sh: ditto
185         * locate/word_io.c: ditto
186         * po/fetch-po-files: ditto
187         * xargs/testsuite/config/unix.exp: ditto
188         * xargs/xargs.c: ditto
190         Typo fixes.
191         * doc/find.texi (Deleting Files): Fixed a typo.
192         (Deleting Files): Likewise.
194         New worked example for find.
195         * doc/find.texi (Copying A Subset of Files): Added a new worked
196         example.
198         * doc/find.texi (Updating A Timestamp File): Indicate that %A@ now
199         includes a sub-second part on many systems.
201         Include <fcntl.h> unconditionally.
202         * import-gnulib.config (modules): Also use the fcntl module.
203         * find/find.c: #include <fcntl.h> unconditionally, since
204         gnulib provides it if it is absent.
205         * find/fstype.c: Likewise.
206         * find/ftsfind.c: Likewise.
207         * find/parser.c: Likewise.
208         * find/util.c: Likewise.
209         * locate/locate.c: Likewise.
211 2007-06-30  Eric Blake  <ebb9@byu.net>
213         * find/pred.c (pred_timewindow): Avoid gcc warnings.
214         (format_date): Likewise.
215         * find/tree.c (calculate_derived_rates): Likewise.
216         * locate/word_io.c (getword): Likewise.
218 2007-06-30  James Youngman  <jay@gnu.org>
220         * find/find.1 (EXAMPLES): Added an example of using find and cpio -p
221         to copy a directory tree, with pruning and omitted files.
223         * find/pred.c (format_date): Use verify_true for constant
224         conditions rather than assert.
225         * xargs/xargs.c (main): Ditto.
227         Enhancements to the code smell detector.
228         * Makefile.am (findutils-check-smells): Automate the calling of
229         build-aux/src-sniff.py.
230         * build-aux/src-sniff.py: Rework to use a list of regex-based
231         sniffers, to allow checking types of file other than C.  Allow
232         file-based regex sniffers to give an indication of the line number
233         where they think the problem (or part of the problem) exists.
234         Added code smell detectors for a sample Bourne shell problem and
235         for out-of-date FSF addresses.
237         * find/tree.c (get_pred_cost): Eliminate unused variable.
239         Fix Savannah bug #20263 in a more portable way.
240         * find/tree.c (cost_table_comparison): Avoid casting function
241         pointers to poiter-to-object, since this is not portable (or
242         of course conforming).  Instead, use memcmp().
244 2007-06-28  Eric Blake  <ebb9@byu.net>
246         * import-gnulib.sh (run_gnulib_tool): Speed operation when
247         updating an existing tree.
249         Allow 'make check' to work without prior 'make all'.
250         * find/Makefile.am (SUBDIRS): Build in . before testsuite.
251         * locate/Makefile.am (SUBDIRS): Likewise.
252         * xargs/Makefile.am (SUBDIRS): Likewise.
254         Fix Savannah bug #20273, xargs -E with seekable stdin.
255         * import-gnulib.config (modules): Sort, add closein.
256         * xargs/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO)
257         (EXTRA_DIST_XI): Add new test.
258         * xargs/testsuite/config/unix.exp (xargs_start): Support optional
259         argument to allow test to run a subshell.
260         * xargs/testsuite/inputs/sv-bug-20273.xi: New file.
261         * xargs/testsuite/xargs.posix/sv-bug-20273.xo: Likewise.
262         * xargs/testsuite/xargs.posix/sv-but-20273.exp: Likewise.
263         * xargs/xargs.c (main): Use close_stdin, not close_stdout.
264         * NEWS: Document the fix.
266 2007-06-27  James Youngman  <jay@gnu.org>
268         Added a maintenance manual.
269         * doc/find-maint.texi: New file.
270         * doc/Makefile.am (info_TEXINFOS): Added doc/find-main.texi.
271         * doc/find.texi (Introduction): Fixed typo.
273 2007-06-26  Eric Blake  <ebb9@byu.net>
275         * import-gnulib.config (modules): Allow ./configure
276         --disable-assert.
278 2007-06-26  James Youngman  <jay@gnu.org>
280         * build-aux/src-sniff.py: Detect uses of struct stat where the
281         header file was not included.
282         * find/find.c: Fix this, and uses of assert without a following
283         space (the coding standard requires a space, but there are still
284         a number of cases where other functions are called with no
285         following space).
286         * find/fstype.c: Ditto.
287         * find/ftsfind.c: Ditto.
288         * find/parser.c: Ditto.
289         * find/pred.c: Ditto.
290         * find/tree.c: Ditto.
291         * find/util.c: Ditto.
292         * lib/buildcmd.c: Ditto.
293         * lib/buildcmd.h: Ditto.
294         * lib/extendbuf.c: Ditto.
295         * locate/frcode.c: Ditto.
296         * locate/locate.c: Ditto.
297         * locate/word_io.c: Ditto.
298         * xargs/xargs.c: Ditto.
300         * find/tree.c (cost_table_comparison): Avoid < comparison between
301         function pointer types.  Instead cast the function pointers to
302         (const void*).  Both alternatives are undefined C, but the former
303         actually fails to compile on some systems.   This fixes Savannah
304         bug #20263.
305         * NEWS: mention the fix
307         * find/tree.c (calculate_derived_rates): Removed assignment to
308         rate variable following an assert(0) call, which had been added to
309         silence a "used before initialised" warning, and replace it with a
310         call to abort, which (a) correctly halts execution if _NDEBUG is
311         defined and (b) more accurately documents what's happening.
313         * find/parser.c (get_stat_Ytime): Removed redundant call to abort.
315         * find/util.c (debug_stat): For consistency, use assert (0) rather
316         than assert (false).
318 2007-06-26  James Youngman  <jay@gnu.org>
320         * README-alpha: Mention the findutils-patches mailng list and the
321         archives for findutils-patches and bug-findutils.
323 2007-06-24  James Youngman  <jay@gnu.org>
325         * build-aux/.gitignore, debian/.gitignore, doc/.gitignore,
326         find/.gitignore, find/testsuite/.gitignore, .gitignore,
327         lib/.gitignore, locate/.gitignore, locate/testsuite/.gitignore,
328         m4/.gitignore, po/.gitignore, xargs/.gitignore,
329         xargs/testsuite/.gitignore: New files to make it more painless to
330         track findutils sources with git.
332         * NEWS: Mention the previous change to doc/find.texi.
334 2007-06-23  James Youngman  <jay@gnu.org>
336         * doc/find.texi (Introduction): Recommend that people check they
337         are using the latest version before reporting a bug.
339 2007-06-22  James Youngman  <jay@gnu.org>
341         Better documentation for the fractional part of seconds fields for
342         -printf and similar actions.
343         * doc/find.texi (Time Components): Point out that the seconds
344         field of the timestamp is often printed out with a fractional part
345         of unspecified length and precision.  The '%Tc' field has no
346         seconds part.
347         (Combined Time Formats): Point out the same thing for '%T@'.
348         * find/find.1 (%A): Point out the same thing.
349         * NEWS: Mention these changes.
351         Fix various lint-type complaints taken from the rules in the
352         coreutils Makefile.maint file (see build-aux/src-sniff.py).
353         * xargs/xargs.c: Removed unnecessary parentheses in "#if defined"
354         checks.
355         (main): Don't cast the return value of xmalloc.
356         (add_proc): Don't cast the return value of xmalloc.
357         * lib/regextype.c: Don't include quotearg.h, we don't need it.
358         * lib/dircallback.c, lib/nextelem.c, lib/prontquoted.c,
359         lib/qmark.c, lib/strspn.c, lib/waitpid.c: Assume config.h is available.
360         * lib/extendbuf.c: Ditto
361         * lib/listfile.c: Ditto.  Also removed unnecessary parentheses in
362         "#if defined" checks.
363         (get_link_name): Don't cast the result of xmalloc.
364         * lib/bigram.c: Removed unnecessary parentheses in "#if defined"
365         checks.
366         * lib/savedirinfo.c: Assume config.h is available.  Also removed
367         unnecessary parentheses in "#if defined" checks.
368         * lib/buildcmd.c (bc_do_insert): Don'tcast the result of xmalloc().
369         * find/tree.c (build_expression_tree): Don't cast the argument to free().
370         * find/ftsfind.c (set_close_on_exec): Removed unnecessary
371         parentheses in "#if defined" checks.  Also changed "filesystem" ->
372         "file system"
373         * find/util.c (check_nofollow): Removed unnecessary parentheses in
374         "#if defined" checks.
375         * find/parser.c (estimate_fstype_success_rate): ditto.
376         (insert_regex): Do not cast the result of xmaloc().  Removed unnecessary
377         parentheses in "#if defined" checks.  Also changed "filesystem" ->
378         "file system"
379         * find/pred.c: ditto
380         * find/find.c: "the the" -> "the", "filesystem" -> "file system"
381         * find/fstype.c: "filesystem" -> "file system" (in comments and
382         static functions)
383         * locate/frcode.c: Removed unnecessary parentheses in "#if
384         defined" checks.
385         * locate/locate.c (search_one_database): Don't cast the return
386         value of xmalloc.
387         (dolocate): Mark error message for translation.
389 2007-06-21  Eric Blake  <ebb9@byu.net>
391         * locate/.cvsignore: Ignore dblocation.texi.
392         * build-aux/.cvsignore: Ignore Makefile.
393         * locate/locate.c (set_max_db_age): Fix typo in error message.
395 2007-06-19  Eric Blake  <ebb9@byu.net>
397         Fix compilation on cygwin, Savannah bug #20210.
398         * import-gnulib.config (gnulib_version): Import strcasestr and
399         updated canonicalize-lgpl-tests.
400         * lib/dircallback.c (includes): Track gnulib changes.
402 2007-06-14  James Youngman  <jay@gnu.org>
404         * find/parser.c (parse_time): Use the variable comp, which holds
405         the planned comparison type, rather than the structure tval, which
406         has not been initialised yet and contains a random value.  This
407         fixes Savannah bug #20139.
408         * NEWS: Mention the bugfix.
410 2007-06-12  James Youngman  <jay@gnu.org>
412         Release 4.3.8.
414         * find/find.1 (HISTORY): Document when the find tests -readable,
415         -writable, -executable and the option -regextype were introduced.
417 2007-06-12  Nix  <nix@esperi.org.uk> (trivial change)
419         * locate/locate.c (drop_privs): Use groups[0] rather than
420         groups[1], since groups[] is a one-element array.  This is a
421         buffer overrun affecting root only.  In theory it could affect
422         setuid installations, but I (James Youngman) cannot find an explot
423         mechanism for it.  This fixes Savannah bug#20157.
424         * NEWS: Mention this fix.
426 2007-06-12  James Youngman  <jay@gnu.org>
428         Make the test suite work when run as root.
429         * find/testsuite/config/unix.exp (fs_superuser): Abstract out the
430         check which discovers if we have superuser privileges on the
431         filesystem (taken from access.exp).
432         * find/testsuite/find.gnu/access.exp: Call fs_superuser.
433         * find/testsuite/find.gnu/fprint-unwritable.exp: Use fs_superuser.
435 2007-06-09  James Youngman  <jay@gnu.org>
437         Release 4.3.7.
439         Check that we can correctly read old-format databases which are
440         big-endian or little endian.
441         * locate/testsuite/config/unix.exp (locate_from_db): New function;
442         supports testing locate against a provided database.
443         * locate/testsuite/locate.gnu/bigendian.exp: New test; make sure
444         we can read an old-format big-endian database.
445         * locate/testsuite/locate.gnu/bigendian.xo: Expected output from
446         bigendian.exp test.
447         * locate/testsuite/locate.gnu/littleendian.exp: New test; make sure
448         we can read an old-format little-endian database.
449         * locate/testsuite/locate.gnu/locateddb.old.powerpc.xi: Old format
450         big endian database file, for supporting bigendian.exp.
451         * locate/testsuite/locate.gnu/littleendian.xo: Expected output from
452         littleendian.exp test.
453         * locate/testsuite/locate.gnu/locateddb.old.x86.xi: Old format
454         little endian database file, for supporting littleendian.exp.
455         * locate/testsuite/Makefile.am: Distribute littleendian.exp,
456         bigendian.exp and related .xi and .xo files.
459         * doc/find.texi (Size Directives): Compare %b with %s/512, not
460         %s/1024.  This fixes (again) Savannah bug #19596.
461         * NEWS: mention the fix.
463         Avoid using the non-portable function putw().
464         * locate/locatedb.h: Declare putword().
465         * locate/frcode.c: Include <stdbool.h> as locatedb.h now requires
466         it.
467         * locate/code.c (main): Use putword() rather than putw(), because
468         the latter was removed from SUSv3. This fixes Savannah bug #19980.
469         Also include <stdbool.h> as locatedb.h now requires this.
470         * locate/word_io.c (putword): Define the new function putword.
472         Ensure that <config.h> is included before any system header
473         * find/defs.h: Do not include <config.h> from "defs.h".  Instead
474         just complain if it was not already included, since it needs  to
475         be included first of all, even before system headers (in case
476         gnulib had replaced a system header).  Check
477         ALREADY_INCLUDED_CONFIG_H to determine this.
478         * configure.in: Always define ALREADY_INCLUDED_CONFIG_H in
479         config.h.
480         * find/find.c: Include config.h before defs.h.
481         * find/finddata.c: ditto.
482         * find/fstfind.c: ditto.
483         * find/parser.c: ditto.
484         * find/pred.c: ditto.
485         * find/util.c: ditto
486         * find/tree.c: ditto (fixing Savannah bug #20128).
488         * m4/noreturn.m4 (jy_AC_ATTRIBUTE_NORETURN): Use AC_LANG_PROGRAM
489         inside AC_COMPILE_IFELSE.
491         * doc/find.texi (Security Considerations for locate): Discuss in
492         detail the buffer overrun when reading old-format locate
493         databases.  This is CVE reference CVE-2007-2452.
495 2007-06-05  James Youngman  <jay@gnu.org>
497         Guess the byte-order of old-format locate databases.
498         * locate/word_io.c (getword): Make the endian_state_flag parameter
499         an enum rather than an int.  If we are in the initial ("don't
500         know") byte-order guessing state and the swapped value is out of
501         range, use this as evidence that the byte order is native.
502         * locate/locatedb.h: Declare getword accordingly.
503         * locate/locate.c (struct process_data): Added endian_state
504         member, which remembers for us what the big/little endian order
505         guessing state is when we read an old-format database.
506         (visit_old_format): Use the procdata.endian_state rather than a
507         local variable, so that the information can persist across calls.
508         (i_am_little_endian): Locate figures out if we needed to byteswap
509         the words in an old-format database, but that is an implementation
510         detail.  Therefore we figure out our own byte order so that we can
511         produce a more relevant message for --statistics.  The
512         i_am_little_endian() returns nonzero if the current host has
513         little-endian byte order.
514         (search_one_database): Report the byte-order of old-format
515         databases.
517 2007-06-04  James Youngman  <jay@gnu.org>
519         * locate/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
520         Added old_prefix.exp and old_prefix.xo, a new test case for long
521         shared rpefixes with the old database format.
523         * locate/locate.c (visit_old_format): Use getword() from word_io.c
524         instead of getw(), because getw() is not in POSIX.
525         * locate/word_io.c: New file, providing replacement for getw().
526         * locate/locatedb.h: Declare getword()
527         * locate/Makefile.am (locate_SOURCES): Added word_io.c
529         * locate/testsuite/config/unix.exp (locate_start): Make the
530         failure messages slightly more explicit; indicate what went wrong
531         when a test fails.
533 2007-06-03  James Youngman  <jay@gnu.org>
535         * locate/locate.c (visit_old_format, extend, toolong): Extend the
536         buffer used to build the current pathname when reading an
537         old-format database.  The new function extend is called to do
538         this.  The new function toolong is called to report a fatal error
539         when the buffer size would otherwise exceed SIZE_MAX.  This fixes
540         Savannah bug #20014, which is a security-related problem with the
541         CVE identifier CVE-2007-2452.
543         * configure.in: Determine if the setgroups function is available,
544         and set HAVE_SETGROUPS if so.
545         * locate/locate.c (drop_privs): Call setgroups() only if
546         HAVE_SETGROUPS indicates that it is available.  This fixes
547         Savannah bug #19981.
549 2007-05-31  James Youngman  <jay@gnu.org>
551         * find/parser.c (parse_time): Once we have determined the
552         comparison type, restore the original time argument since
553         get_relative_timestamp() also wants to see it.  This fixes
554         Savannah bug #20005.
556 2007-05-31  Jakub Bogusz <qboosh@pld-linux.org>  (trivial change)
558         * find/parser.c (parse_group): Correct typo in error message.
559         (check_path_safety): same
561 2007-05-27  James Youngman  <jay@gnu.org>
563         * import-gnulib.config (modules): Import sys_stat.
564         (gnulib_version): Update to 2007-05-26.  This fixes a compilation
565         error in stdlib.h with the DEC C compiler.  This fixes Savannah
566         bug# 19983.
568         * find/parser.c (safe_atoi): New function, like atoi, but which
569         calls error(1, ...) when the argument is invalid or out of range.
570         (parse_group): Use safe_atoi.
571         (insert_depthspec): Use safe_atoi
572         (parse_user): Use safe_atoi
574         * configure.in: Check for fabs in libm (fixing a compilation error
575         on Solaris).
577         * import-gnulib.config (modules): Import the wcwidth module to
578         provide it on those systems (such as BeOS) which lack it.
580         * find/pred.c (file_sparseness): If st_blocks is not present in
581         struct stat, the file has a sparseness of 1.0.
583         * doc/find.texi (Size Directives): Document the %S format
584         directive for -printf.
586         * find/pred.c (mode_to_filetype): Don't use S_IFSOCK on systems
587         which lack that macro.  POSIX systems are allowed to lack
588         sockets (it's an XSI extension).
589         (file_sparseness): If struct stat lacks st_blocks, assume all
590         files have a spearseness of 1.0.
592         * import-gnulib.config (modules): Import fchdir inorder to fix an
593         undefined-symbol error for fchdir on BeOS.
595 2007-05-26  James Youngman  <jay@gnu.org>
597         Code refactoring in locate.
598         * locate/locate.c (visit): New function, into which we factor out
599         the traversal of the inspector list.
600         (process_simple): Use visit().
601         (process_or): Use visit().
602         (process_and): Use visit().
604         Speed improvements in locate for unibyte locales.
605         * locate/locate.c (visit_substring_match_nocasefold_wide): Renamed
606         from visit_substring_match_nocasefold.
607         (visit_substring_match_casefold_wide): Renamed from
608         visit_substring_match_casefold.
609         (visit_substring_match_casefold_narrow): Special case of
610         visit_substring_match_casefold_wide which we use for unibyte
611         locales; we use strcasestr() rather than mbscasestr().
612         (visit_substring_match_nocasefold_narrow): Ditto, using strstr()
613         instead of mbsstr().
615         * find/parser.c (parse_gid): Return an explicit boolean constant
616         rather than automatically converting from a pointer, because the
617         gnulib substitute for bool (or _Bool) in c89 environments lacking
618         bool does not support that conversion.  One affected system is Sun
619         WorkShop Compilers 5.0 98/12/15 C 5.0 on Solaris 7.  This is
620         Savannah bug #19970, reported by Nelson Beebe.
621         (parse_inum): Ditto.
622         (parse_links): Ditto.
623         (parse_uid): Ditto.
624         (check_path_safety): declarations need to go before code, not
625         interspersed.  Move declaration of char* s.
627         * xargs/testsuite/xargs.posix/rc-125.exp: Explain Savannah bug
628         #19969.   This bug is not yet fixed.
630         * find/defs.h: #include <stdint_.h>, for uintmax_t.  This should
631         fix a compilation error on DEC C V5.9-005 on Digital UNIX V4.0F
632         (Rev. 1229).  This is Savannah bug #19965, reported by Nelson
633         Beebe.
635         * find/defs.h: Don't include <errno.h>, since it is not needed in
636         the header file itself.  The "extern int errno;" declaration is
637         now obsolete.
638         * find/parser.c: Include <errno.h>
639         * find/pred.c: Dito
640         * find/util.c: Ditto
642 2007-05-24  James Youngman  <jay@gnu.org>
644         * find/util.c (check_nofollow): If O_NOFOLLOW is defined but 0,
645         act as if it is undefined.  This should prevent a runtime
646         assertion failure on IRIX 6.5.  This fixes Savannah bug #19948,
647         reported by Nelson Beebe.
649         * m4/noreturn.m4: New file, testing for support of __attribute__
650         ((__noreturn__)).  Defines jy_AC_ATTRIBUTE_NORETURN and sets
651         HAVE_ATTRIBUTE_NORETURN.
652         * configure.in: Call jy_AC_ATTRIBUTE_NORETURN.
653         * find/defs.h (ATTRIBUTE_NORETURN): Define to nothing if
654         HAVE_ATTRIBUTE_NORETURN is not set in config.h.  This should fix a
655         compilation error with non-GCC compilers.   This is Savannah bug
656         #19967, reported by Nelson Beebe.
658         * configure.in (FINDLIBS): Update FINDLIBS to link against -lm for
659         modf.   This fixed a link error on HP-UX.   This fixes Savannah
660         bug #19966, reported by Nelson Beebe.
661         * find/Makefile.am (LDADD): Use @FINDLIBS@
663 2007-05-21  James Youngman  <jay@gnu.org>
665         Release 4.3.6.
667         * build-aux/Makefile.am (EXTRA_DIST): Added man-lint.sh.
669         * locate/locate.c (drop_privs): pass the correct list of groups to
670         setgroups().  Previously, if root invoked locate, their group ID
671         would have been set to a random value.  The same bug also caused
672         an array overrun past the end of the local array groups[].  The
673         variable which gets overwritten by the buffer overrun on x86 is
674         'what'.  The value of that variable is always changed before it is
675         used, and so I believe that this buffer overrun will not cause a
676         crash.  The only effect of the bug therefore would be for locate
677         to change group to a random group ID since groups[0] is
678         uninitialised.  On my test system this random group ID is 0
679         anyway.  The effect does not depend on any externally-controllable
680         information, so it is unlikely this is exploitable.   This bug is
681         detailed as bug# 19923.
683 2007-05-19  James Youngman  <jay@gnu.org>
685         * find/find.1: Spurious .R directives (.R is not a directive)
686         should be .B.   This fixes Savannah bug #19871.
687         * build-aux/man-lint.sh: New file; verifies that the specified
688         manual pages do not provoke error messages from troff.  This is
689         used to detect further occurrences of Savannah bug #19871.
690         * find/Makefile.am (dist-hook): Run findutils-check-manpages,
691         which invokes man-lint.sh.
692         * locate/Makefile.am (dist-hook): ditto
693         * xargs/Makefile.am (dist-hook): ditto
695         * .cvsignore: Ignore ylwrap, which automake-1.10 wants us to have
696         a copy of for some reason
698         * import-gnulib.sh (main): New option -a which just runs the
699         autotools without reimporting gnulib.
701         * Makefile.am (jy-regex-fix): The previous explanatory comment
702         refers to the jy-regex-fix target, not to dist-hook, so it has
703         been moved.
705 2007-05-08  James Youngman  <jay@gnu.org>
707         * find/defs.h (struct predicate.args): str is now const.
709         * find/parser.c (get_comp_type): get_comp_type now takes a const
710         char* parameter.
711         (get_num): ditto
712         (get_relative_timestamp): ditto.  Also use collect_arg().
713         (collect_arg_stat_info): New function; collects a command-line
714         argument and returns its xstat information, in one go.
715         error(1,...)  is called if the stat fails.
716         (parse_anewer): Use collect_arg().
717         (parse_cnewer): ditto
718         (parse_fprint): ditto
719         (parse_fstype): ditto
720         (parse_group): ditto
721         (parse_ilname): ditto
722         (parse_iname): ditto
723         (parse_iwholename): ditto
724         (parse_lname): ditto
725         (insert_depthspec): ditto
726         (parse_name): ditto
727         (parse_newer): ditto
728         (parse_wholename): ditto
729         (parse_perm): ditto
730         (parse_regextype): ditto
731         (insert_regex): ditto
732         (parse_samefile): ditto
733         (parse_used): ditto
734         (parse_user): ditto
735         (insert_type): ditto
736         (parse_time): ditto
737         (parse_size): When the size argument is invalid but consists only
738         of a valid suffix char, avoid issuing an error message about a
739         blank argument.  Append the suffix letter again.
740         (parse_xdev, parse_ignore_race, parse_noignore_race, parse_warn,
741         parse_xtype): Remove casts to void for some function parameters
742         that were, in fact, used.
744         * find/testsuite/find.gnu/fprint-unwritable.exp: new test
745         * find/testsuite/find.gnu/fprint0_stdout.exp: new test
746         * find/testsuite/find.gnu/fprint0_stdout.xo: new test
747         * find/testsuite/find.gnu/mindepth-arg.exp: new test
748         * find/testsuite/find.gnu/mindepth-arg.xo: new test
749         * find/testsuite/find.gnu/mindepth-badarg.exp: new test
750         * find/testsuite/find.gnu/print_stdout.exp: new test
751         * find/testsuite/find.gnu/print_stdout.xo: new test
752         * find/testsuite/find.gnu/samefile-missing.exp: new test
753         * find/testsuite/find.gnu/samefile-p-brokenlink.exp: new test
754         * find/testsuite/find.gnu/samefile-p-brokenlink.xo: new test
755         * find/testsuite/find.gnu/used-invarg.exp: new test
756         * find/testsuite/find.gnu/used-missing.exp: new test
757         * find/testsuite/find.gnu/user-invalid.exp: new test
758         * find/testsuite/find.posix/group-empty.exp: new test
759         * find/testsuite/find.posix/group-missing.exp: new test
760         * find/testsuite/find.posix/name-missing.exp: new test
761         * find/testsuite/find.posix/size-invalid.exp: new test
762         * find/testsuite/find.posix/size-missing.exp: new test
763         * find/testsuite/find.posix/typearg.exp: new test
764         * find/testsuite/find.posix/user-empty.exp: new test
765         * find/testsuite/find.posix/user-missing.exp: new test
767 2007-05-06  James Youngman  <jay@gnu.org>
769         * find/tree.c: (costlookup): Added pred_fls to the optimiser's
770         predicate cost lookup table.
772         * lib/printquoted.c (print_quoted): Change return value from void
773         to int, to allow the caller to detect failures.
774         * lib/printquoted.h (print_quoted): Change declaration
775         accordingly.
777         * find/defs.h (struct format_val): Incldue a 'filename' member so
778         that we can provide more useful error messages (e.g. when we fail
779         to flush or close an output file).
780         (nonfatal_file_error): declare new function.
782         * find/util.c (traverse_tree): Utility function which calls a
783         callback on every node of the parse tree.
784         (flush_and_close_output_files): Flush all output streams.  Close
785         all output files.  Report any errors.
786         (cleanup): Use traverse_tree() to invoke
787         complete_pending_execdirs().
788         (report_file_err): refactored error reporting function, extracted
789         from fatal_file_error.
790         (nonfatal_file_error): New function.
792         * find/pred.c (checked_fprintf): New function, which performa an
793         fprinf(), and checkes the result.  If the operation resulted in an
794         error, a nonfatal error message is issued.
795         (checked_print_quoted): Ditto, for print_quoted rather than
796         fprintf.
797         (checked_fwrite): Ditto for fwrite instead of fprintf.
798         (checked_fflush): Ditto for fflush
799         (do_fprintf): Use the checked_*() functions rather than their
800         direct counterparts, to ensure that I/O errors are detected.  This
801         fixes Savannah bug #19416.
802         (pred_fls): Use args.printf_vec instead of args.stream, which has
803         now been removed.
804         (pred_ls): just call pred_fls.
805         (pred_fprint0): use args.printf_vec, instead of the now removed
806         args.stream.
807         (pred_print0): just call pred_fprint0
809         * find/parser.c: (insert_fprintf): Make the caller collect the
810         format argument from the argument list.
811         (open_output_file): Enhance to set up defaults in
812         our_pred->args.printf_vec as well as opening the output file.
813         Also record the filename for possible later use in an error
814         message.
815         (collect_arg): Convenience function for collecting an argument
816         from the argument list.
817         (insert_fls): Refactored the body of parse_fls out so that
818         parse_ls can use it.
819         (parse_fls): call insert_fls.
820         (parse_ls): ditto
821         (parse_fprint): Instead of setting up our_pred->args.printf_vec
822         manually, call open_output_file() to do it.
823         (parse_print): Same, but by calling open_stdout().
824         (insert_fprint): Make the caller collect the filename argument,
825         and delegate the setup of our_pred->args.printf_vec to either
826         open_output_file() (for parse_fprint and parse_fprint0) or
827         open_stdout (parse_print0).
828         (parse_fprint0): Use collect_arg().
829         (parse_print0): Use insert_fprint(), just like parse_fprint0.
830         (parse_printf): Use collect_arg().
831         (parse_fprintf): Use collect_arg().
833 2007-05-05  James Youngman  <jay@gnu.org>
835         Release 4.3.5.
837         * find/parser.c (parse_samefile): Hold a file descriptor open on
838         the reference file in order to prevent pred_samefile getting
839         fooled by inode reuse.  Pay attention to race conditions on
840         systems lacking O_NOFOLLOW when the -P option is in force.  This
841         fixes Savannah bug #19806.
843         * find/defs.h (struct samefile_file_id): New struct, like dir_id
844         but including a file descriptor on the reference file.
846         * find/pred.c (pred_type): -type should return false if the file
847         has mode 00000, as opposed to having an assertion failure.   This
848         fixes Savannah bug #16378.
850         * find/ftsfind.c (consider_visiting): Issue a warning message if
851         none of the mode bits are set for a file (i.e. st_mode==00000).
852         * find/util.c (get_statinfo): ditto
853         * find/util.c (hook_fstatat): Introduced debug code (normally
854         disabled) for testing Savannah bug #16378.
856 2007-05-01  James Youngman  <jay@gnu.org>
858         * find/find.c (wd_sanity_check): corrected the type of %ld fprintf
859         arguments in error messages.
860         * find/fstype.c: include "error.h" for the declaratio of error().
861         * find/ftsfind.c: include "error.h" for the declaratio of
862         error().  Include dircallback.h for the correct declararion of
863         run_in_dir().
864         * find/parser.c: include getdate.h (for declaration of getdate)
865         and error.h (for the declaration of error).
866         (find_parser): Removed unused variable p.
867         * find/pred.c (pred_timewindow): Removed unused variable delta.
868         (do_fprintf): Removed unused variable cc.
869         * find/tree.c: Include error.h (for the declaration of error()).
870         (build_expression_tree): removed sourious extra arguments in call
871         to error().
872         * find/util.c: include error.h.
873         * lib/buildcmd.h (get_line_max): Comment out unused function.
874         * lib/listfile.c: Include dircallback.h.
875         * locate/code.c: Include errno.h, erorr.h, progname.h and
876         xlloc.h.
877         (inerr): New function for reporting read errors.
878         (outerr): New function for reporting output errors.
879         (main): Call inerror when fgets fails.  Call outerr when fwrite
880         or putc or putw fails.
881         * locate/frcode.c (put_short): Return boolean value indicating
882         success.
883         (outerr): New function for reporting write errors.
884         (main): Call outerr if call to putc() or puts() or put_short()
885         fails.
886         * locate/locate.c (search_one_database): diagnose corruption if a
887         traditional-style database is too short to include a complete
888         bigram table.
890 2007-04-30  James Youngman  <jay@gnu.org>
892         * find/defs.h: Change all predicate functions to take a const
893         char* argument as the pathname, not a char*.  Modify the parser
894         table definition accordingly.
895         * find/parser.c: Ditto
896         * find/pred.c: Ditto
897         * find/pred.c (do_fprintf): copy the pathname string for the %H
898         and %h cases, since we can no longer modify the string in place.
899         * lib/listfile.c (print_name, list_file,
900         print_name_without_quoting, print_name_with_quoting): Use const
901         char * param for pathname.
902         * lib/listfile.h (list_file): Use const char * param for
903         pathname.
905 2007-04-29  James Youngman  <jay@gnu.org>
907         * find/defs.h: Declare fatal_file_error(), a function for
908         reporting immediately-fatal file errors, which appropriately
909         quotes the file name.  The function does not return.  Also define
910         ATTRIBUTE_NORETURN.  Record the currently-required quoting style
911         in struct options.
913         * find/find.c, find/ftsfind.c, find/parser.c, find/pred.c,
914         find/util.c: Call fatal_file_error() for fatal file errors.  Use
915         quotearg_n_style() to quote filenames which are used in error
916         message that aren't fatal.  Use options.err_quoting_style as the
917         quoting style.  This fixes Savannah bug #18203.
918         * locate/locate.c: ditto
919         * xargs/xargs.c: ditto
921         * lib/listfile.c: To use alloca, just #include <alloca.h>.  Gnulib
922         handles the rest.  Also these days, <stdlib.h> and <string.h> can
923         just be included unconditionally.
924         * lib/qmark.c: Fixed comment on first line describing the module.
926 2007-04-29  Michael Haubenwallner <michael.haubenwallner@salomon.at> (Trivial Change)
928         * find/defs.h (pred_open) Rename to pred_openparen to avoid
929         problems with the macrtos which build the parser tabnles on
930         platforms where 'open' is in fact a macro whcih expands to
931         open64.   The problem was that token pasting put pred_open64 into
932         the parser table, but the function was still defined as
933         parse_open.   This fixes Savannah bug #19371.
934         (pred_close): ditto
935         * find/parser.c (parse_open, parse_close): ditto.  Also change
936         repferences to pred_open and pred_close similarly.
937         * find/parser.c (parse_openparen, parse_closeparen): ditto
939 2007-04-28  James Youngman  <jay@gnu.org>
941         * find/testsuite/find.gnu/deletedir.exp,
942         find/testsuite/find.gnu/deletedir.xo: New test.
943         * find/testsuite/find.gnu/deletefile.exp,
944         find/testsuite/find.gnu/deletefile.xo: New test.
945         * find/testsuite/Makefile.am: Distribute the new tests
946         deletefile.exp and deletedir,exp, with their expected-output (.xo)
947         files too.
948         * find/testsuite/config/unix.exp (find_start): Add a new "setup"
949         parameter called just before each time find is invoked.  This
950         allows last-minute tasks to be performed.  This feature is
951         essential for find commands that modify the filesystem, since
952         otherwise we cannot use our strategy of invoking both binaries at
953         each optimisation level.
955         * find/util.c (optionh_stat, optionp_stat, optionl_stat): Assert
956         that state.cwd_dir_fd is valid.
958         * find/parser.c (parse_delete): Set need_stat to false, since we
959         don't need the stat information in pred_delete.
960         * find/pred.c (pred_delete): If unlinkat() with a zero flags
961         parameter fails with errno==EISDIR, just try again with
962         flags=AT_REMOVEDIR.  That way we normally avoid the cost of a
963         stat.  If we happen to have the stat information to hand anyway,
964         we make sure we get it right the first time.
966         * lib/buildcmd.c (bc_init_controlinfo): Eliminate confusing extra
967         variable arg_max.  Add return value
968         BC_INIT_CANNOT_ACCOMODATE_HEADROOM for the case where the
969         environment itself is not too large, but the required headroom
970         cannot also be accomodated.  The caller now passes in the amount
971         of headroom required.
972         (bc_use_sensible_arg_max): Use the environment size consistently;
973         this is accounted for already in posix_arg_size_max, so there is
974         no need to re-measure the size of the environment.
975         * lib/buildcmd.h: Define BC_INIT_CANNOT_ACCOMODATE_HEADROOM and
976         add the headroom parameter to the prototype of bc_init_controlinfo().
977         * xargs/xargs.c (main): Define XARGS_POSIX_HEADROOM as 2048 and
978         use that symbolic value.  Pass XARGS_POSIX_HEADROOM to
979         bc_init_controlinfo().  Handle the case where
980         BC_INIT_CANNOT_ACCOMODATE_HEADROOM is returned by
981         bc_init_controlinfo().
982         * find/parser.c (new_insert_exec_ok): Pass the required headroom to
983         bc_init_controlinfo() and handle the error return
984         BC_INIT_CANNOT_ACCOMODATE_HEADROOM.
986         * xargs/xargs.1: Correct the description of the default value and
987         maximum value for the -s option of xargs.
989         * xargs/xargs.c (main): Modify the assertions not to assume that
990         bc_ctl.arg_max is 2KiB less than ARG_MAX, since sysconfig() may
991         have returned a value for _SC_ARG_MAX which is greater.  For
992         example, AIX 5.3 can do this.  This should fix Savannah bug
993         #19391.
995 2007-04-25  James Youngman  <jay@gnu.org>
997         * find/tree.c (predlist_dump, predlist_merge_nosort): These
998         functions were unused and commented out.  Removed.
999         (mark_stat) No longer used.  Removed.
1000         (mark_type) No longer used.  Removed.
1002         * find/parser.c (new_insert_exec_ok): When checking for {} in the
1003         arguments to -exec..., use mbsstr() rather than strstr() in order
1004         to cope bettwe with multibyte locales.
1006         * lib/buildcmd.c: Don't define mbsstr() locally.  Instead, call
1007         gnulib's mbsstr().
1009 2007-04-24  James Youngman  <jay@gnu.org>
1011         * lib/buildcmd.c: Added some comments outlining how we might
1012         change the implementation to support figuring out the real ARG_MAX
1013         limit.
1015 2007-04-23  James Youngman  <jay@gnu.org>
1017         * find/defs.h (struct predicate_performance_info): New data
1018         structure for holding perofmance statistics.
1019         (struct predicate: include predicate_performance_info
1020         (apply_predicate): change from macro to function
1021         (pred_is): new macro, for predicate identity testing
1022         (enum DebugOption): Added DebugSuccessRates
1023         * find/find.1: Document option "-D rates" which turns on
1024         DebugSuccessRates.
1025         * doc/find.texi: ditto
1026         * find.c (main): Call show_success_rates() before exiting.
1027         (apply_predicate): remove the macro defintion, declare equivalent
1028         function in defs.h.
1029         * find/ftsfind.c (main): Call show_success_rates() before
1030         exiting.  Use apply_predicate().
1031         (show_outstanding_execdirs): use pred_is().
1035 2007-04-22  Eric Blake  <ebb9@byu.net>
1037         * xargs/xargs.c (main): Don't assume LINE_MAX exists (i.e. is
1038         #defined).
1040         * locate/updatedb.sh (PRUNEPATHS): Exclude /proc by default.
1042 2007-04-22  James Youngman  <jay@gnu.org>
1044         * doc/Makefile.am: When cross-compiling, 'make clean' should not
1045         delete doc/regexprops.texi, becaue we can't regenerate it.  Fixes
1046         Savannah bug #19658.
1048         * locate/Makefile.am (BUILT_SOURCES): Automatically generate
1049         dblocation.texi, which records the default database location.
1050         * doc/find.texi: Collect the default database location from
1051         ../locate/dblocation.texi, and use LOCATE_DB in various places.
1052         Document the fact that updatedb can generate slocate-compatible
1053         databases.  Document the --dbformat option of updatedb.
1054         * locate/frcode.c (main): Implemented the -S option which allows the
1055         generation of an slocate secure database.
1056         * locate/updatedb.sh: New option --dbformat which selects which
1057         database format to use.
1058         * locate/updatedb.1 (--dbformat): Document the new option.
1061         * find/testsuite/find.gnu/access.exp: fixed a typo which prevented
1062         the test correctly being skipped when run as root.   This re-fixes
1063         Savannah bug# 18414, I hope.
1065 2007-04-21  James Youngman  <jay@gnu.org>
1067         Release 4.3.4.
1069         * find/locate/locatedb.5: Clarifications to the description of the
1070         LOCATE02 format.  Organised the material under a number of
1071         headings.  Documented the slocate database format.
1073 2007-04-21  James Youngman  <jay@gnu.org>
1075         * find/testuite/Makefile.am (EXTRA_DIST_EXP): added
1076         find/testsuite/find.posix/sv-bug-19617.exp
1078 2007-04-20  Maxim V. Dziumanenko <dziumanenko@gmail.com>
1080         * po/uk.po: New Ukranian translation.
1081         * configure.in: Added "uk" for Ukranian.
1083 2007-04-19  Peter Breitenlohner <peb@mppmu.mpg.de> (Trivial change)
1085         * locate/bigram.c (main): Set the initial pathname to the empty
1086         string, to avoid decompression problems if the initial pathname
1087         begins with a space.  This fixes Savannah bug #19484.
1088         * locate/code.c (main): ditto
1090 2007-04-19  James Youngman  <jay@gnu.org>
1092         * locate/updatedb.1 (--help): Option name should be bold, not
1093         italic.
1095         * find/testsuite/find.gnu/execdir-hier.exp: Avoid running
1096         -execdir based tests if "." is on $PATH.  Fixes Savannah bug
1097         #19634.
1098         * find/testsuite/find.gnu/execdir-in-unreadable.exp: ditto
1100         * find/testsuite/config/unix.exp (touch): New procedure touch,
1101         replacing "exec touch" for greater efficiency.
1102         * find/testsuite/find.posix/depth1.exp: Change "exec touch" to
1103         "touch".
1104         * find/testsuite/find.posix/files-not-expressions1.exp: ditto
1105         * find/testsuite/find.posix/files-not-expressions2.exp: ditto
1106         * find/testsuite/find.posix/files-not-expressions3.exp: ditto
1107         * find/testsuite/find.posix/links.exp: ditto
1108         * find/testsuite/find.posix/perm-vanilla.exp: ditto
1109         * find/testsuite/find.posix/sv-bug-15235.exp: ditto
1110         * /find/testsuite/find.posix/sv-bug-19613.exp: ditto
1112         * find/testsuite/find.gnu/access.exp: Fix savannah bug #18414 by
1113         skipping the test if the user can read any file (e.g. is root or
1114         is an Admin user under Cygwin).
1116 2007-04-17  James Youngman  <jay@gnu.org>
1118         * import-gnulib.config (gnulib_version): Use the 2007-04-17
1119         version of gnulib to fix a compilation error on Cygwin.  This
1120         fixes Savannah bug #19619.
1122         * find/testsuite/find.posix/sv-bug-19605.exp: New test, for
1123         Savannah bug #19605.
1124         * find/testsuite/find.posix/sv-bug-19617.exp: New test, for
1125         Savannah bug #19617.
1126         * find/ftsfind.c (consider_visiting): if fts_read() returns
1127         enf->fts_info==FTS_NS, check for and diagnose a symbolic link
1128         loop.  This fixes Savannah bugs #19605 and #19617.
1130         * find/find.c (process_path): collect the stat information for
1131         directories even if we already have the mode information, because
1132         we need to use the members st_nlink and st_rdev in for the leaf
1133         optimisation and loop detection, respectively.  This fixes
1134         Savannah bug #19616.
1136         * find/ftsfind.c (is_fts_enabled): Return a copy of ftsoptions,
1137         not a copy of the (uninitialised) input argument.  This fixes
1138         Savannah bug #19615.
1140         * find/ftsfind.c (consider_visiting): If fts_read() returned
1141         FTS_NS, then remember that the stat information is not valid, and
1142         therefore don't set state.have_type or state.have_stat.  This
1143         fixes Savannah bug #19613.
1145         * find/testsuite/find.posix/sv-bug-91613.exp,
1146         * find/testsuite/find.posix/sv-bug-91613.xo: New test for Savannah
1147         bug 19613 (assertion failure on symbolic link loop).
1149         * find/testsuite/config/unix.exp: Correctly diagnose a test case
1150         which fails because find was expected to fail and instead
1151         succeeded.
1152         * find/testsuite/find.gnu/exec-many-rtn-failure.exp: The child
1153         process in this test should return non-zero, not zero.  Therefore
1154         run "false" instead of "true".
1156 2007-04-15  James Youngman  <jay@gnu.org>
1158         Release 4.3.3.
1160         * find/find.1: "-printf %b": blocks are 512 bytes.   Fixes
1161         Savannah bug #19596.
1163         * doc/Makefile.am (regexprops.texi): Do not use $(RM) because many
1164         versions od make do not set it, and so it expands to nothing.
1165         This avoids suprious emission of the regexprops.texi file to stdout.
1167         * find/find.c (main, safely_chdir_lstat, safely_chdir_nofollow):
1168         Only use O_LARGEFILE if it is #defined (NetBSD-3.1 does not define
1169         it).
1170         * find/ftsfind.c (main): ditto
1171         * find/pred.c (pred_empty, prep_child_for_exec): ditto
1174         * import-gnulib.config: Update to gnuliv 2007-04-14.
1176         * lib/Makefile.am, import-gnulib.sh: Create lib/gnulib-version.c
1177         in import-gnulib.sh, not in lib/Makefile.
1179         * build-aux/Makefile.am: New file; distribute check-tstfiles.sh.
1181         * locate/Makefile.am: mkinstalldirs is now in build-aux.
1183         * doc/Makefile.am: We also need getdate.texi.
1185 2007-04-14  James Youngman  <jay@gnu.org>
1187         * doc/.cvsignore: Ignore getdate.texi
1189         * find/defs.h: #include "buildcmd.h" near the top of the file, not
1190         in the middle.
1192         * all: Pass O_LARGEFILE when opening directories.
1194         * all: Changes to allow us to use the FTS_CWDFD mode of fts().
1195         These are quite extensive changes, and are detailed below.
1197         * find/defs.h (struct exec_val): New member dirfd, the directory
1198         in which the exec should take place.
1199         (is_fts_enabled): Tell the caller which flags are passed to
1200         fts_open().
1201         (get_start_dirfd): New function.  Returns value of start_desc.
1202         (get_current_dirfd): New function.  Returns the fd of the
1203         directory fts is currently traversing.  If this is the current
1204         directory, AT_FDCWD is returned.
1205         (complete_pending_execdirs): takes a new argument, indicating
1206         where the exec is to take place.  Ugh.
1207         (get_info): the file name is taken from state.rel_pathname, so
1208         we don't need it as a function argument.
1209         (enum DebugOption): Added DebugExec ("-D exec").
1210         (struct state): Added cwd_dir_fd, the directory we are examining
1211         with fts().  If fts() is not in use, this is AT_FDCWD.  Also added
1212         execdirs_outstanding, which is a boolean which tells us if there
1213         are any not-yet-execed -execdir or -okdir actions (with +).  This
1214         is not really used yet.
1215         * find/ftsfind.c (set_close_on_exec): New function.
1216         (get_current_dirfd): Return an fd open on the directory that fts()
1217         is currently examining.
1218         (left_dir): Signal that our previous ides of which dirctory fts is
1219         searching is now out of date.
1220         (inside_dir): Indicate which directory fts is now searching.
1221         (complete_execdirs_cb): Callback for run_in_dir() to complete
1222         pending execdirs in this directory.
1223         (show_outstanding_execdirs): Supports "-D exec"
1224         consider_visiting(): Do not allow building-up of pending execdirs,
1225         as a workaround to Savannah bug #18466.
1226         (ftsoptions): Make this a static module variable.
1227         * find/parser.c (insert_exec_ok): New parameter describing which
1228         directory the exec should occur in.
1229         (parse_version): for FTS, add a list of options being used.
1230         * find/pred.c (pred_and, pred_comma): No need to pass the relative
1231         path name to get_info(), it can pull it from state.rel_pathname.
1232         (pred_delete): use unlinkat().
1233         (pred_empty): use openat().
1234         (new_impl_pred_exec): Accept an fd parameter describing where the
1235         exec is to take place.
1236         (pred_executable, pred_writable, pred_readable): Use run_in_dir()
1237         to ensure that access() is called in a working directory which is
1238         suitable for the pathname we pass in.
1239         (prep_child_for_exec): In the child process, change to the
1240         appropriate directory becore the exec().
1241         * find/util.c (debugassoc): Support "-D exec".
1242         (get_info): No longer need to pass the relative path to
1243         get_statinfo().
1244         (do_complete_pending_execdirs): Refactored body of what used to be
1245         complete_pending_execdirs().
1246         (complete_pending_execdirs): Pull body out into
1247         do_complete_pending_execdirs() and call that only if there is work
1248         to do.
1249         (fallback_stat, optionh_stat, optionp_stat, optionl_stat): Use fstatat().
1250         (get_start_dirfd): New access function for starting_desc.
1251         * find/testsuite/find.gnu/execdir-hier.exp: New test
1252         * find/testsuite/find.gnu/execdir-hier.xo: Expected outut for new test
1253         * lib/dircallback.c, lib/dircallback.h: New function,
1254         run_in_dir(), which runs a callback function in a specified
1255         directory.
1256         * lib/listfile.c: Use run_in_dir() to call readlink() in the right
1257         directory.
1258         (get_link_name_at): Call get_link_name_cb via run_in_dir.
1259         (get_link_name_cb): New callback function, wrappting
1260         get_link_name().
1262         * find/testsuite/find.gnu/execdir-pwd.exp: Since we have disabled
1263         thebuilding-up of command lines for -execdir, Savannah bug #18466
1264         has been neutralised (but not fixed - we just don't allow the
1265         problem circumstance to occur).
1267 2007-04-09  James Youngman  <jay@gnu.org>
1269         * doc/find.texi: Change fully-specified @node directives to
1270         single-argument @node directives in order to accomodate the
1271         inclusion of getdate.texi.
1273         * doc/find.texi: Document -newerXY.
1275         * doc/find.texi (Security Considerations): updated to describe
1276         differences in the fts-based implementation.
1278         * find/find.1: Indicate that testing the birth time where this is
1279         not supported produces a negative result for files where the birth
1280         time is not known (or a fatal error if the file of interest is a
1281         reference file).
1283 2007-04-08  James Youngman  <jay@gnu.org>
1285         * configure.in: Set @AUXDIR@ (to the location of the build-aux
1286         directory).
1287         * build-aux/check-testfiles.sh: New script, which checks that all
1288         the DejaGnu test files have been included in the distribution and
1289         (more helpfully) lists any that are missing.
1290         * Makefile.am (findutils-check-testfiles): Use
1291         build-aux/check-testfiles.sh.
1292         * locate/testsuite/Makefile.am (EXTRA_DIST_EXP): distribute
1293         locate/testsuite/locate.gnu/sv-bug-14535.exp.
1295         * config.rpath, depcomp, missing: Moved into build-aux/.
1296         * configure.in(AC_CONFIG_AUX_DIR): Find aux files in $SRCDIR/build-aux,
1297         not in $SRCDIR.
1299 2007-03-31  James Youngman  <jay@gnu.org>
1301         * find/tree.c (build_expression_tree): Issue more specific error
1302         messages; distinguish the case where the predicate is invalid from
1303         the cases where a required argument is missing, and a supplied
1304         argument is invalid.
1306         * import-gnulib.config (gnulib_version): Update to 2007-03-30
1307         version of gnulib.
1309 2007-03-28  James Youngman  <jay@gnu.org>
1311         * find/defs.h (set_stat_placeholders): utility function for
1312         initialising the sturct stat fields that NetBSD doesn't always set
1313         (like st_birthtime where the file is on a filesystem not
1314         supporting birthtime).
1315         * find/util.c: set_stat_placeholders(): new function
1316         (get_statinfo): Call set_stat_placeholders().
1317         (optionh_stat, optionl_stat, optionp_stat): ditto
1318         * find/find.c (main, wd_sanity_check, safely_chdir_lstat,
1319         process_dir): use set_stat_placeholders().
1320         * find/parser.c (parse_anewer, parse_cnewer, parse_newer,
1321         parse_newerXY): ditto.
1322         (get_stat_Ytime): Support birth time ('B').
1323         (parse_newerXY): Support st_birthtime.
1324         * find/fstype.c (set_fstype_devno): Use set_stat_placeholders().
1325         * find/pred.c (pred_xtype): Use set_stat_placeholders().
1326         (pred_newerXY): Support birth time.
1327         (pred_fprintf, format_date): ditto ("%Bx").
1329 2007-03-25  James Youngman  <jay@gnu.org>
1331         * xargs/xargs.c (main): For "xargs --show-limits" where stdin is a
1332         terminal, warn the user that the program specified (or /bin/echo)
1333         will be run at least once, if that is what will happen.
1335 2007-03-24  James Youngman  <jay@gnu.org>
1337         * import-gnulib.sh: Added option -d, allowing the user to use a
1338         local version of gnulib, perhaps because they have local changes.
1340 2007-03-13  James Youngman  <jay@gnu.org>
1342         * find/parser.c (parse_quit): Estimated success rate of -quit is
1343         100%.
1345 2007-03-08  James Youngman  <jay@gnu.org>
1347         * find/find.1 (TESTS): Document -newerXY, indicate that reference
1348         files are only examined once.
1349         (HISTORY): Indicate when various features were added
1350         (BUGS): Indicate that -ok ignores LC_COLLATE.
1352 2007-03-07  James Youngman  <jay@gnu.org>
1354         * import-gnulib.config: (gnulib_version): Use gnulib version
1355         2007-03-05
1356         (modules): Added getdate
1358         * find/Makefile.am (LDADD): Added @LIB_CLOCK_GETTIME@ for
1359         clock_gettime(), if it is available.
1361         * find/defs.h: (enum xval): New enumeration, representing the
1362         value of X used in the -newerXY test.  It is stored in the reftime
1363         member of 'union args'.
1364         (struct predicate): reftime is also used by -newerXY.
1365         (enum arg_type): Added ARG_SPECIAL_PARSE for -newerXY, because the
1366         parsing function needs to look at the name of the test.
1367         (struct options): start_time is now a struct timespec, not a
1368         time_t.
1370         * find/parser.c: (parse_newerXY): New parsing function for
1371         -newerXY, a feature copied from FreeBSD (also present other BSD
1372         implementations too)
1373         (get_stat_Ytime): New function; returns st_atime, st_mtime or
1374         st_ctime from struct stat, as a timespec, as required according to
1375         the value of Y in -newerXY.
1376         (found_parser): Factored the tail out of find_parser.
1377         (find_parser): Moved tail into found_parser.  Add special handling
1378         for -newerXY.
1379         (do_parse_xmin): New argument xv, indicating the value to which
1380         predicate->reftime.xval should be set.
1381         (parse_amin): Pass XVAL_ATIME to do_parse_xmin.
1382         (parse_cmin): Pass XVAL_CTIME to do_parse_xmin.
1383         (parse_mmin): Pass XVAL_MTIME to do_parse_xmin.
1384         (parse_newer): Set args.reftime.xval to XVAL_MTIME.
1386         * find/pred.c (pred_table): added pred_XY.
1387         (pred_fls): options.start_time is now a struct timespec, so just
1388         pass the tv_sec member to list_file.
1389         (pred_ls): ditto
1390         (pred_newerXY): New function, implementing -newerXY.
1392         * find/tree.c (costlookup): pred_newerXY needs stat information.
1393         (build_expression_tree): For predicates of type ARG_SPECIAL_PARSE,
1394         pass them in the name of the predicate (that is, don't advance
1395         argc).
1397         * find/util.c (now): New function for setting options.start_time.
1398         Use nanoseconds where it is available.
1399         (set_option_defaults): Use now() rather than time().
1401 2007-03-03  James Youngman  <jay@gnu.org>
1403         * import-gnulib.sh: Pass --with-tests to gnulib-tool so that relevant
1404         gnulib unit tests are built and are run for "make check".
1406         * configure.in (AC_CONFIG_FILES): Add tests/Makefile (the makefile
1407         for the gnulib unit tests).
1409         * Makefile.am: Add 'tests' to SUBDIRS.
1411         * .cvsignore: Add 'tests'.
1413         * import-gnulib.config (modules): Also use Gnulib modules
1414         mbscasestr and mbsstr in order to perform correct string searching
1415         in multibyte strings, in order to fix Savannah bug #14535.
1417         * locate/testsuite/locate.gnu/sv-bug-14535.exp: new test case for
1418         Savannah bug #14535.
1420         * locale/locate.c (visit_substring_match_nocasefold): Use mbsstr
1421         rather than strstr, in order to correctly support multibyte
1422         strings.
1423         (visit_substring_match_casefold): Use mbscasestr rather than
1424         strstr in order to correctly support case-folding in a multibyte
1425         environment (e.g. with UTF-8 characters outside the normal ASCII
1426         range).  This fixes Savannah bug #14535.
1427         (struct casefolder): No longer needed, removed
1428         (visit_casefold): No longer needed, removed.
1429         (lc_strcpy): No longer needed, removed.
1430         (search_one_database): Removed redundant variable need_fold and
1431         the code which used to set it.  It had controlled the adding of
1432         the visitor function visit_casefold, but that function itself is
1433         no longer required.  Also there is now no need to pass in a
1434         lower-case argument to visit_substring_match_casefold, so don't
1435         pass that in the context argument.
1437         * locate/locate.c (usage): Fixed typo.
1439 2007-03-01  James Youngman  <jay@gnu.org>
1441         * doc/find.texi (Multiple Files): Document the construct
1442         -exec sh -c 'cmd "$@" final-args' {} + - fixing Savannah bug
1443         #18554.
1445 2007-02-28  James Youngman  <jay@gnu.org>
1447         * import-gnulib.config: New file.  Specifies which version of
1448         Gnulib we need to check out and build from.
1450         * import-gnulib.sh: Use import-gnulib.config.
1452         * README-CVS: Describe the new method of building from CVS.
1454         * lib/gnulib-version.h, lib/gnulib-version.sh: New files; code for
1455         reporting which version of Gnulib we built findutils from.
1457         * lib/Makefile.am: Build gnulib-version.c out of
1458         ./gnulib-version.config by using lib/gnulib-version.sh.
1460         * Makefile.am: Ship import-gnulib.config and import-gnulib.sh.
1462         * .cvsignore: Ignore gnulib-cvs
1464         * lib/.cvsignore: Ignore gnulib-version.c
1466         * find/parser.c, locate/code.c, locate/locate.c, xargs/xargs.c:
1467         Report which version of Gnulib we were built from.
1469 2007-02-25  James Youngman  <jay@gnu.org>
1471         * find/find.c (process_dir): Removed duplicated (shadow)
1472         declaration of did_stat.  Assert that we did not use subdirs_left
1473         if subdirs_unreliable is true.
1475         * find/parser.c (parse_size): Removed unused variable rate.
1476         (parse_time): Removed unused variable num_days_approx.
1477         (get_num): Removed unused variables ok and suffixes.
1479         * find/pred.c (do_fprintf): Indicate that the function needs a
1480         return value (referring to Savannah bug #19146).
1482         * find/tree.c (predlist_dump): Commented out unused function
1483         (predlist_merge_nosort): Commented out unused function
1484         (getrate): Returns type is float, so return 1.0f not 1.0.
1485         (calculate_derived_rates): Removed unused variable rate.  Use a
1486         switch statement rater than ifs.
1488         * find/util.c (usage): Removed unused variable i.
1490         * lib/buildcmd.c (bc_do_insert): Removed unused variable
1491         need_prefix.
1492         (bc_init_controlinfo): annotate a line (with #warning) which is
1493         probably a bug.
1495         * locate/locate.c: #include <grp.h> for the benefit of the
1496         setgroups() call in drop_privs.
1497         (slocate_db_pathname): Commented out unused variable.
1498         (set_max_db_age): error command has no format directive, so
1499         remove the unused extra argument.
1500         (looking_at_slocate_db): Removed unused variables magic and
1501         lenwanted.  Fix bug where result is indeterminate (due to falling
1502         off the end of the function) if the first character is a nondigit.
1503         (search_one_database): Eliminate (spurious) compiler warning
1504         rlating to possible use before initialisation of slocate_seclevel.
1506         * xargs/xargs.c (get_char_oct_or_hex_escape): Eliminate spurious
1507         compiler warning on variable p.
1508         (main): Removed unused varible env_too_big
1511 2007-02-24  James Youngman  <jay@gnu.org>
1513         * find/parser.c (pred_sanity_check): define this function even for
1514         _NDEBUG, but do nothing in that case.
1515         (estimate_timestamp_success_rate): correct (invert) the sense of
1516         the subtraction used to find the file's age.
1518         * import-gnulib.sh (findutils_modules): Import Gnulib modules
1519         xstrtod and timespec.
1521         * find/parser.c (get_comp_type): Refactored out of get_num.
1522         (get_num): call get_comp_type to find the comparison type.
1523         (get_relative_timestamp): new function replacing get_num_days.
1524         (get_num_days): Remove.
1525         (do_parse_xmin): Support fractional arguments and
1526         nanosecond timestamps.
1527         (parse_used): ditto
1528         (parse_time): ditto
1530         * xargs/xargs.c (read_line): Give a warning message if a NUL is
1531         found in the input (this function is called only when -0 is not in
1532         effect).
1534         * xargs/xargs.c (nullwarning_given): New variable indicating if
1535         the NULL character warning had already been issued.
1537         * doc/find.texi (Multiple Files): Describe how trailing blanks are
1538         handled when -L is in effect.
1540         * xargs/xargs.c (read_line): Use an enum rather than
1541         preprocessor macro values for the lexer state.
1543         * lib/savedirinfo.c (free_dirinfo): Fixed memory leak (trivial
1544         patch from Supriya Kannery)
1546 2007-01-22  James Youngman  <jay@gnu.org>
1548         * .cvsignore (install-sh): Ignore, since the install-sh file is no
1549         longer held in the findutils CVS repository.
1551         * find/testsuite/config/unix.exp (find_start): allow a test to be
1552         skipped for either the old or the new find executable.
1553         * find/testsuite/find.gnu/execdir-pwd.exp,
1554         find/testsuite/Makefile.am:
1555         New test, covering Savannah bug #18466.  This test currently fails
1556         for the ftsfind binary and passes for the oldfind binary.  Due to
1557         a limitation in  the way that we perform the test, we can't tell
1558         the test suite to expect a failure in the new binary but not the
1559         old.  Therefore we skip the test for the old binary.
1561         * lib/regeprops.c (describe_regex_syntax): fixed a typo in the text
1562         * doc/find.texi (Multiple Files): fixed a typo
1564 2007-01-16  James Youngman  <jay@gnu.org>
1566         (ctime_format): format the time manually (rather than using ctime)
1567         in order to include the sub-second part of the time.
1568         (weekdays, months): new static variables used by ctime_format.
1569         (format_date): append a the sub-second part of the timestamp to
1570         the seconds part of date/time output.
1572 2007-01-15  James Youngman  <jay@gnu.org>
1574         * find/defs.h (time_val): define struct; use timespec to hold time
1575         in the 'reftime' member.
1576         (args): use struct timespec instead of time_t for predicates
1577         -newer, -anewer, -cnewer.  * find/parser.c (includes): include
1578         stat-time.h.
1579         (parse_anewer, parse_cnewer, parse_newer): use struct timespec to
1580         hold timestamps.  * find/pred.c (compare_ts): new function for
1581         comparing timestamps in struct timespec.
1582         (pred_anewer, pred_cnewer, pred_newer): use compare_ts() to
1583         compare timestamps (hence takinng acoung of sub-second
1584         granularity).
1585         * find/ftsfind.c: Various improvements to comments.
1586         (is_fts_enabled): Newline before function name to comply with GNU
1587         coding standard.
1589 2007-01-13  James Youngman  <jay@gnu.org>
1591         * lib/regexprops.c (describe_regex_syntax): fixed typo
1593         * xargs/xargs.c (read_line): Fixed Savannah bug# 18714; VT and FF
1594         are not separators, according to POSIX (in the POSIX locale).
1596         * xargs/testsuite/Makefile.am,
1597           xargs/testsuite/input/formfeeds.xi,
1598           xargs/testsuite/input/verticaltabs.xi,
1599           xargs/testsuite/xargs.posix/sv-bug-18714.exp,
1600           xargs/testsuite/xargs.posix/sv-bug-18714.xo,
1601           xargs/testsuite/xargs.posix/sv-bug-18714b.exp,
1602           xargs/testsuite/xargs.posix/sv-bug-18714b.xo: Tests for Savannah
1603           bug #18714.
1605         * xargs/xargs.c (usage): Removed suprious "[" in --help output
1606         (fixes Savannah bug #18384).
1608         * locate/locate.c: Implement the option --max-database-age.
1609         (main) Accept the option.
1610         (set_max_db_age): Parse the argument.
1612         * locate/locate.c (dolocate): If the database is more than N days
1613         old, indicate its actual age in the warning message we produce.
1615         * locate/locate.1, docs/find.texi: Document --max-database-age
1617         * THANKS: Thank Dean Gaudet for the idea of -sparse.
1619         * po/findutils.pot: Updated from Translation Project
1621         * po/ga.po, po/pl.po, po/nl.po, po/tr.po, po/hu.po: Updated from
1622         the Translation Project
1624 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1626         * doc/find.texi: Fix some typos. (trivial change)
1628 2007-01-07  James Youngman  <jay@gnu.org>
1630         * find/parser.c (parse_perm), find/testsuite/find.gnu/perm000.exp,
1631           find/testsuite/find.gnu/perm000.xo: -perm /000 is now quivalent
1632           to -perm -000, as dscussed in Savannah bug #14748.  The warning
1633           message we issue when the user does this now explains that the
1634           defintion changed as we promised it would in 2005.
1636         * xargs/xargs.c (read_line): Correctly handle quoted empty
1637         arguments occurring first or last on a line (by adding an empty
1638         argument to the output).  Fixes Savannah bug #18713.
1640         * xargs/testsuite/xargs.sysv/sv-bug-18713.exp,
1641         xargs/testsuite/xargs.sysv/sv-bug-18713.xo,
1642         xargs/testsuite/input/empty.xi: Test case for Savannah bug #18713.
1645 2006-12-29  James Youngman  <jay@gnu.org>
1647         * find/testsuite/config/unix.exp:
1648         Verify that find_start is invoked with wither a p (pass) or an f
1649         (fail) argument.
1651         * lib/listfile.c, lib/listfile.h:
1652         define find_blocksize() and provide a declaration for get_link_name()
1654         * find/testsuite/config/unix.exp: Updated copyright years.
1656         * find/testsuite/find.gnu/execdir-one.exp, find/testsuite/find.gnu/execdir-root-only.exp, find/testsuite/find.gnu/sv-bug-12230.exp, find/testsuite/find.gnu/sv-bug-17782.exp, find/testsuite/config/unix.exp:
1657         Avoid tests using -execdir if $PATH contains a relative directory
1659         * find/parser.c:
1660         Also flag $PATH values containing relative directories as being dangerous.
1662         * find/parser.c, find/defs.h, find/util.c:
1663         Instead of selecting the old or new exec handling code with the NEW_EXEC macro, just use the new code all the time
1665         * locate/testsuite/config/unix.exp:
1666         Fixed Savannah bug #13252, test suite failure caused by the fact that 'file normalize' is not available in Tcl 8.3
1668         * NEWS, find/pred.c:
1669         Fixed Savannah bug #18433, compilation failure with configure --enable-debug
1671 2006-12-28  James Youngman  <jay@gnu.org>
1673         * NEWS: Document addition of %S.
1675         * find/defs.h, find/find.1, find/parser.c, find/pred.c:
1676         Implemented %S (sparseness) printf format, and general refactoring and cleanup of printf predicate
1678 2006-12-01  James Youngman  <jay@gnu.org>
1680         * NEWS, configure.in: Begin work on findutils 4.2.30
1682         * find/find.c:
1683         Fix compilation error for oldfind if --enable-debug was passed to configure
1685         * NEWS, configure.in: Prepare for work on findutils-4.3.3
1687 2006-11-25  James Youngman  <jay@gnu.org>
1689         Release 4.3.2.
1691         * find/testsuite/Makefile.am: Added test case for Savannah bug #17782
1693         * doc/textinfo.tex: Removed; we now use the version supplied
1694         by automake.
1696         * m4/mkinstalldirs.m4: Added this file.  It's an excerpt from an
1697         old version of gnulib's m4/nls.po file.  The current version of
1698         gnulib does not expand MKINSTALLDIRS, but gettext-0.14.6's version
1699         of po/Makefile.in.in expects it to be expanded.  This m4 file
1700         fills the gap.
1702 2006-11-20  James Youngman  <jay@gnu.org>
1704         * po/et.po, po/bg.po, po/pl.po, po/nl.po, po/tr.po: Updated
1705         translations for Bulgarian, Estonian, Dutch, Polish and Turkish.
1707 2006-11-08  James Youngman <jay@gnu.org>
1709         * find/testsuite/Makefile.am:
1710         Oops, indicate the right directory for the new test files
1712         * ChangeLog, depcomp, doc/texinfo.tex, find/ftsfind.c, find/testsuite/Makefile.am, find/testsuite/find.gnu/sv-bug-18222.exp, find/testsuite/find.gnu/sv-bug-18222.xo, install-sh:
1713         Savannah bug#18222 - test case
1715         * ChangeLog, lib/buildcmd.c:
1716         Fixed Svannah bug #17782 ('./' prefix added at start of arg while it should be added at the start of the expansion of {})
1718         * find/ftsfind.c (process_all_startpoints): Set
1719         state.starting_path_length for every pathname argument.
1720         This fixes Savannah bug #18222.
1722         * find/pred.c (pred_prune): -prune should have an effect only if we are
1723          currently considering a directory (Savannah bug #15531).
1725 2006-10-15  James Youngman <jay@gnu.org>
1727         * lib/buildcmd.c: Fixed Savannah bug #17782, in which "find
1728         -execdir echo "foo {}" runs 'echo ./foo filename' instead of the
1729         correct command 'echo foo ./filename'.
1731         * po/hu.po, po/sl.po: Updated Hungarian and Slovenian po files
1733 2006-08-21  James Youngman <jay@gnu.org>
1735         * find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.gnu/sv-bug-17490.exp:
1736         Fixed Savannah bug #17490, which was a coiredump when -regex ZZZ was the final test on the command line
1738 2006-08-20  James Youngman <jay@gnu.org>
1740         * find/parser.c: Merged the fix for the trailing % in "find -printf".
1742 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1744         Port recent fixes for symbolic modes involving X from gnulib,
1745         and clarify the documentation in this area.
1746         * doc/find.texi: Use "file mode bits" when talking about
1747         all the file mode bits (including setuid, setgid, and sticky),
1748         and "permissions" when talking only about permissions bits
1749         (read, write, execute/search).  Use "execute/search" to
1750         talk about the x bit, since it means both.  You do not need
1751         permission to the linked-to file to follow a symlink for
1752         syscalls like "stat", but you do need search permission for
1753         the directories you traverse.  Clarify the explanation of
1754         -perm.  Use "that" instead of "which" when "which" isn't
1755         quite correct English.
1756         (Mode Bits): Renamed from Permissions.  All uses changed.
1757         * doc/perm.texi: Sync from coreutils 6.0.
1758         * find/defs.h (struct perm_val.val): Now an array of two items,
1759         one for non-directories, and one for directories.  This is
1760         to handle symbolic modes like +X correctly.
1761         * find/parser.c (parse_perm): Likewise.  Also, adjust to
1762         latest gnulib interface for mode_adjust.
1763         * find/pred.c (pred_perm): Likewise.
1764         * find/testsuite/Makefile.am (EXTRA_DIST_XO): Add find.posix/perm-X.xo.
1765         (EXTRA_DIST_EXP): Add find.posix/perm-X.exp.
1766         * find/testsuite/find.posix/perm-X.exp: New file.
1767         * find/testsuite/find.posix/perm-X.so: New file.
1769 12006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1771         Port to latest gnulib, and simplify the bootstrapping procedure.
1772         * intl: Remove this directory and everything in it.
1773         * depcomp, install-sh, missing, mkinstalldirs, doc/texinfo.tex:
1774         Remove these files from CVS, as they are now gotten from gnulib.
1775         * README-CVS: Don't recommend "autoreconf -i", as it doesn't work
1776         for us.
1777         * import-gnulib.sh (findutils_files): New var.  Grab this stuff
1778         from gnulib.
1779         (findutils_modules): Add fopen-safer; remove stdio-safer.  This
1780         adjusts to latest gnulib.
1781         (modules): Remove obsolete reference to intl_modules.
1782         * .cvsignore: Remove stamp-h; add stamp-h1.
1783         * doc/.cvsignore: Add regexprops.texi.
1784         * find/.cvsignore: Add oldfind.
1785         * lib/.cvsignore: Add .deps, regexprops.
1786         * m4/.cvsignore: Add Makefile.
1787         * po/.cvsignore: Add stamp-po.
1789 2006-08-19  James Youngman <jay@gnu.org>
1791         * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/bigprefix1.exp:
1792         Explicit checks for parefixes which are within range of a short, but outside the one-byte range
1794         * locate/testsuite/locate.gnu/bigprefix1.exp, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
1795         New file.
1797         * locate/testsuite/Makefile.am, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
1798         Patch from Tavis Ormandy; check frcode handles initial space end encodes paths with more than 2^16 characters in the common prefix (trivial change)
1800         * locate/frcode.c: Changes to avoid overflows
1802 2006-08-11  James Youngman <jay@gnu.org>
1804         * locate/frcode.c:
1805         Avoid producing an invalid database if the first item begins with a space
1807 2006-08-10  James Youngman <jay@gnu.org>
1809         * find/pred.c, import-gnulib.sh, lib/listfile.c:
1810         Updated callers of the gnnulib filemode module so that they work with the 2006-07-09 version of gnulib
1812         * config.rpath: Updated config.rpath from autotools
1814 2006-08-08  James Youngman <jay@gnu.org>
1816         * locate/locatedb.h:
1817         Automatically verify (at compile time) that the frcode datastream
1818         cannot get desynchronised.
1820         * find/ftsfind.c:
1821         Fixed Savannah bug #10494 (-maxdepth does not yield the same stat savinf in ftsfind as oldfind)
1823         * find/ftsfind.c: display fts_level for find -D search
1825         * find/util.c: Support find -D search
1827         * locate/locate.c:
1828         If the user specified -E but the database is an slocate database, do
1829         not produce a list of files they cannot stat.  Issue an error message
1830         explaining the problem.
1832         * locate/locate.c:
1833         Issue states messages in a way which indicates more clearly what's
1834         happening when the numbers are reduced because not every filename
1835         matched the pattern.
1837         * locate/locate.c: Better error checking in drop_privs().
1839 2006-08-07  James Youngman <jay@gnu.org>
1841         * NEWS, locate/locate.c, locate/locatedb.h:
1842         Added support for slocate database format
1844         * xargs/xargs.c:
1845         Removed unused code (tivial patch from Miloslav Trmac).
1847         * xargs/xargs.c: Removed unused code.
1849         * doc/find.texi:
1850         Clarify that the output format for locate -S differs from BSD's.
1852         * NEWS, find/find.1:
1853         Savannah bug #15360: explain global vs. positional options more clearly in the manual page
1855         * NEWS: Typo in subsection header (* should be **).
1857         * NEWS, find/find.1:
1858         Savannah bug #15360: explain global vs. positional options more clearly in the manual page
1860         * doc/find.texi: Fixed some clumsy phrasing
1862         * NEWS, configure.in:
1863         Now diverging again from the released tarball, so change once more to -CVS version number suffixes
1865 2006-08-06  James Youngman <jay@gnu.org>
1867         * locate/locate.c: Fixed a typo in a comment.
1869         * NEWS, configure.in: Moving on towards 4.3.2...
1871         Release 4.3.1.
1873         * find/testsuite/config/unix.exp:
1874         Check that we can see the find.o file in the right position relative
1875         to $base_dir to ensure that we are indeed testing the program we just built.
1877         * find/testsuite/config/unix.exp:
1878         Be more paranoid about whether we're really checking the right version
1879         of find.
1881         * NEWS, configure.in: Prepare for release of 4.3.1
1883         * doc/find.texi: Document the -O and -D options
1885         * find/defs.h, find/find.1, find/util.c:
1886         'find -D help' now explains the available debugging options
1888         * po/be.po, po/bg.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po, po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po, po/zh_TW.po:
1889         Make dist changed all the po files again
1891 2006-08-05  James Youngman <jay@gnu.org>
1893         * NEWS: Described more changes in 4.3.1.
1895         * locate/testsuite/config/unix.exp:
1896         Set the  environment variable so that updatedb knows where to find it; it's not in BINDIR yet during 'make check'
1898         * po/be.po, po/bg.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po, po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po, po/zh_TW.po:
1899         Make dist changed all the po files again :)
1901         * po/et.po, po/vi.po: UPdated the Estonian and Vietnamese translations
1903         * NEWS, configure.in: Prepare for release of findutils-4.2.28
1905         * po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po, po/zh_TW.po, po/be.po, po/bg.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po, po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po, po/sl.po, po/sr.po:
1906         Make dist changed all the po files again :)
1908         * configure.in: Added Bulgarian translation.
1910         * po/bg.po: Include Bulgarian translation
1912         * configure.in: Added Bulgarian translation.
1914         * po/et.po, po/vi.po: Updated Estonian and Vietnamese translations
1916         * NEWS: Removed spurious comma.
1918         * NEWS: Listed the updated translations.
1920         * find/parser.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
1921         Fixed Savannah bug#16738, find does not subtract environment size in find .. -exec {} +
1923         * NEWS: Updated the list of bugfixes etc.
1925 2006-06-15  James Youngman <jay@gnu.org>
1927         * NEWS: Described recent changes
1929         * configure.in: fix to how we invoke the gnulib regex module
1931         * find/find.1:
1932         Savannah bug #16269: avoid confusion over what type of quotes to use
1933         in an example.
1935         * find/parser.c: Option -nowarn should not itself produce a warning
1937         * find/defs.h: Remoevd useless declaration of last_pred
1939 2006-06-14  James Youngman <jay@gnu.org>
1941         * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po, po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po, po/zh_TW.po:
1942         Updated translation files ga pl sv tr nl ca vi bg fr
1944         * locate/updatedb.sh:
1945         Fixed Savannah bug #16579 (su false should be su -c false)
1947 2006-04-01  James Youngman <jay@gnu.org>
1949         * find/find.c:
1950         Fixed Savannah bug #15800: "Hard link count is wrong" reports wrong
1951         directory name.
1953 2006-03-31  James Youngman <jay@gnu.org>
1955         * po/hu.po: Updated Hungarian translation
1957 2006-01-04  James Youngman <jay@gnu.org>
1959         * find/testsuite/find.posix/sizetype.exp, find/testsuite/find.posix/sizetype.xo, find/testsuite/find.posix/typesize.exp, find/testsuite/find.posix/typesize.xo:
1960         Additional tests for -type -size and -size -type
1962         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/ftsfind.c, find/parser.c, find/pred.c, find/testsuite/Makefile.am, find/testsuite/config/unix.exp, find/testsuite/find.gnu/depth-d.exp, find/tree.c, find/util.c, po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po, po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po, po/zh_TW.po:
1963         Initial implementation of a cost-based optimiser
1965 2005-12-23  James Youngman <jay@gnu.org>
1967         * find/parser.c: Refactor of parse_[acm]time
1969         * find/defs.h, find/find.c, find/finddata.c, find/ftsfind.c, find/tree.c, find/util.c:
1970         last_pred can be a static in tree.c rather than a global variable
1972         * find/tree.c, find/finddata.c:
1973         Moved some global data out of finddata.o and into static variables in tree.c
1975         * NEWS, find/find.c, find/fstype.c, find/ftsfind.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, lib/regexprops.c, lib/regextype.c, lib/regextype.h, lib/savedirinfo.c, locate/locate.c, xargs/xargs.c:
1976         Fixed many compilation warnings
1978         * find/find.c, find/ftsfind.c, find/util.c:
1979         Evaluating the predicates can change the contents of the data structure (for example to add another exec item)
1981         * find/defs.h, find/find.c, find/ftsfind.c, find/tree.c, find/util.c:
1982         Re-factored a lot of common expression-handling code out of find.c and ftsfind.c, mainly into tree.c
1984         * find/find.c, find/ftsfind.c, find/tree.c:
1985         Savannah bug #15271: more helpful error messages for cases where there is a missing expression
1987 2005-12-20  James Youngman <jay@gnu.org>
1989         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/ftsfind.c, find/testsuite/Makefile.am, find/testsuite/find.posix/sv-bug-15235.exp, find/testsuite/find.posix/sv-bug-15235.xo, find/tree.c, find/util.c:
1990         Savannah bug #15195: more helpful error messages for 'find . ( )' or 'find . \!'
1992         * ChangeLog: Added entries for recent changes.
1994         * find/defs.h, find/find.c, find/ftsfind.c, find/testsuite/find.posix/bracket-depth.exp, find/util.c:
1995         Further fix to bug# 15235: a leading comma is a filename not an expression
1997         * find/defs.h, find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.posix/empty-parens.exp, find/tree.c:
1998         Accept 'find ( -depth )' but reject 'find ( )'
2000         * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po, po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po, po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po, po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po, po/zh_TW.po:
2001         did make dist
2003         * find/testsuite/find.gnu/delete.exp:
2004         Use the new find program, and the new way of locating it (/ instead of )
2006         * find/testsuite/Makefile.am: Added bracket-depth.exp.
2008         * NEWS, configure.in: We have moved on from 4.3.0
2010         * find/defs.h, find/find.c, find/ftsfind.c, find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp, find/testsuite/find.posix/files-not-expressions1.exp, find/testsuite/find.posix/files-not-expressions1.xo, find/testsuite/find.posix/files-not-expressions2.exp, find/testsuite/find.posix/files-not-expressions2.xo, find/testsuite/find.posix/files-not-expressions3.exp, find/testsuite/find.posix/files-not-expressions3.xo, find/util.c:
2011         Avoid getting confused by filename arguments of which the first
2012         character looks like a predicate, for example ',x' or '!x' or
2013         '(x' (Savannah bug #15235).
2015 2005-12-20  James Youngman <jay@gnu.org>
2017         * find/defs.h, find/find.c, find/ftsfind.c,
2018         find/testsuite/find.posix/bracket-depth.exp, find/util.c: Further
2019         fix to bug# 15235: a leading comma is a filename not an expression
2021         * find/defs.h, find/parser.c, find/testsuite/Makefile.am,
2022         find/testsuite/find.posix/empty-parens.exp, find/tree.c: Accept
2023         'find ( -depth )' but reject 'find ( )'
2025         * find/testsuite/find.gnu/delete.exp: Use the new find program,
2026         and the new way of locating it ($OLDFIND/$FTSFIND instead of $FIND)
2028         * find/testsuite/Makefile.am: Added bracket-depth.exp.
2030         * NEWS, configure.in: We have moved on from 4.3.0
2032         * find/defs.h, find/find.c, find/ftsfind.c,
2033         find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
2034         find/testsuite/find.posix/files-not-expressions1.exp,
2035         find/testsuite/find.posix/files-not-expressions1.xo,
2036         find/testsuite/find.posix/files-not-expressions2.exp,
2037         find/testsuite/find.posix/files-not-expressions2.xo,
2038         find/testsuite/find.posix/files-not-expressions3.exp,
2039         find/testsuite/find.posix/files-not-expressions3.xo, find/util.c:
2040         Avoid getting confused by filename arguments of which the first
2041         character looks like a predicate, for example ',x' or '!x' or '(x'
2042         (Savannah bug #15235).
2044 2005-12-19  James Youngman <jay@gnu.org>
2046         * find/testsuite/config/unix.exp:
2047         Run every test twice, once with the old (non-fts) binary and once with
2048         the new (fts-enabled) binary.
2050 2005-12-19 Eric Blake <ebb9@byu.net>
2052         * find/testsuite/Makefile.am,
2053         find/testsuite/find.posix/sv-bug-15235.xo,
2054         find/testsuite/find.posix/sv-bug-15235.exp: New tests for Savannah
2055         bug 15235.
2057         * NEWS, find/find.1, doc/find.texi (Invoking find): Document bug
2058         fix for Savannah bug 15235.
2060 2005-12-16  James Youngman <jay@gnu.org>
2062         * xargs/xargs.1, xargs/xargs.c: Fixed bug# 15211, that xargs
2063         --show-limits is not documented in the manpage or in the usage
2064         message
2066 2005-12-12  James Youngman <jay@gnu.org>
2068         Release 4.3.0.
2070         * find/testsuite/find.gnu/access.exp:
2071         Don't leave junk files lying around the place
2073         * README-CVS: Update the the instructions for getting gnulib; the
2074         CVS arrangements at Savannah have changed.
2076         * ChangeLog, NEWS, doc/find.texi, doc/perm.texi, find/defs.h, find/parser.c:
2077         Merged changes from 4.2.x branch again
2079         * NEWS, doc/find.texi, find/defs.h, find/find.c, find/ftsfind.c,
2080         find/parser.c, find/pred.c, find/util.c, lib/listfile.c,
2081         lib/listfile.h: Initial code to allow control over how -ls quote
2082         (or does not quote) control characters; not enabled yet
2084 2005-12-11  James Youngman <jay@gnu.org>
2086         * ChangeLog, THANKS, xargs/xargs.c:
2087         Fixed spelling errors in Bob Proulx's name.  Sorry, Bob.
2089 2005-12-10  James Youngman <jay@gnu.org>
2091         * doc/perm.texi:
2092         Aaron Hawley: Updated perm.texi from the coreutils distribution
2094         * find/parser.c:
2095         Avoid using entries which have the same name as POSIX library
2096         functions (fprintf, printf, exec) as the implementation is allowed to
2097         #define these.  That generates hard-to-grok compilation errors.
2099 2005-12-10  Andreas Metzler <gnu@downhill.at.eu.org>
2101         * ChangeLog, NEWS, configure.in, find/defs.h, find/parser.c:
2102         Applied patch from Andreas Metzler fixing Savannah bug #15181:
2103         implicit declaration of parse_openparen
2105 2005-12-08  James Youngman  <jay@gnu.org>
2107         * doc/find.texi: Typo and spelling corrections from Aaron Hawley
2109 2005-12-05  James Youngman  <jay@gnu.org>
2111         * Released findutils-4.2.27
2113 2005-12-05  James Youngman  <jay@gnu.org>
2115         * doc/find.texi, find/find.1, locate/locate.1, xargs/xargs.1:
2116         Savannah patch #3775 from Aaron Hawley: reconciling man pages
2117         differences; did not apply the patch, but resolved all the
2118         remaining issues manually by updating the documentation (mostly
2119         the Texinfo documentation, which was missing a number of specific
2120         technical statements about the behaviour of various options)
2122 2005-12-04  James Youngman  <jay@gnu.org>
2124         * doc/find.texi: Document --show-limits
2126         * xargs/xargs.c:
2127         Correctly display the size of the argument buffer we really allocated.
2129         * doc/find.texi, find/find.1, find/parser.c, find/pred.c, NEWS:
2130         Savannah bug #14748 (which this change does NOT fix): issue
2131         warning of future changes in the behaviour of -perm /000
2133 2005-11-30  James Youngman  <jay@gnu.org>
2135         * xargs/xargs.c:
2136         Typo correction from Benno Schulenberg <benno@nietvergeten.nl>
2137         (trivial change)
2139 2005-11-29  James Youngman  <jay@gnu.org>
2141         * xargs/xargs.c:
2142         Typo "Ilegal"; change to "Invalid" since this is not really illegal!
2143         Bug report by Primoz Peterlin.
2145         * lib/regexprops.c, xargs/xargs.c:
2146         Prefer the word 'Invalid' or the phrase 'not allowed' over
2147         'Illegal', as per the GNU coding standards, and as per the
2148         suggestion from Benno Schulenberg
2150 2005-11-24  James Youngman  <jay@gnu.org>
2152         * NEWS, lib/buildcmd.c, lib/buildcmd.h: Merge to trunk from 4.2.x fixes
2154         * lib/buildcmd.h:
2155         Deleted inaccurate comment about the default value of ctl->args_per_exec.
2157         * NEWS, lib/buildcmd.c, lib/buildcmd.h:
2158         Be more conservative about the total number of arguments we will
2159         allow (to avoid exec limits on Linux/PPC)
2161 2005-11-23  James Youngman  <jay@gnu.org>
2163         * NEWS: Bug #14921 has been fixed.
2165         * find/fstype.c:
2166         Savannah bug #14921: when a Linux bind filesystem is in use, find
2167         would expand '-printf %F' to 'none' if a bind mount targetted the same
2168         filesystem as the one containing the file to be described.
2170         * NEWS: Updated to describe recent changes
2172         * doc/find.texi, find/find.1: Documented find -printf %M
2174         * lib/buildcmd.c, xargs/testsuite/Makefile.am,
2175         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2176         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2177         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2178         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo:
2179         Ensure that the test suite still passes even if the current
2180         system's value of ARG_MAX is different from the development/test
2181         system
2183         * lib/buildcmd.c: reindent and untabify
2185         * configure.in: The CVS code is moving on from the previous release.
2187 2005-11-22  James Youngman  <jay@gnu.org>
2189         * ChangeLog: Updated with recent changes.
2191 2005-11-21  James Youngman  <jay@gnu.org>
2193         * locate/testsuite/config/unix.exp:
2194         Even if we expect locate to return a nonzero status, the test should
2195         still fail if updatedb fails!
2197         * locate/testsuite/locate.gnu/ignore_case2.exp:
2198         Set the current directory for updatedb.  This test case is supposed to
2199         fail because the filename is not matched, not because updatedb fails!
2201         * locate/updatedb.sh:
2202         Check the binaries actually exist in the place we expect.
2204 2005-11-20  James Youngman  <jay@gnu.org>
2206         * locate/locate.1, xargs/xargs.1: Escape '-' as '\-' where appropriate.
2208         * find/find.1:
2209         Escape '-' as '\-' where appropriate.   Fixes last part of bug #14556.
2211 2005-11-19  James Youngman  <jay@gnu.org>
2213         * doc/find.texi, find/find.1:
2214         Applied edited form of Andreas Metzler's -perm /mode documentation
2215         patch resolving Savannah bug #14619.
2217         * lib/extendbuf.c:
2218         In the success case, extendbuf() should preserve the previous value of
2219         errno.  Fixes Savannah bug #14842.
2221         * xargs/testsuite/Makefile.am: Added new test files
2223         * find/find.1:
2224         Correctly indicate the default regular expression syntax (fixes
2225         Savannah bug #14836).
2227         * NEWS, configure.in: Released findutils-4.2.26
2229         * ChangeLog, NEWS, lib/buildcmd.c,
2230         xargs/testsuite/inputs/16383-ys.xi,
2231         xargs/testsuite/inputs/32767-ys.xi,
2232         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2233         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2234         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2235         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: Applied
2236         bugfix from Jim Meyering (tiny change), where many short arguments
2237         would cause xargs (and probably find -exec .. {} +) to fail
2238         because execve() returns E2BIG, which we should avoid
2240         * xargs/testsuite/inputs/16383-ys.xi,
2241         xargs/testsuite/inputs/32767-ys.xi,
2242         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2243         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2244         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2245         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: New file.
2247 2005-11-18  Jim Meyering  <jim@meyering.net> (tiny change)
2249         * lib/buildcmd.c (bc_push_arg): When exec'ing, don't exceed
2250         Linux's limit on the maximum number of command line arguments.
2252 2005-11-11  James Youngman  <jay@gnu.org>
2254         * NEWS, find/find.c, find/fstype.c: Savannah bug #14922: if we need the
2255         list of mounted filesystems but it is not available, exit fatally
2256         with a message.  If it is not available but we don't need it,
2257         there is no need for an error.
2259 2005-10-31  James Youngman  <jay@gnu.org>
2261         * doc/find.texi:
2262         Removed redundant additional description of "--regextype".
2264 2005-10-08  James Youngman  <jay@gnu.org>
2266         * find/find.c, lib/regextype.c: Fixed Savannah bug #14616, which
2267         was that c99 code had crept in and it didn't compile on c89
2268         compilers
2270         * doc/find.texi: Savannah patch #4371 from Andreas Metzler; the
2271         argument of -I is mandatory
2273 2005-09-21  James Youngman  <jay@gnu.org>
2275         * xargs/xargs.1, xargs/xargs.c: Clarified the -E option
2277 2005-09-20  James Youngman  <jay@gnu.org>
2279         * NEWS, configure.in, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
2280         Documentation clarification: -L and -I take a mandatory argument;
2281         -l and -i do not
2283 2005-09-17  James Youngman  <jay@gnu.org>
2285         * xargs/xargs.c:
2286         Fixed Savannah bug #14550 - if environment is too large to allow
2287         exec() to work, we cannot even use "xargs --help".
2289         * find/find.1:
2290         Avoid the use of -perm +mode, using -perm /mode instead.  From comment
2291         by Andreas Metzler (though I didn't read the patch).
2293         * ChangeLog, doc/find.texi, find/find.1, xargs/xargs.1:
2294         Typo fix from A Costa (tiny change)
2296         * NEWS: Corrections for find manual page - symbolic permissions.
2298         * find/find.1:
2299         Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
2300         'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
2302 2005-09-17  A Costa <agcosta@gis.net>  (tiny change)
2304         docs/find.texi: Fixed typo
2305         find/find.1: Fixed typo
2306         xargs/xargs.1: Fixed typo
2308 2005-09-17  James Youngman  <jay@gnu.org>
2310         * NEWS: Corrections for find manual page - symbolic permissions.
2312         * find/find.1:
2313         Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
2314         'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
2316 2005-09-06  James Youngman  <jay@gnu.org>
2318         * xargs/xargs.c: Typo in "IEEE" in a comment.
2320 2005-09-04  James Youngman  <jay@gnu.org>
2322         * find/defs.h, find/find.c, find/parser.c, find/pred.c,
2323         Work around compilation failure with GCC 4 and AIX 5.1, in which
2324         open is #defined to open64
2326 2005-09-03  James Youngman  <jay@gnu.org>
2328         * find/testsuite/find.gnu/quit.exp: Fixed Savannah bug#14390, by
2329         avoiding an accidental assumption in quit.exp that directory
2330         entries are returned by readir() in any particular order
2332         * NEWS, configure.in, doc/find.texi, xargs/testsuite/Makefile.am,
2333         xargs/testsuite/inputs/helloworld.xi,
2334         xargs/testsuite/xargs.gnu/delim-o.exp,
2335         xargs/testsuite/xargs.gnu/delim-o.xo, xargs/xargs.1,
2336         xargs/xargs.c: Added the --delimiter option to xargs, resolving
2337         Savannah support request sr #102914
2339         * ChangeLog, NEWS, configure.in: Released findutils-4.2.25
2342 2005-09-02  James Youngman  <jay@gnu.org>
2344         * doc/find.texi, find/find.1:
2345         Improved documentation in response to Savannah bug #14376
2347 2005-09-01  James Youngman  <jay@gnu.org>
2349         * po/ChangeLog, ChangeLog: Updated with recent changes.
2351         * locate/locate.c: Removed unused struct stringbuf.soffs.
2353         * doc/find.texi: Typo fix from Jim Meyering (trivial change)
2355 2005-09-01  Jim Meyering  <jim@meyering.net>
2357         * locate/locate.c (struct stringbuf) [soffs]: Remove unused member.
2358         (locate): Remove initialization, too.
2360 2005-09-01  James Youngman  <jay@gnu.org>
2362         * doc/find.texi: Typo fix from Jim Meyering (trivial change)
2364 2005-08-30  James Youngman  <jay@gnu.org>
2366         * find/defs.h, find/find.c, find/fstype.c, find/pred.c:
2367         Attempted fix for compilation when AFS is #defined
2369 2005-08-13  James Youngman  <jay@gnu.org>
2371         * find/find.1: Remind the user to quote the pattern argument to -iname.
2373 2005-08-12  James Youngman  <jay@gnu.org>
2375         * NEWS: Corrected typo.
2377 2005-08-09  James Youngman  <jay@gnu.org>
2379         * NEWS: Indicate that regexprops.texi is built on Cygin now that
2380         Savannah bug #14025 has been fixed.
2382         * lib/Makefile.am, lib/regexprops.c: Fixed compilation failure on
2383         Cygwin - Savannah Bug #14025 (tiny change, three lines), reported
2384         and fixed by Eric Blake
2386         * find/testsuite/Makefile.am,
2387         find/testsuite/find.posix/sv-bug-14070.exp,
2388         find/testsuite/find.posix/sv-bug-14070.xo: Added new test case for
2389         SourceForge bug #14070
2391         * find/testsuite/find.posix/sv-bug-14070.exp,
2392         find/testsuite/find.posix/sv-bug-14070.xo: New file.
2394         * find/defs.h, find/ftsfind.c, find/pred.c, find/util.c:
2395         Ensure we can still build with --enable-debug
2397         * find/testsuite/config/unix.exp,
2398         find/testsuite/find.gnu/execdir-one.exp,
2399         find/testsuite/find.gnu/execdir-root-only.exp,
2400         find/testsuite/find.gnu/sv-bug-12230.exp: If . is on $PATH,
2401         indicate that the -execdir tests cannot be carried out, as opposed
2402         to indicating that those tests fail
2404 2005-08-07  James Youngman  <jay@gnu.org>
2406         * NEWS: Indicated that some test suite files have been renamed.
2408         * xargs/testsuite/Makefile.am, xargs/testsuite/inputs/eof.xi,
2409         xargs/testsuite/inputs/eof1.xi,
2410         xargs/testsuite/xargs.sysv/eof.exp,
2411         xargs/testsuite/xargs.sysv/eof.xo,
2412         xargs/testsuite/xargs.sysv/eof1.exp,
2413         xargs/testsuite/xargs.sysv/eof1.xo,
2414         xargs/testsuite/xargs.posix/lc_l2.exp,
2415         xargs/testsuite/xargs.posix/lc_l2.xo,
2416         xargs/testsuite/xargs.sysv/l2.exp,
2417         xargs/testsuite/xargs.sysv/l2.xo,
2418         xargs/testsuite/xargs.sysv/lc_l2.exp,
2419         xargs/testsuite/xargs.sysv/lc_l2.xo,
2420         xargs/testsuite/xargs.posix/L2.exp,
2421         xargs/testsuite/xargs.posix/l2.exp,
2422         xargs/testsuite/xargs.posix/L2.xo,
2423         xargs/testsuite/xargs.posix/l2.xo,
2424         xargs/testsuite/xargs.posix/uc_L2.exp,
2425         xargs/testsuite/xargs.posix/uc_L2.xo: Work around problems with
2426         CVS clients on case-insentitive operating systems
2428         * debian/Changelog: Removed Changelog file since changelog is the
2429         one we should be using and having both files upsets Cygwin
2430         systems which cannot tell the dirrerence between changelog and
2431         Changelog
2433         * find/ftsfind.c:
2434         If DEBUG is defined, show the symbolic names fro fts_info values.
2436         * find/ftsfind.c: Added additional diagnostics.
2438 2005-08-01  James Youngman  <jay@gnu.org>
2440         * ABOUT-NLS, INSTALL, Makefile.am, configure.in, depcomp,
2441         doc/texinfo.tex, install-sh, missing, mkinstalldirs: By adding the
2442         missing AM_GNU_GETTEXT_VERSION call, allowed autopoint to update
2443         those files of which it has updated copies.
2445         * po/Makevars.template, po/Makefile.in.in, po/findutils.pot:
2446         Using AM_GNU_GETTEXT_VERSION, allowed gettext to update the infrastructure
2448         * po/Rules-quot, po/boldquot.sed, po/en@boldquot.header, po/en@quot.header, po/insert-header.sin, po/quot.sed:
2449         Files added by autopoint now that we are using AM_GNU_GETTEXT_VERSION
2451         * find/testsuite/Makefile.am: Added find.gnu./perm-slash.{exp,xo}.
2453 2005-07-31  James Youngman  <jay@gnu.org>
2455         * find/testsuite/excuses.txt: We now have tests for -perm.
2457         * NEWS, configure.in, find/parser.c,
2458         find/testsuite/find.gnu/perm-slash.exp,
2459         find/testsuite/find.gnu/perm-slash.xo: Fixed bug which caused find
2460         -perm /440 to be treated the same as find -perm 440
2462         * find/testsuite/Makefile.am:
2463         Generic tests for -perm -NNN and -perm NNN
2465         * find/testsuite/excuses.txt: New file - list of test cases that
2466         still need to be written, along with excuses why they haven't been
2467         done yet
2469         * find/testsuite/find.posix/perm-vanilla.exp,
2470         find/testsuite/find.posix/perm-vanilla.xo: Generic tests for -perm
2471         -NNN and -perm NNN
2473         * find/testsuite/find.gnu/inum.exp:
2474         Ensure that the test would fail if -inum just always returned true
2476         * find/testsuite/Makefile.am, find/testsuite/find.gnu/ilname.exp,
2477         find/testsuite/find.gnu/ilname.xo,
2478         find/testsuite/find.gnu/inum.exp, find/testsuite/find.gnu/inum.xo,
2479         find/testsuite/find.gnu/lname.exp,
2480         find/testsuite/find.gnu/lname.xo,
2481         find/testsuite/find.gnu/xtype.exp,
2482         find/testsuite/find.gnu/xtype.xo,
2483         find/testsuite/find.posix/links.exp,
2484         find/testsuite/find.posix/links.xo: New test cases for -ilname,
2485         -inum, -lname, -xtype
2487         * find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
2488         find/testsuite/find.gnu/delete.xo,
2489         find/testsuite/find.gnu/iregex1.exp,
2490         find/testsuite/find.gnu/iregex1.xo,
2491         find/testsuite/find.gnu/regex1.exp,
2492         find/testsuite/find.gnu/regex1.xo,
2493         find/testsuite/find.gnu/regex2.exp,
2494         find/testsuite/find.gnu/regex2.xo,
2495         find/testsuite/find.gnu/samefile-copy.exp,
2496         find/testsuite/find.gnu/samefile-copy.xo,
2497         find/testsuite/find.gnu/samefile-link.exp,
2498         find/testsuite/find.gnu/samefile-link.xo,
2499         find/testsuite/find.gnu/samefile-same.exp,
2500         find/testsuite/find.gnu/samefile-same.xo,
2501         find/testsuite/find.gnu/samefile-symlink.exp,
2502         find/testsuite/find.gnu/samefile-symlink.xo: Further test cases
2504         * find/find.1: Indicate that -delete implies -depth (find.texi
2505         already mentioned this).
2507         * find/testsuite/Makefile.am:
2508         Brought the list of .exp and .xo files in Makefile.am into sync with
2509         the actual contents of the CVS repository.
2511         * find/testsuite/Makefile.am, find/testsuite/find.gnu/depth-d.exp,
2512         find/testsuite/find.gnu/depth-d.xo,
2513         find/testsuite/find.gnu/empty.exp,
2514         find/testsuite/find.gnu/empty.xo,
2515         find/testsuite/find.gnu/execdir-one.exp,
2516         find/testsuite/find.gnu/execdir-one.xo,
2517         find/testsuite/find.gnu/false.exp,
2518         find/testsuite/find.gnu/false.xo,
2519         find/testsuite/find.gnu/follow-basic.exp,
2520         find/testsuite/find.gnu/follow-basic.xo,
2521         find/testsuite/find.gnu/gnu-or.exp,
2522         find/testsuite/find.gnu/gnu-or.xo,
2523         find/testsuite/find.gnu/gnuand.exp,
2524         find/testsuite/find.gnu/gnuand.xo,
2525         find/testsuite/find.gnu/gnunot.exp,
2526         find/testsuite/find.gnu/gnunot.xo,
2527         find/testsuite/find.gnu/iname.exp,
2528         find/testsuite/find.gnu/iname.xo,
2529         find/testsuite/find.gnu/ipath.exp,
2530         find/testsuite/find.gnu/ipath.xo,
2531         find/testsuite/find.gnu/iwholename.exp,
2532         find/testsuite/find.gnu/iwholename.xo,
2533         find/testsuite/find.gnu/path.exp, find/testsuite/find.gnu/path.xo,
2534         find/testsuite/find.gnu/print0.exp,
2535         find/testsuite/find.gnu/print0.xo,
2536         find/testsuite/find.gnu/quit.exp, find/testsuite/find.gnu/quit.xo,
2537         find/testsuite/find.gnu/true.exp, find/testsuite/find.gnu/true.xo,
2538         find/testsuite/find.gnu/wholename.exp,
2539         find/testsuite/find.gnu/wholename.xo,
2540         find/testsuite/find.posix/and.exp,
2541         find/testsuite/find.posix/and.xo,
2542         find/testsuite/find.posix/exec-one.exp,
2543         find/testsuite/find.posix/exec-one.xo,
2544         find/testsuite/find.posix/grouping.exp,
2545         find/testsuite/find.posix/grouping.xo,
2546         find/testsuite/find.posix/name.exp,
2547         find/testsuite/find.posix/name.xo,
2548         find/testsuite/find.posix/posixnot.exp,
2549         find/testsuite/find.posix/posixnot.xo,
2550         find/testsuite/find.posix/prune.exp,
2551         find/testsuite/find.posix/prune.xo: Added new test cases for many
2552         of the actions and tests of find
2554         * find/find.c (default_prints):
2555         not a static function, so do not declare it as one.
2557         * m4/withfts.m4: Fixed underquoted definition of FIND_WITH_FTS.
2558         [this change is currently on a branch only]
2560 2005-07-30  James Youngman  <jay@gnu.org>
2562         * find/finddata.c, find/ftsfind.c, find/parser.c, find/pred.c,
2563         find/util.c, m4/Makefile.am, m4/withfts.m4: Initial attempt to
2564         convert find to use gnulib's fts()
2565         [this change is currently on a branch only]
2567         * find/finddata.c, find/ftsfind.c, m4/withfts.m4: New file.
2568         [this change is currently on a branch only]
2570         * NEWS, configure.in, find/Makefile.am, find/defs.h, find/find.c,
2571         import-gnulib.sh: Initial attempt to convert find to use gnulib's
2572         fts() [this change is currently on a branch only]
2574 2005-07-29  James Youngman  <jay@gnu.org>
2576         * NEWS, configure.in
2577         Prepared for the release of findutils-4.2.24
2579         * ChangeLog: Updated with recent changes.
2581         * NEWS, find/find.1, doc/find.texi:
2582         Indicate that -ok and -okdir redirect stdin from /dev/null.
2584         * NEWS: Explain the directory link count change more throroughly.
2586         * NEWS: Fixed bug #13973.
2588         * find/pred.c (pred_fprintf): Fix Savannah bug #13973: Modify the
2589         handling of -printf %Y so that it no longer modifies stat_buf
2591         * find/testsuite/find.gnu/printf-symlink.exp,
2592         find/testsuite/find.gnu/printf-symlink.xo: Detect Savannah bug
2593         #13973: pollution of stat_buf by the %Y directive (trivial change
2594         from Andreas Metzler)
2596         * INSTALL, depcomp, doc/texinfo.tex, install-sh, missing, mkinstalldirs:
2597         Updated auxilliary files from the automake-1.9 distribution
2599         * configure.in:
2600         Introduce new Automake conditional, CROSS_COMPILING, true when we are corss compiling
2602         * find/find.c:
2603         If we decline to follow a symbolic link due to the safety check, issue a more self-explanatory warning message
2605         * lib/Makefile.am: Don't build regexprops if we are cross compiling
2607         * doc/Makefile.am:
2608         Depend on the regex.h file rather than the 'regexprops' binary,
2609         because the header file will always exist even if we are doing "make
2610         dist".  Otherwise "make distcheck" fails because it tries to rebuild
2611         find.info while the source-directory is read-only.
2613 2005-07-28  James Youngman  <jay@gnu.org>
2615         * find/find.1:
2616         Say "other users" rather than "rest of the world" when talking about
2617         Unix permissions.  Fixes Savannah bug #4246.
2619 2005-07-27  James Youngman  <jay@gnu.org>
2621         * xargs/testsuite/Makefile.am: Added new test case 'childfail.exp'.
2623         * doc/find.texi:
2624         Updated the description of the safe-dir-change operation to reflect
2625         what find now does on systems that lack O_NOFOLLOW.
2627         * NEWS, find/parser.c: Indicate in the output of find --version if
2628         the leaf optimisation is enabled or not
2630         * find/find.c: Fixed typo.
2632         * find/find.c: If the link count of a directory starts off less
2633         than two, disable the leaf optimisation for this directory.
2635 2005-07-26  James Youngman  <jay@gnu.org>
2637         * lib/regexprops.c: Further small corrections from Karl.
2639         * doc/find.texi:
2640         Reordered the sections in the manual to put the "Common Tasks" and
2641         "Worked Examples" chapters together.
2643         * configure.in, find/find.c: Allow the leaf optimisation to be
2644         disabled by default with the configure option
2645         --disable-leaf-optimisation
2647         * find/find.c: Removed old code for antuqie version of savedir().
2649         * lib/regextype.c: Put the syntaxes in alphabetical order.
2651         * lib/regexprops.c: Karl made some more readability suggestions.
2653 2005-07-24  James Youngman  <jay@gnu.org>
2655         * doc/Makefile.am: If the regexprops program has changed we should
2656         re-run it, since it will probably now produce different output
2658         * lib/regextype.h:
2659         Allow the caller to detect if one regex type is identical to another.
2661         * configure.in:
2662         Define the preprocessor macro FINDUTILS for that code int he lib/
2663         directory can be slightly more reusable.
2665         * lib/regextype.c:
2666         Allow the caller to detect if one regex type is identical to another.
2668         * lib/regexprops.c:
2669         Made Texinfo style corrections suggested by Karl Berry.
2671 2005-07-22  James Youngman  <jay@gnu.org>
2673         * xargs/testsuite/xargs.posix/childfail.exp, xargs/xargs.c: Fix
2674         Savannah bug #13878, in which xargs deals incorrectly with child
2675         failure, returning 0 when it should return 123
2677 2005-07-17  James Youngman  <jay@gnu.org>
2679         * find/find.1: (tiny change) Corrections by Greg Wooledge
2681 2005-07-16  James Youngman  <jay@gnu.org>
2683         * doc/find.texi: Updates following comments by Dave Gilbert.
2685         * NEWS: Corrected a typo.
2687         * doc/find.texi:
2688         Added in the example about updating an aggregate timestamp file.
2690 2005-07-15  James Youngman  <jay@gnu.org>
2692         * po/da.po: Updated Danish translation from translation project
2694 2005-07-14  James Youngman  <jay@gnu.org>
2696         * NEWS, doc/Makefile.am, doc/find.texi, lib/Makefile.am,
2697         lib/regexprops.c, lib/regextype.c, lib/regextype.h: Added
2698         --regextype and -regextype options to locate and find
2699         respectively, and documented these
2701         * doc/find.texi: We use GNU Emacs regexps by default now.
2703         * doc/find.texi:
2704         We require GNU sort in order for locate to handle newlines correctly,
2705         not just GNU find.
2707 2005-07-10  James Youngman  <jay@gnu.org>
2709         * doc/find.texi:
2710         Applied several documentation improvement patches from Aaron Hawley
2712         * ChangeLog, NEWS: Updated with recent changes.
2714         * NEWS: Recent gnulib changed have fixed -iregex
2716         * doc/find.texi, xargs/xargs.1:
2717         Tiny patch from Andreas Metzler: xargs -I is like xargs -i, but the latter is deprecated
2719 2005-07-06  James Youngman  <jay@gnu.org>
2721         * find/defs.h, find/find.c, find/parser.c, find/pred.c:
2722         Fixed Savannah bug #13650; programs run by -exec cannot read stdin
2724 2005-07-04  James Youngman  <jay@gnu.org>
2726         * NEWS: *** empty log message ***
2728         * doc/find.texi:
2729         Added a "Worked Examples" section.   It currently only contains a
2730         (long) example about deleting files.
2732         * .cvsignore: Some extra stuff to ignore.
2734 2005-07-03  James Youngman  <jay@gnu.org>
2736         * find/Makefile.am: Don't need regexprops.c really...
2738         * lib/regextype.c, lib/regextype.h:
2739         New files for selecting regex type based on a keyword
2741         * locate/locate.1: Documented the fact that we now use Emacs-style
2742         regexps, not POSIX EREs, for compatibility with find -regex.
2744         * lib/Makefile.am, locate/locate.c, doc/find.texi,
2745         find/Makefile.am, find/defs.h, find/find.1, find/find.c,
2746         find/parser.c: Fixed Savannah bug #13495: find now uses
2747         Emacs-style regexps by default
2749 2005-07-02  James Youngman  <jay@gnu.org>
2751         * configure.in, find/defs.h, find/fstype.c, find/parser.c,
2752         intl/dcigettext.c, lib/buildcmd.c, lib/listfile.c,
2753         lib/savedirinfo.c, locate/locate.c, xargs/xargs.c: Assume unistd.h
2754         is present - avoid using HAVE_UNISTD_H
2756 2005-07-01  Jim Meyering  <jim@meyering.net>
2758         With `-fprint F' or `-fprintf F', don't write diagnostics
2759         to F when stderr is closed.
2761         * find/parser.c: Include "stdio-safer.h".
2762         (open_output_file): Use fopen_safer, not fopen.
2763         * import-gnulib.sh (findutils_modules): Add stdio-safer.
2765 2005-07-01  James Youngman  <jay@gnu.org>
2767         * doc/find.texi:
2768         Aaron pointed out a potentially-confusing sentence.  I fixed it.
2770         * find/defs.h, find/find.1, find/find.c, find/parser.c,
2771         find/pred.c, find/util.c: Allow consistency-checking of the
2772         predicates, checking for example that actions all have side
2773         effects
2775 2005-06-29  James Youngman  <jay@gnu.org>
2777         * doc/find.texi: Applied patch from Aaron Hawley (Savannah patch
2778         #3751: Typos and small suggestions to find.texi)
2780 2005-06-27  James Youngman  <jay@gnu.org>
2782         * ChangeLog, locate/locate.c: Applied patch from Bas Van Gompel to
2783         move match counting into a (new) visitor function
2785         * NEWS, configure.in: No longer 4.2.23, as we're moving on now
2787 2005-06-24  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
2789         * locate/locate.c (visit_count, visit_limit): New functions.
2790         (locate): Use visit_limit or visit_count. Simplify main loop.
2791         (main) Bail out early when limit is reached.
2793 2005-06-20  James Youngman  <jay@gnu.org>
2795         * xargs/xargs.c:
2796         Removed some code which had already been disabled via the preprocessor.
2798 2005-06-19  Dmitry V. Levin <ldv@altlinux.org>
2800         * lib/savedirinfo.c: Fix two compilation warnings (which would
2801         prevent compilation if "-Wall -Werror" is in effect).
2803 2005-06-19  James Youngman  <jay@gnu.org>
2805         * ChangeLog: Indicate that we made (are making) a release.
2807         * ChangeLog, NEWS, configure.in: Preparing to release 4.2.23
2809         * doc/find.texi: Fixed Texinfo syntax error in previous change
2811         * doc/find.texi, xargs/xargs.1:
2812         Document the fact that the -i and -L options are currently
2813         incompatible (Savannah bug 13041).
2815         * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
2816         reject trailing slashes in updatedb's --prunepaths, bacsue these
2817         will never be matched
2819         * NEWS: Released findutils-4.2.23.
2821         * doc/find.texi, xargs/xargs.1:
2822         Document the fact that the -i and -L options are currently
2823         incompatible (Savannah bug 13041).
2825         * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
2826         reject trailing slashes in updatedb's --prunepaths, because these
2827         will never be matched.
2829 2005-06-18  Martin Buchholz (trivial patch applied by James Youngman)
2831         * find/defs.h, find/find.c, find/parser.c, doc/find.texi: Fix
2832         typos/spelling errors (mostly in source code comments).
2834 2005-06-18  Dmitry V. Levin  <ldv@altlinux.org>
2836         Additional documentation tweaks for -execdir/-okdir actions.
2837         * find/parser.c (parse_help): Mention -execdir and -ordir options.
2838         * doc/find.texi, find/find.1: Additionally document new options.
2840 2005-06-12  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
2842         * locate/locate.c: Implement --all (-A).
2844         * NEWS, doc/find.texi, locate/locate.1: Document locate --all (-A)
2846 2005-06-12  James Youngman  <jay@gnu.org>
2848         * find/find.c, NEWS:
2849         Savannah bug #13381 (Debian bug 313081): if we have O_NOFOLLOW,
2850         safely_chdir() does not need to call stat().  However, process_dir()
2851         used to rely on using that stat information.  To work around this
2852         problem, there is now an output parameter in safely_chdir() which
2853         indicates if the stat buffer is valid.
2854         This bug has possible security implications.
2856         * find/find.1, doc/find.texi:
2857         Applied patch from Andreas Metzler, improving the wording for the
2858         documentation of the %k and %b format directives.  This patch does
2859         not require a copyright assignment as it consists of several
2860         copies of the same small wording change.
2862 2005-06-11  James Youngman  <jay@gnu.org>
2864         * find/find.1: Corrected spelling error 'writeable' to 'writable'.
2866         * find/find.1, locate/locate.1:
2867         Fixed Savannah bug #13363, typos in manpages (trivial change)
2869 2005-06-10  James Youngman  <jay@gnu.org>
2871         * find/find.c, lib/savedirinfo.c, lib/savedirinfo.h: Switch to a
2872         new scheme for saving directory entry data which is extensible to
2873         allow additional data to be saved.
2875 2005-06-09  James Youngman  <jay@gnu.org>
2877         * locate/testsuite/config/unix.exp:
2878         Use the new normalize_dir procedure throughout.
2880         * locate/testsuite/config/unix.exp: Move the normalisation into a
2881         procedure.  Don't rely on the "file normalize" command being
2882         available (it's new in Tcl 8.4).
2884 2005-06-08  James Youngman  <jay@gnu.org>
2886         * ChangeLog, NEWS, configure.in: Updated for recent changes
2888         * doc/find.texi:
2889         Explain that you should put the argument of -name in quotes.
2891         * find/find.1:
2892         Added a new "NON-BUGS" section pointing out things that look like bugs
2893         but are caused by mistakes or misunderstandings.
2895         * doc/find.texi, locate/locate.1: Applied Bas van Gompel's patch
2896         which allows the database to be read from stdin.
2898         * locate/locate.c:
2899         Read the database in by using the "visitor" pattern.  Modified file
2900         header comment to indicate that we no longer use the efficient
2901         algorith described in ;login:.  Emit an error message if the
2902         LOCATE_PATH variable implies that we should read stdin twice.
2903         Most of this code is from Bas van Gompel.
2905         * AUTHORS: Credit Bas van Gompel for his work on locate.
2907         * lib/printquoted.h: Appled patch from Bas - fixing compiler warning.
2909 2005-06-07  James Youngman  <jay@gnu.org>
2911         * ChangeLog, NEWS, configure.in: Updates prior to release
2913         * config.rpath: Added file required for 'make dist'
2915         * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
2916         po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
2917         po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
2918         po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
2919         po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po,
2920         po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po:
2921         updated the po files for release
2923         * xargs/testsuite/Makefile.am:
2924         Added in all the test files from Dmitry V. Levin.
2926 2005-06-08  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
2928         * NEWS, locate/locate.1, doc/find.texi: Document usage of `-'
2929         to refer to stdin in database-path for locate.
2930         * locate/locate.c: Change prototype for visitors and processors
2931         throughout. Move reading the database and generating base_name
2932         into visitors. Allow `-' to refer to stdin in database-path.
2934         * lib/printquoted.h: Include stdio.h.
2936 2005-06-07  James Youngman  <jay@gnu.org>
2938         * COPYING, debian/copyright, depcomp, doc/texinfo.tex,
2939         find/defs.h, find/find.c, find/fstype.c, find/parser.c,
2940         find/pred.c, find/testsuite/config/unix.exp, find/tree.c,
2941         find/util.c, import-gnulib.sh, intl/Makefile.in,
2942         intl/bindtextdom.c, intl/config.charset, intl/dcgettext.c,
2943         intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c,
2944         intl/dngettext.c, intl/explodename.c, intl/finddomain.c,
2945         intl/gettext.c, intl/gettext.h, intl/gettextP.h,
2946         intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
2947         intl/libgettext.h, intl/libgnuintl.h, intl/loadinfo.h,
2948         intl/loadmsgcat.c, intl/localcharset.c, intl/locale.alias,
2949         intl/localealias.c, intl/ngettext.c, intl/plural.c, intl/plural.y,
2950         intl/ref-add.sin, intl/ref-del.sin, intl/textdomain.c,
2951         lib/buildcmd.c, lib/buildcmd.h, lib/extendbuf.c, lib/extendbuf.h,
2952         lib/forcefindlib.c, lib/listfile.c, lib/listfile.h,
2953         lib/modetype.h, lib/nextelem.c, lib/nextelem.h, lib/printquoted.c,
2954         lib/printquoted.h, lib/qmark.c, lib/savedirinfo.c,
2955         lib/savedirinfo.h, lib/strspn.c, lib/wait.h, lib/waitpid.c,
2956         locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c,
2957         locate/locatedb.h, locate/testsuite/config/unix.exp,
2958         locate/updatedb.sh, missing, po/fetch-po-files,
2959         xargs/testsuite/config/unix.exp, xargs/xargs.c:
2960         Updated the FSF's postal address
2962         * ChangeLog: Corrected Bas's email address.
2964         * locate/locate.c: Updated copyright years.
2966 2005-06-07  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
2968          * locate/locate.c: Fold case once, only when needed.
2970 2005-06-07  James Youngman  <jay@gnu.org>
2972         * NEWS: Updated with recent changes.
2974         * mdate-sh: Use the mdate-sh from automake
2976         * find/parser.c, find/pred.c, find/tree.c, find/util.c,
2977         lib/Makefile.am, lib/forcefindlib.c, lib/listfile.c,
2978         lib/listfile.h, locate/code.c, locate/locate.c, find/defs.h,
2979         find/find.c: Fix Savannah bug #13324: Fix compiler warnings for
2980         GCC-3.4
2982         * locate/locate.c:
2983         Fixed Savannah bug #13325: Quoting of output filenames in locate
2984         should match find.
2986         * find/parser.c:
2987         Fixed Savannah bug #13319: C9X-ism in parser.c (declaration after
2988         statements).
2990         * find/pred.c, lib/Makefile.am, lib/listfile.c, lib/nextelem.c,
2991         lib/printquoted.c, lib/printquoted.h, lib/qmark.c, NEWS,
2992         doc/find.texi, find/defs.h, find/find.1, find/parser.c: Fixed
2993         Savannah bug #13303, find should filter out non-printable
2994         characters if outputting to tty
2996 2005-05-30  James Youngman  <jay@gnu.org>
2998         * locate/locate.c: rename new_locate() to locate() since
2999           old_locate() has gone the way of the dodo.
3001 2005-05-29  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
3003         Add a ``--print'' (``-p'') option. (to cancel side-effects of -c/-S)
3004         Allow ``--statistics'' in combination with non-options.
3005         * doc/find.texi: Add documentation for locate --print (-p), and the
3006         use of non-options with --statistics.
3007         * locate/locate.1: ditto.
3008         * locate/locate.c: Read each database only once.
3010 2005-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3012         Adjust to recent gnulib changes.
3013         * import-gnulib.sh: Get config.rpath from gnulib/build-aux,
3014         not gnulib/config.
3015         * find/parser.c (parse_perm): Ignore umask when parsing
3016         symbolic permissions.  Adjust to new modechange API.
3018 2005-05-16  James Youngman  <jay@gnu.org>
3020         * find/find.c, find/parser.c, find/pred.c, find/tree.c:
3021         Trivial change: don't use i18n support for debug-only messages
3023         * ChangeLog: Added ChangeLog entry crediting Dmitry
3025 2005-05-09  James Youngman  <jay@gnu.org>
3027         * find/parser.c:
3028         The previous change fixed Savannah bug #12999.  This change doesn't do
3029         anything, it's only intended to be a place to record the Savannah bug
3030         ID we've just fixed.
3032         * find/parser.c:
3033         Oops.  Initialise the variable which indicates which regex syntax to
3034         use.  We use POSIX basic regular expressions.
3036         * find/parser.c:
3037         Suggestion by Ed Avis: point out that "-name foo/bar" will almost
3038         always evaluate to false.   Suggest to the user what alternatives they
3039         might find useful.
3041 2005-05-02  James Youngman  <jay@gnu.org>
3043         * AUTHORS:
3044         Added Dimitry (his new test suite contribution required a copyright
3045         assignment).
3047 2005-05-03  Dmitry V. Levin
3049         * Added xargs test suite tests by Dmitry V. Levin, together with
3050           bugfixes which ensure that the tests pass.
3052 2005-04-18  James Youngman  <jay@gnu.org>
3054         * Added test suite tests for Bas van Gompel's changes.
3056 2005-04-18  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
3058         * doc/find.texi: Document locate --non-existing (-E).
3059         * locate/locate.1: Ditto.
3060         * locate/locate.c: Implement --non-existing (-E).
3062 2005-04-04  James Youngman  <jay@gnu.org>
3064         * configure.in, import-gnulib.sh:
3065         We no longer need gnulib/m4/Makefile.am
3067         * po/vi.po: Updated Vietnamese translation
3069         * locate/updatedb.sh:
3070         Savannah bug #12491: Only use the "-s" option to "su" if it is
3071         supported.
3073 2005-04-01  James Youngman  <jay@gnu.org>
3075         * locate/locate.1, locate/updatedb.1, xargs/xargs.1: Trivial
3076         change from A Costa <agcosta@gis.net>, fixing typos in manual
3077         pages for xargs, locate and updatedb; fixes Savannah bug #12500,
3078         Debian bug #301934
3080 2005-03-22  James Youngman  <jay@gnu.org>
3082         * import-gnulib.sh: Include the new gnulib module stat-macros
3084         * configure.in:
3085         CVS code is (will shortly be) no longer identical to the 4.2.20 release
3087 2005-03-17  James Youngman  <jay@gnu.org>
3089         * configure.in: Preprare for release of 4.2.20.
3091         * NEWS: Updated prior to release of 4.2.20.
3093         * ChangeLog: Updated with recent changes.
3095         * THANKS: Thank Bas van Gompel, but only once.
3097         * THANKS: Thank Bas van Gompel and Aaron S. Hawley.
3099         * po/vi.po: Updated Vietnamese PO file
3101 2005-03-10  James Youngman  <jay@gnu.org>
3103         * po/nl.po: Updated Dutch PO file
3105 2005-03-08  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
3107         * import-gnulib.sh: Re-enable creation of gnulib/m4/Makefile.am.
3109 2005-03-07  James Youngman  <jay@gnu.org>
3111         * Released findutils-4.2.19.
3113         * find/testsuite/find.posix/sizes.exp:
3114         Use 2>/dev/null instead of 2>&1, because Tcl understands the former
3115         but not the latter.
3117         * find/testsuite/Makefile.am: Also distribute sv-bug-12181.xo.
3119         * find/testsuite/Makefile.am: Distribute sv-bug-12181.
3121         * find/testsuite/Makefile.am: Distribute sv-bug-12230.
3123         * NEWS: Updated with new news.
3125         * ChangeLog: Brought up to date.
3127         * lib/buildcmd.c, find/testsuite/find.gnu/sv-bug-12230.exp: Fixed
3128         Savannah bug #12230, in which '-exec echo == {} +' is always run,
3129         even if there were no matched files.
3131 2005-03-06  James Youngman  <jay@gnu.org>
3133         * ChangeLog: Added latest changes.
3135         * po/pt.po, configure.in: Added Portuguese translation
3137 2005-03-04  James Youngman  <jay@gnu.org>
3139         * configure.in: Modernized the way we call AC_INIT and
3140         AM_INIT_AUTOMAKE
3142         * locate/locate.c, find/pred.c, find/find.c:
3143         Eliminated some compiler warnings
3145         * find/pred.c: Clarified the meaning of a comment.
3147         * find/testsuite/Makefile.am: Added sizes.exp, sizes.xo.
3149         * find/testsuite/find.posix/sizes.xo,
3150         find/testsuite/find.posix/sizes.exp: Added tests for -size
3151         predicate
3153 2005-03-03  James Youngman  <jay@gnu.org>
3155         * find/find.c:
3156         safely_chdir_lstat(): if we didn't end up in the right place, and then
3157         fchdir() fails, we can't return to the directory we started in.
3158         Therefore, issue a fatal error message and exit.
3160 2005-03-01  James Youngman  <jay@gnu.org>
3162         * find/find.c, find/testsuite/find.posix/sv-bug-12181.exp,
3163         find/testsuite/find.posix/sv-bug-12181.xo: Fixed SourceForge bug
3164         12181 (find -H symlink-to-dir reports 'Too many Symbolic links')
3165         and bug 12044 (find still hangs on dead NFS filesystems on
3166         Solaris)
3168 2005-02-28  James Youngman  <jay@gnu.org>
3170         * doc/find.texi: Typo: O_NOFOLLOW, not O_FOLLOW
3172         * import-gnulib.sh:
3173         Suggestion from Martin Buchholz; unset CDPATH to prevent "cd" echoing
3174         the new directory.
3176 2005-02-27  James Youngman  <jay@gnu.org>
3178         * README: Indicate how the reader can verify the release.
3180 2005-02-26  James Youngman  <jay@gnu.org>
3182         * po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po,
3183         po/zh_CN.po, po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po,
3184         po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot,
3185         po/fr.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
3186         po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
3187         po/pt_BR.po, po/ro.po, po/ru.po: Added new Vietnamese translation
3189         * configure.in: Added new Vietnamese translation.
3191 2005-02-25  James Youngman  <jay@gnu.org>
3193         * po/ga.po: Updated Irish po file
3195 2005-02-23  James Youngman  <jay@gnu.org>
3197         * Makefile.am: Fix Savannah bug #12064 - 'make distclean' deletes
3198         regex.c but should not.
3200         * find/testsuite/Makefile.am,
3201         find/testsuite/find.gnu/printf-h.exp,
3202         find/testsuite/find.gnu/printf-h.xo: Added test case for Savannah
3203         bug #12085 (-printf %h).
3205         * NEWS, doc/find.texi, find/find.1, find/pred.c:
3206         %h now expands to '.' instead of nothing.
3208 2005-02-22  James Youngman  <jay@gnu.org>
3210         * find/find.c:
3211         Fixed Savannah bug #12099 (misinterpretation of system versions
3212         leading to possible incorrect disabling of O_NOFOLLOW).  Reported by
3213         Dmitry V. Levin.
3215         * find/pred.c:
3216         For the %h format, don't bail out early as the format might contain
3217         something else too.
3219 2005-02-21  James Youngman  <jay@gnu.org>
3221         * find/find.c: Fixed accidental C99 dependency.
3223 2005-02-20  James Youngman  <jay@gnu.org>
3225         * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
3226         po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
3227         po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
3228         po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
3229         po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sl.po, po/sr.po,
3230         po/sv.po, po/tr.po, po/zh_CN.po: Updated italian translation
3232         * doc/find.texi: Corrected a typo.
3234         * find/find.c:
3235         Read the mounted device list afer parsing the command line, so that
3236         for example "find --version" still works (in response to Savannah bug
3237         #12044).
3239         * configure.in: We've moved on from findutils-4.2.18.
3241 2005-02-19  James Youngman  <jay@gnu.org>
3243         * NEWS: Corrected the summary of the "find -depth" bug.
3245 2005-02-16  James Youngman  <jay@gnu.org>
3247         * NEWS, configure.in: Prepared for release of 4.2.18.
3249         * ChangeLog: Updated prior to release of 4.2.18.
3251         * find/testsuite/Makefile.am:
3252         Distribute the test cases for the recent "find -depth" bug.
3254         * find/testsuite/find.posix/depth1.exp, find/testsuite/find.posix/depth1.xo:
3255         Added test case for find -depth bug reported by Joseph S. Myers
3257         * find/find.c:
3258         If -depth is in effect, processing of the subdirectories invalidates
3259         the information in 'state'.  Therefore once we get around to
3260         processing the predicates, restore the information that we keep in
3261         'state' and in 'stat_buf'.
3263 2005-02-15  James Youngman  <jay@gnu.org>
3265         * ChangeLog: Updated with recent changes
3267         * find/find.1:
3268         Emphasise that -L causes find to recurse into subdirectories pointed
3269         to by symbolic links.
3271         * find/find.1:
3272         Patch to find.1 from Aaron Hawley <Aaron.Hawley@uvm.edu>:
3274         * Notes about -H actually apply to -L.
3275         * Said paragraph is duplicated two paragraphs later.
3276         * Typos: nno, ibmue, surrpounding
3278 2005-02-15  Aaron Hawley  <Aaron.Hawley@uvm.edu>
3280         * find/find.1: Notes about -H actually apply to -L.  Said
3281         paragraph is duplicated two paragraphs later.  Also typos: nno,
3282         ibmue, surrpounding
3284 2005-02-13  James Youngman  <jay@gnu.org>
3286         * find/find.1: Miscellaneous small clarifications and improvements.
3288         * doc/find.texi: Added Info nodes and menus under "Changing the
3289         Current Working Directory" so that it doesn't generate such a huge
3290         Info page.
3292         * find/find.c: Parenthesise #if defined(...).
3294 2005-02-13  Dmitry V. Levin  <ldv@altlinux.org>
3296         * find/find.c: remove test code snippet (time(NULL) was used to
3297         place a marker for spotting with strace(), but was not actually
3298         needed).
3300         * find/find.c (safely_chdir_nofollow): must not fall back on
3301         safely_chdir_lstat() because that will expose it to race condition
3302         exploits, making it pointless.
3304         * find/find.c (safely_chdir_lstat): Move
3305         complete_pending_execdirs() up into safely_chdir(), because we
3306         need to do that in either case.
3308 2005-02-12  James Youngman  <jay@gnu.org>
3310         * configure.in, doc/find.texi, find/defs.h, find/find.c,
3311         find/parser.c: Fix for Savannah bug #11879, that
3312         init_mounted_dev_list() causes find to hang on systems which are
3313         clients to dead NFS servers
3315 2005-02-10  James Youngman  <jay@gnu.org>
3317         * doc/find.texi: Talk about the problem where find will not work
3318         if you have a filesystem mounted from an unresponsive NFS server.
3320 2005-02-09  James Youngman  <jay@gnu.org>
3322         * find/find.1: Indicate that $TZ affects from printf-format
3323         results, and add extra cross-references in the SEE ALSO section.
3325 2005-02-08  James Youngman  <jay@gnu.org>
3327         * xargs/testsuite/Makefile.am: Distribute the .xe files also.
3329         * Makefile.am: Check that we have the right number of .xe files in
3330         the distribution also.
3332         * ChangeLog, NEWS, configure.in
3333         Preparing to release findutils-4.2.17
3335 2005-02-07  James Youngman  <jay@gnu.org>
3337         * find/testsuite/config/unix.exp: Re-sort the .xo file using the
3338         calling user's locale, because our 'pre-sorted' .so output file
3339         may not be sorted with the same collating order as 'sort' used to
3340         order the output of "find.  Bug spotted by Vin Shelton and Dimitry
3341         V. Levin.
3343         * find/testsuite/Makefile.am:
3344         New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
3346         * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
3347         find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
3348         Fix for starting point /foo/bar/baz where bar is a symlink but baz
3349         is not - we should chdir into bar there even if it is a symbolic
3350         link
3352 2005-02-07  James Youngman  <jay@gnu.org>
3354         * find/testsuite/Makefile.am:
3355         New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
3357         * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
3358         find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
3359         Fix for starting point /foo/bar/baz where bar is a symlink but baz
3360         is not - we should chdir into bar there even if it is a symbolic
3361         link
3363 2005-02-06  James Youngman  <jay@gnu.org>
3365         * doc/find.texi:
3366         -size: Clarification - -size gives a result consistent with 'wc -c'
3367          for example.
3369         * Makefile.am, find/testsuite/Makefile.am,
3370         find/testsuite/find.gnu/execdir-root-only.exp,
3371         find/testsuite/find.gnu/execdir-root-only.xo,
3372         locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
3373         dist-hook: Ensure that we distribute all the .po files and all the
3374         testsuite files
3376         * po/pl.po: Updated Polish translation from TP website
3378 2005-02-05  Dmitry V. Levin  <ldv@altlinux.org>
3380         * find/parser.c, find/pred.c: Additional tweaks for
3381         -execdir/-okdir actions.
3383         * find/parser.c (new_insert_exec_ok): Disable ignore_readdir_race
3384         for -execdir/-okdir.
3386         * find/pred.c (pred_execdir, pred_okdir): Use state.rel_pathname
3387         instead of basename(pathname).  Do not add "./" prefix for
3388         absolute pathnames.
3390         * find/find.c (process_top_path): Treat "/" similarly to ".".
3392         * xargs/testsuite/xargs.posix/savannah-11865.exp,
3393         xargs/testsuite/xargs.posix/savannah-11865.xo, xargs/xargs.c:
3394         Fixed Savannah bug #11866 (not resetting number of used chars in
3395         the command buffer) - reported by Dimitry V. Levin
3397 2005-02-05  James Youngman  <jay@gnu.org>
3399         * THANKS:
3400         Added thanks for Dimitry - has produced many patches, bugfixes and
3401         suggestions.
3403         * find/pred.c:
3404         Fixed Savannah bug #11866: typo in pred_okdir() renders it useless
3406         * find/pred.c:
3407         Savannah bug #11861: undefined symbol 'basename' on IRIX 5.3
3409         * NEWS, configure.in, po/be.po, po/ca.po, po/el.po, po/eo.po,
3410         po/fi.po, po/ga.po, po/hr.po, po/hu.po, po/ja.po, po/lg.po,
3411         po/ms.po, po/ro.po, po/sl.po, po/sr.po, po/zh_CN.po: Added new
3412         translations
3414         * ChangeLog: Updated from CVS prior to release of 4.2.16.
3416         * po/ChangeLog: Updated from CVS.
3418         * NEWS, configure.in: Preparing to release 4.2.16
3420         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
3421         po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
3422         po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sl.po, po/sv.po,
3423         po/tr.po: make update-po prior to 'make distcheck'
3425         * po/fetch-po-files: This is the first version we actually used.
3427         * find/find.c: process_top_path() fixed compilation warning.
3429         * find/find.c: process_top_path(): avoid processing this item if
3430         we can't chdir to the basename of the named file.
3432         * lib/Makefile.am: Always build forcefindlib.c
3434         * locate/locate.c: Say 'base name' rather than 'basename' in comments
3436         * find/pred.c, find/find.c: process_top_path(): Proper bugfix for
3437         correct handling of items at depth 0 (i.e. specified on the
3438         command line) - do an extra chdir to ensure that we're in the
3439         directory containing the item before calling process_path().
3440         Hnece also undo the previous 'quick fix' for the same problem
3442         * doc/find.texi:
3443         -execdir no longer has to treat anything as special, even at depth 0.
3445 2005-02-03  James Youngman  <jay@gnu.org>
3447         * doc/find.texi, find/pred.c: When state.curdepth is 0, our
3448         working directory is not the directory containing the file we are
3449         processing.
3451 2005-02-02  James Youngman  <jay@gnu.org>
3453         * find/pred.c:
3454         To allow compilation on cygwin, use base_name(), not basename().
3457 2005-02-01  James Youngman  <jay@gnu.org>
3459         * ChangeLog: Updated from CVS log.
3461 2005-01-31  James Youngman  <jay@gnu.org>
3463         * find/find.c, lib/nextelem.c, lib/nextelem.h, locate/code.c,
3464         locate/frcode.c, locate/testsuite/config/unix.exp,
3465         xargs/testsuite/config/unix.exp, xargs/xargs.c: Updated/corrected
3466         the email address for David MacKenzie, one of the original authors
3467         of findutils
3469         * doc/Makefile.am: The HTML version of the manual generated for
3470         the GNU project website has each node in a separate file, not each
3471         chapter in a separate file; adjust filenames accordingly
3473         * find/parser.c, find/pred.c, lib/savedirinfo.c:
3474         Removed some unused variables (patch from Dmitry V. Levin)
3476         * find/find.c:
3477         Patch from Dmitry V. Levin <ldv@altlinux.org>: Add subfs to the list
3478         of filesystems which are likely to be automounted.
3480         * m4/findlib.m4: Corrected typo (pointed out by Dmitry V. Levin).
3482         * find/testsuite/config/unix.exp,
3483         find/testsuite/find.gnu/name-period.xo,
3484         find/testsuite/find.gnu/posix-dflt.xo,
3485         find/testsuite/find.gnu/posix-h.xo,
3486         find/testsuite/find.gnu/posix-l.xo,
3487         find/testsuite/find.gnu/printf.exp,
3488         find/testsuite/find.gnu/printf.xo: Systems differ in the order in
3489         which filenames are returned by readdir.  Hence sort the output of
3490         'find' before comparing against the expected-output file.  We
3491         therefore also have the lines in the .xo files ready-sorted.
3493 2005-01-30  James Youngman  <jay@gnu.org>
3495         * doc/Makefile.am:
3496         Added rules for extra targets that we buld to update the web site.
3498 2005-01-29  James Youngman  <jay@gnu.org>
3500         * configure.in: No longer version 4.2.15 - we've changed the manual.
3502         * doc/find.texi:
3503         Clarified the txt about adding extra tests with post-processing via
3504         xargs, and recommend -execdir instead for security reasons.
3506         * doc/find.texi: Patch from Karl Berry:
3507         - more entries for the dir file
3508         - use @copying so the copyright ends up in the HTML etc. output.
3509           (This is the only really important change.)
3510         - put @contents after the title page, for conventional toc location.
3511         - use @ifnottex to wrap the Top node instead of @ifinfo, for the sake of
3512           HTML output, etc.
3514         * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
3515         po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
3516         po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
3517         po/sv.po, po/tr.po: Prepared to release findutils-4.2.15
3519         * ChangeLog: Updated from CVS log.
3521 2005-01-28  James Youngman  <jay@gnu.org>
3523         * configure.in:
3524         Make --enable-d_type-optimization and --enable-d_type-optimisation
3525         both work.
3527         * configure.in: Assume --enable-d_type-optimisation by default
3529         * find/parser.c: Indicate which features are enabled/disabled
3531         * locate/testsuite/config/unix.exp:
3532         Clean up the files left behind by the locate_textonly test
3534 2005-01-27  James Youngman  <jay@gnu.org>
3536         * doc/find.texi: Documented --regex.
3538         * NEWS, locate/locate.1, locate/locate.c, locate/testsuite/Makefile.am, locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/regex1.exp:
3539         Implemented locate --regex - but needs documenting in Texinfo manual.
3541 2005-01-25  James Youngman  <jay@gnu.org>
3543         * configure.in: Bumped version no.
3545         * doc/find.texi:
3546         Document --mmap and --stdio as being synonyms of -m and -s.
3548         * locate/locate.1:
3549         Document --mmap and --stdio as synonyms of -m and -s.
3551         * locate/locate.c:
3552         Document -m and -s (both no-ops) in the usage message.
3554         * doc/find.texi, locate/locate.1: Document -m and -s as no-ops.
3556         * ChangeLog: Updated for release of findutils-4.2.14.
3558         * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
3559         Preparing to release findutils-4.2.14
3561 2005-01-25  James Youngman  <jay@gnu.org>
3563         * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
3564         po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
3565         po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
3566         po/sv.po, po/tr.po: Preparing to release findutils-4.2.14
3568 2005-01-24  James Youngman  <jay@gnu.org>
3570         * Makefile.am: Work around the fact that automake-1.7 actually
3571         works, and correctly distributes regex.c; hence dist-hook should
3572         only copy gnulib/lib/regex.c if this has not already been done.
3574         * find/defs.h, find/find.c, find/pred.c,
3575         find/testsuite/Makefile.am,
3576         find/testsuite/find.gnu/printf-symlink.exp,
3577         find/testsuite/find.gnu/printf-symlink.xo,
3578         find/testsuite/find.gnu/xtype-symlink.exp,
3579         find/testsuite/find.gnu/xtype-symlink.xo: Fixes for -xtype and
3580         -printf %Y, which had been the wrong way around.
3582         * NEWS: Avoid including the find.gnu subdirectory in the
3583         distributed file more than once
3585         * locate/locate.c:
3586         Move the printing of the statistics into a new function, print_stats()
3588         * find/testsuite/Makefile.am: Avoid including the find.gnu
3589         subdirectory in the distributed file more than once
3591         * import-gnulib.sh:
3592         We need the regex module anyway, to allow compilation on Solaris
3594 2005-01-23  James Youngman  <jay@gnu.org>
3596         * configure.in:
3597         Invoke gl_INCLUDED_REGEX directly to ensure successful compilation on
3598         systems like Solaris, which lacks those functions in libc (fixes GNU
3599         Savannah bug #11710).
3601         * locate/locate.1: -S is a synonym for --statistics
3603         * doc/find.texi: Documented the new -H, -L and -P options.
3605         * locate/locate.1, locate/locate.c: Implement options -L
3606         (default), -H and -P, which mean the same things as for find,
3607         except for the fact that the default is -L rather than -P
3609         * find/find.1: Corrected definition of the exit status for -quit.
3611         * find/find.c, find/pred.c: If DEBUG_STAT is set, issue a debug
3612         message when we call chdir() so that we can figure out what is
3613         actually being stat()ed
3615         * locate/updatedb.sh:
3616         Removed spurious newline from help message (bug report from Karl
3617         Berry).
3619         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
3620         po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
3621         po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po,
3622         Makefile.am, NEWS, configure.in, find/defs.h, find/find.c,
3623         find/parser.c, find/pred.c, find/tree.c, find/util.c,
3624         import-gnulib.sh, lib/savedirinfo.c: Merged the d_type
3625         optimisation code; this is disabled by default, and can be enabled
3626         with 'configure --enable-d_type-optimisation'
3628         * NEWS:
3629         Updated optimisation NEWS item to indicate the effect on runtime.
3631 2005-01-22  James Youngman  <jay@gnu.org>
3633         * NEWS, configure.in: Prepare for release of findutils-4.2.12
3635         * ChangeLog: Brought up to date with recent changes.
3637         * Makefile.am, import-gnulib.sh, po/Makefile.in.in, po/Makevars,
3638         po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
3639         po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
3640         po/pl.po, po/pt_BR.po, po/remove-potcdate.sin, po/ru.po, po/sk.po,
3641         po/sv.po, po/tr.po: Switch to using the gnulib gettext module, to
3642         ensure that 'make distcheck' works with current xgettext,
3643         autoconf, etc.
3645         * find/testsuite/config/unix.exp:
3646         Oops, we do need to clean up after all.
3648 2005-01-21  James Youngman  <jay@gnu.org>
3650         * xargs/testsuite/Makefile.am: Added name of missing input file.
3652         * find/testsuite/Makefile.am:
3653         Distribute a few files that we had forgotten about
3655         * xargs/testsuite/Makefile.am: Added some missing files.
3657         * lib/Makefile.am: Also need buildcmd.h.
3659         * xargs/testsuite/Makefile.am: Fixed a typo.
3661         * NEWS: Indicate the d_type performance improvement
3663 2005-01-18  James Youngman  <jay@gnu.org>
3665         * lib/savedirinfo.h: Added on d_type_optimisation also
3667         * lib/savedirinfo.c: Added on branch d_type_optimisation also.
3669         * find/pred.c: Added assert that we actually know the file type by
3670         the time pred_type() is called
3672         * find/find.c: Always initialise state.have_stat = false when
3673         starting to work with a new file
3675 2005-01-17  James Youngman  <jay@gnu.org>
3677         * ChangeLog: Brought up to date with recent changes.
3679         * NEWS: Documented the changes so far.
3681         * find/testsuite/find.gnu/exec-many-rtn-success.xo:
3682         Expected output for exec-many-rtn-success.exp
3684         * find/find.1:
3685         Indicate that -quit still ensures that pending commands are invoked
3687         * doc/find.texi:
3688         Indicate that -quit still causes partial command lines to be invoked,
3689         but there are some types of fatal error which leave such commands
3690         uninvoked.
3692         * find/defs.h, find/find.c, find/pred.c, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
3693         Fixed savannah bug  #11625 Wrong return status for -exec ... \; when command fails; also execute any pending commands when doing -quit
3695         * find/testsuite/find.gnu/exec-many-rtn-failure.exp, find/testsuite/find.gnu/exec-many-rtn-failure.xo, find/testsuite/find.gnu/exec-many-rtn-success.exp, find/testsuite/find.gnu/exec-one-rtn-fail.exp, find/testsuite/find.gnu/exec-one-rtn-fail.xo, find/testsuite/find.gnu/exec-one-rtn-success.exp, find/testsuite/find.gnu/exec-one-rtn-success.xo:
3696         Various test cases for succeeding and failing forms of -exec \; and -exec {} +
3698         * find/pred.c: "-exec ... {} +" always returns "true".
3700         * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
3701         Implemented d_type optimisation but not working correctly, so currently disabled
3703         * lib/savedirinfo.h, lib/savedirinfo.c:
3704         Initial implementation (temporarily disabled).
3706         * lib/Makefile.am: Resolved merge conflict.
3708         * lib/Makefile.am:
3709         Make sure nextelem.h is included in the list of sources.
3711         * find/parser.c, lib/nextelem.c, lib/nextelem.h, locate/locate.c:
3712         Use prototypes for next_element() to make sure it is called correctly.
3714 2005-01-16  James Youngman  <jay@gnu.org>
3716         * find/find.c, find/pred.c:
3717         When completing incomplete multiple execs, use 'eval_tree' not 'predicates'
3719         * lib/buildcmd.c:
3720         Oops, initialise state->cmd_initial_argv_chars to zero.
3722         * find/find.1:
3723         Document the way that -execdir and -okdir will refuse to wqork if ">"
3724         is on $PATH.  Also document -okdir in the manpage.
3726         * find/parser.c:
3727         -execdir and -okdir are insecure if $PATH includes the current
3728          directory, and so they refuse to work if the user has done that.
3730         * find/pred.c:
3731         Oops; for -exec ... {} +, pass arguments to bc_push_arg() in the right
3732         order.   Problem spotted by Geoff Clare.
3734         * TODO: Removed items which have now been done.
3736         * lib/buildcmd.c: Tidied up formatting of arg list for bc_do_insert
3738 2005-01-15  James Youngman  <jay@gnu.org>
3740         * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo:
3741         Added extra tests for more printf formats; patch by Andreas Metzler
3743         * locate/locate.c:
3744         Ensure that the new long options have a relevang short option too.
3745         Also bring usage message into line with the options actually
3746         supported.  Thanks to Bas van Gompel for noticing this defect.
3748         * locate/locate.1:
3749         Escape "-" in SYNOPSIS.  Thanks to Bas van Gompel for noticing this
3750         defect.
3752         * ChangeLog: Fixed typos.
3754         * doc/find.texi:
3755         Documented -execdir, and the "+" variants of -exec and -execdir.
3757         * find/find.1: Documented -execdir.
3759         * xargs/xargs.c:
3760         Updated to bring into line with bc_*() interface changes
3762         * ChangeLog: Updated with recent changes.
3764         * find/defs.h, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h:
3765         Implemented -execdir and -okdir
3767         * find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
3768         First working version of -exec ...+
3770 2005-01-09  James Youngman  <jay@gnu.org>
3772         * find/defs.h, find/find.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
3773         Initial implementation of -exec ..{} +, but currently disabled since not yet working
3775 2005-01-08  James Youngman  <jay@gnu.org>
3777         * find/find.c: Fixed typo in comment.
3779         * find/defs.h, find/find.c, find/parser.c, find/pred.c:
3780         We now understand but do not implement -execdir (a *BSD invention, and a very useful security enhancement) and -okdir (the obvious companion to it)
3782         * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
3783         The GNU coding standard requires a space between the function name and
3784         its parenthesised argument list.
3786         * find/defs.h:
3787         Understand the -exec ... {} \+ construction (for multiple
3788         replacement).  No support yet.
3790         * locate/locate.1:
3791         Indicate that empty elements in the dbpath are treated as synonyms for
3792         the default database.
3794         * locate/locate.c:
3795         Support empty elements in the dbpath as synonyms for the default
3796         database.  These colons can be leading, trailing or in the middle of
3797         the string.  We no longer com,plain if the user does this.
3799         * lib/nextelem.c:
3800         If curdir_ok is 0 and an element is empty, return "" instead of NULL
3801         so that the caller knows to keep calling us.
3803         * find/find.c, find/pred.c, import-gnulib.sh, locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
3804         Savannah bug 11517: find, xargs, locate, etc. should not hide write failures; patch from Jim Meyering
3806         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
3807         changed .pot creation date
3809         * THANKS, AUTHORS: Take into account the FSF copyright-assignments list
3811         * doc/find.texi:
3812         If -quit is used, the exit value can be nonzero if errors have occurred.
3814         * find/find.1:
3815         Removed incorrect comment about -H, -P and -follow in HISTORY.
3817 2005-01-07  James Youngman  <jay@gnu.org>
3819         * lib/Makefile.am, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
3820         Refactored xargs to use an external library function from the new file buildcmd.c
3822         * configure.in: no longer the same as the released 4.2.11 version
3824 2005-01-06  James Youngman  <jay@gnu.org>
3826         * xargs/testsuite/inputs/lines.xi, xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/Makefile.am:
3827         Tests for the -L option
3829         * xargs/testsuite/config/unix.exp: When a test fails, show the diffs
3831         * xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/xargs.posix/l2.xo:
3832         tests for the -l option
3834         * xargs/testsuite/Makefile.am: Added extra test files
3836         * xargs/testsuite/xargs.sysv/trace.exp, xargs/testsuite/xargs.sysv/trace.xe, xargs/testsuite/xargs.sysv/trace.xo:
3837         Added tests for the -t option
3839         * xargs/testsuite/config/unix.exp, xargs/testsuite/inputs/foobar.xi, xargs/testsuite/xargs.gnu/r.exp, xargs/testsuite/xargs.gnu/r.xo, xargs/xargs.1:
3840         Use a blanks-only input file for cases where there is supposed to be no output
3842         * xargs/testsuite/inputs/blank.xi: Initial version.
3844         * xargs/xargs.1:
3845         Corrected a typo; also indicate that it's impossible to use xargs
3846         securely due to the race condition.
3848 2005-01-05  James Youngman  <jay@gnu.org>
3850         * find/parser.c:
3851         Fixed Savannah bug 11495: fallthrough from -printf format processing
3852         from 'n' case to 'd' case.
3854 2005-01-03  James Youngman  <jay@gnu.org>
3856         * doc/find.texi:
3857         Oops.  Had duplicated an entire section.  Fortunately this was after
3858         @bye, so there was no adverse effect.
3860         * NEWS: locate -b.
3862         * doc/find.texi, locate/locate.1: document locate -S
3864         * configure.in, doc/find.texi, locate/locate.1, locate/locate.c:
3865         Support locate -b as a synonym for locate --basename
3867         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
3868         distcheck
3870         * find/testsuite/config/unix.exp:
3871         Clean up (delete) find.out at at the end of the test.
3873         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c, find/pred.c:
3874         Implemented the -samefile test for find
3876 2005-01-02  James Youngman  <jay@gnu.org>
3878         * ChangeLog: Updated with recent changes.
3880         * NEWS:
3881         Bas van Gompel: two-line patch to locate.c to make locate's -i and -w
3882         options work if -e is in use.
3884         * THANKS: Added Bas van Gompel.
3886         * locate/locate.c:
3887         Bas van Gompel: (visit_exists) when testing for the existence of the
3888         file, check the real filename [printname], not the case-converted
3889         filename [testname].  Really these argument names are badly chosen.
3891         * find/find.1, doc/find.texi:
3892         Improved the documentation for -perm, with plenty of examples,
3893         following a comment by Dan Jacobson that the comment "Symbolic modes
3894         use mode 0 as a point of departure" is baffling and unhelpful.
3896         * locate/locate.c:
3897         Suggestion and patch from Bas van Gompel: (new_locate): Fix display of
3898         negative compression ratios.
3900 2004-12-31  James Youngman  <jay@gnu.org>
3902         * NEWS: Brought up to date with recent changes
3904         * doc/find.texi:
3905         Don't need to nest the "race conditions with..." sections so deeply.
3907         * doc/find.texi: Corrected some spelling errors.
3909         * doc/find.texi: Added new "Security Considerations" chapter.
3911 2004-12-23  James Youngman  <jay@gnu.org>
3913         * locate/locate.c:
3914         Applied bugfixes from Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>.
3915         (lc_strcpy): Zero-terminate result.
3916         (add_visitor): Update lastinspector.
3917         (visit_substring_match_casefold): fix off-by-one error.
3918         (new_locate): Move visit_exists down to improve performance.
3919         (new_locate): Don't fold case when getting stats.
3921 2004-12-19  James Youngman  <jay@gnu.org>
3923         * doc/find.texi:
3924         Indicate that "cd /; find tmp -wholename /tmp" will never match anything.
3926         * doc/find.texi: Documented locate --statistics.
3928         * locate/locate.1: Documented the --statistics option.
3930         * locate/locate.c: Added support for the -S option.
3932 2004-12-12  James Youngman  <jay@gnu.org>
3934         * NEWS: Added a summary of the changes so far.
3936         * find/tree.c: Made some of the error messages more self-explanatory
3938         * find/pred.c: Print pointers with %p, not %x.
3940         * find/find.c: Moved option data into struct options.
3942         * find/find.1: clarifications
3944         * find/testsuite/find.gnu/comma.exp:
3945         Limit the amount of searching with maxdepth.
3947         * doc/find.texi: clearer description of how -prune works
3949         * ChangeLog: Removed duplicate entry.
3951         * configure.in, find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
3952         Separated ariables representing current state from variable representing option information
3954 2004-12-11  James Youngman  <jay@gnu.org>
3956         * find/parser.c: Readability improvement to the usage message.
3958         * find/find.c: Oops.  Fixed unmatched #endif.
3960         * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo, THANKS, configure.in, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
3961         Fixed Savannah bug #11280
3963         * find/find.c:
3964         Remember to set path_length and curdepth in process_top_path().
3966 2004-12-07  James Youngman  <jay@gnu.org>
3968         * find/fstype.c: Use xstat() not stat() to examine things.
3970         * find/find.c: Explain why #ifdef EOVERFLOW.
3972         * find/find.c: EOVERFLOW is not defined on UNICOS.
3974         * NEWS: Corrected typo.
3976 2004-12-06  James Youngman  <jay@gnu.org>
3978         * ChangeLog: Brought up to date.
3980         * NEWS, configure.in: releasing 4.2.10
3982         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
3983         distcheck
3985         * ChangeLog: Updated prior to release of finsutils-4.2.10.
3987         * import-gnulib.sh, find/fstype.c:
3988         Use gnulib's mountlist module instead of grokking it ourselves.
3990         * configure.in:
3991         Removed all the out-of-date cruft for grokking getmntent().
3993         * xargs/xargs.c:
3994         Added the -I and -L options; also -E takes an argument which is not optional.
3996 2004-12-05  James Youngman  <jay@gnu.org>
3998         * README, configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c:
3999         Allow debug output to be turned on or off by saying --enable-debug on the configure command line
4001         * README:
4002         Removed disparaging (it is now, it probably wasn't then) comment about
4003         the production-readiness of Automake.
4005         * README: Qualify remarks about POSIX compliance.
4007         * NEWS, configure.in: Preparation for release 4.2.9
4009         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
4010         distcheck
4012         * ChangeLog: Brought up to date.
4014         * find/find.c:
4015         Avoid duplicate error message when we cannot chdir() into a subdirectory.
4017         * THANKS: Added recent thankees.
4019         * NEWS:
4020         Brought up to date with respect to the current set of fixed bugs.
4022         * NEWS, xargs/xargs.1, xargs/xargs.c:
4023         Implemented POSIX options -L, -I and -E
4025 2004-12-03  James Youngman  <jay@gnu.org>
4027         * find/parser.c:
4028         -xdev is an option, not a test.   Fixes Savannah bug 11192.
4030         * find/find.1, xargs/xargs.1:
4031         Escape dashes with a backslash (for fix Savannah bug 11189).
4033 2004-11-27  James Youngman  <jay@gnu.org>
4035         * find/find.c:
4036         More use of safely_chdir(). Also bugfix: -L should imply -noleaf.  Be more careful about when xstat should fall back on lstat() when stat() fails.
4038         * find/find.1: "necessary" only has one "C".
4040         * find/find.1:
4041         If stat() fails with ELOOP, we issue a diagnostic message.
4043 2004-11-26  James Youngman  <jay@gnu.org>
4045         * find/find.c: Removed some unused code.
4047         * Makefile.am: Don't do anything in the 'intl' subdirectory
4049         * find/find.c:
4050         Enhanced safely_chdir() to the point where the test suite passes, and report infinite loops in the directory hierarchy
4052         * find/defs.h:
4053         belt and braces; ensure that SYMLINK_NEVER_DEREF has value zero
4055         * find/find.1:
4056         Describe our strategy for detecting and reporting infinite loops
4058 2004-11-24  James Youngman  <jay@gnu.org>
4060         * doc/find.texi:
4061         Updated the discussion of th error messages for findutils-4.2.8.
4063         * configure.in: Next version will be 4.2.9...
4065         * find/find.c:
4066         Don't issue a warning if we notice the mounting of a filesystem that's
4067         likely just to be an automounter.
4069         * doc/find.texi, find/find.1:
4070         Explain how rounding is performed for -atime and friends.
4072         * xargs/xargs.c:
4073         Once we collect enough arguments (for the value specified by the -n
4074         option) to do an exec(), do it immediaely instead of waiting for the
4075         next one to arrive.  This fixes Savannah bug #7340.
4077         * ChangeLog, configure.in, NEWS: Prepare to release 4.2.8.
4079         * NEWS: Updates for 4.2.8.
4081         * configure.in: check for  sys/types.h
4083         * find/find.c:
4084         If wd_sanity_check() discovers that the mount table has changed, remember the updated device number and inode so that we also consider these to be valid on the way back up.
4086         * find/defs.h:
4087         Declarations of xmalloc() and friends belong in xalloc.h, not in defs.h
4089         * find/parser.c: avoid signed/unsigned warning, and #include xalloc.h
4091         * find/fstype.c:
4092         Changed to alloc get_mounted_devices() to compile on Solaris
4094         * README-CVS:
4095         Automake requires GNU m4, so point out that the reader needs that.
4097         * find/defs.h, find/find.c, find/fstype.c:
4098         When wd_sanity_check() fails, enumerate the mounted devices, rather than the mounted filesystem names
4100         * NEWS: prepare for 4.2.8
4102         * configure.in:
4103         Look for some Solaris headers which are used by get_mounted_devices()
4105         * lib/Makefile.am: don't build savedirtypes yet
4107         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
4108         updated po files
4110         * m4/nullsort.m4:
4111         Avoid suprious output of the test data when the tests fail.
4113 2004-11-21  James Youngman  <jay@gnu.org>
4115         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
4116         Messages changed again
4118         * ChangeLog, configure.in: Preparing to release 4.2.7.
4120         * NEWS: Updated for release of 4.2.7.
4122         * import-gnulib.sh: Also need canonicalize module.
4124         * find/find.c:
4125         When checking to see if a filesystem has changed state, use an
4126         absolute pathname.
4128         * configure.in:
4129         No need to pause to allow James to view his handiwork, it (allegedly)
4130         works now.
4132         * configure.in:
4133         Oops.  Check for setlocale() to re-enable the i18n support which was
4134         accidentally disabled in 4.2.5.
4136         * find/find.c:
4137         Check to see if the new directory is a transitioned mount point by
4138         using its ABSOLUTE name, if we can figure it out.
4140         * doc/find.texi:
4141         Added guidance on some of the error messages.  Not the most common
4142         ones, but the ones where the user might most benefit from some handy
4143         hints or an explanation of what is going on.
4145         * find/pred.c:
4146         Actually emit an error message if we fail to stat a symlink (for
4147         reasons other than nonexistence of the link and infinite loop).
4149         * doc/texinfo.tex: Updated texinfo.tex
4151         * NEWS, configure.in, find/find.c, find/fstype.c:
4152         Enable the 'Warning: filesystem XXX has recently been mounted' check on Solaris, which prevents it exiting fatally when traversing an automount mount point
4154         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
4155         messages changed again
4157         * NEWS: Implemented xargs --arg-file.
4159         * doc/find.texi, xargs/xargs.1, xargs/xargs.c, NEWS:
4160         Implemented xargs --arg-file
4162         * find/find.c:
4163         Where a filesystem was recently (un)mounted, try togive its full name
4165         * configure.in:
4166         Try to avoid requesting -lsun if we don't seem to need it (e.g. on
4167         UNICOS where it is not present and trying to link against it produces
4168         a warning).
4170         * find/defs.h, lib/modetype.h: Guard against multiple inclusion
4172         * find/fstype.c:
4173         We now need <mntent.h> even if we are not using getmntent() to figure
4174         out the type of a filesystem, because wd_sanity_check() needs to
4175         enumerate the system mount points.
4177         * configure.in: Next release will be 4.2.7.
4179         * find/fstype.c:
4180         get_mounted_filesystems() should use getmntent() if that function is
4181         present, rather than just if configure didn't find anything better for
4182         filesystem_type_uncached() to use than that.
4184         * find/parser.c:
4185         If -delete is the only action on a file, don't assume the default
4186         -print action too.
4188         * ChangeLog, configure.in, po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
4189         Preparation to release findutils-4.2.6.
4191         * find/Makefile.am, xargs/Makefile.am:
4192         Enable checking of support for --version and --help
4194         * locate/Makefile.am:
4195         Con't check command-line options for frcode, code or bigram
4197         * locate/code.c: Support --version and --help.
4199         * ChangeLog: *** empty log message ***
4201         * find/defs.h, find/find.c, find/fstype.c, lib/Makefile.am, lib/extendbuf.c, lib/extendbuf.h, NEWS:
4202         Avoid fatal error if automount mounts a filesystem on a directory because we chdir()ed into it
4204         * configure.in: Next release will be 4.2.6.
4206         * find/find.1:
4207         Indicate that the '-' flag does work for most fields.   Also provide
4208         an example of using the comma operator to traverse the filesystem just
4209         once but search for more than one thing.
4211         * doc/find.texi: Indicate that the '-' flag does work for most fields.
4213 2004-11-19  James Youngman <jay@gnu.org>
4215         * configure.in: releaseing findutils-4.2.5
4217         * find/testsuite/Makefile.am, locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
4218         If a directory has no Makefile.am, omit it from the parent's DIST_SUBDIRS - automake-1.9 requires this
4220         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
4221         updated by make distcheck
4223         * ChangeLog, NEWS: Updated for release 4.2.5.
4225         * find/find.1, doc/find.texi:
4226         Tell the reader that format flags may not work as they expect.
4228         * configure.in:
4229         Use the correct name for the macro gl_AC_TYPE_LONG_LONG (not
4230         jm_AC_TYPE_LONG_LONG).
4232 2004-11-15  James Youngman <jay@gnu.org>
4234         * import-gnulib.sh:
4235         Avoid test -e because not all systems are POSIX-compliant (bug
4236         #11005).  Also don't need regex module any more if we're not building
4237         in intl.
4239         * Makefile.am, configure.in:
4240         These days gnulib likes to include 'libintl.h' which our very old intl/ directory lacks.   For the moment, disable use of the internal intl/ directory
4242         * doc/find.texi:
4243         Use @ref not @xref for a reference at the beginning of a sentence.
4245         * intl/Makefile.in:
4246         Make sure gnulib.lib is on the #include path (Savannah bug #11002)
4248         * locate/locate.c:
4249         Use base_name instead of basename - fixes Savannah bug 11003.
4251         * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, locate/bigram.c, locate/locate.c:
4252         Don't need banner to emphasise the location of the call to jy_SORTZ
4254 2004-11-12  James Youngman <jay@gnu.org>
4256         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c, find/pred.c, find/testsuite/find.gnu/posix-dflt.exp, find/testsuite/find.gnu/posix-dflt.xo, find/testsuite/find.gnu/posix-h.exp, find/testsuite/find.gnu/posix-h.xo, find/testsuite/find.gnu/posix-l.exp, find/testsuite/find.gnu/posix-l.xo, find/util.c:
4257         Implemented BSD option -P and also the correct default behaviour of find with respect to symlinks if neither -L nor -H is specified [i.e. same as -P]
4259 2004-11-11  James Youngman <jay@gnu.org>
4261         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c:
4262         Implemented -H and -L options.
4264         * find/util.c: Added in the -H and -L options on the usage message.
4266 2004-11-10  James Youngman <jay@gnu.org>
4268         * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4269         Implemented %M and %A+ format specifiers
4271         * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4272         Documented the fact that only %d and %m format specifiers honour the various formatting flags
4274         * xargs/xargs.c:
4275         Get the right number of bytes in a Kilobyte (hint: it's not 1048; that
4276         was a typo, honest :)
4278         * po/pl.po: Applied Polish translations
4280 2004-11-08  James Youngman <jay@gnu.org>
4282         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po:
4283         distcheck changed the po files again
4285         * locate/Makefile.am:
4286         Make install-data-hook honour the setting of DESTDIR so that "make
4287         DESTDIR=/tmp/foo install" works and puts localstater in the right
4288         place.
4290         * configure.in: We're now working on findutils-4.2.5.
4292         * doc/find.texi, xargs/xargs.1:
4293         Point out that xargs -i only splits input items at newlines
4295         * ChangeLog: Indicate that we released 4.2.4.
4297         * ChangeLog: Updated for release 4.2.4
4299         * NEWS, configure.in: Prepare for release of 4.2.4.
4301         * NEWS: Brought up to date with latest changes.
4303         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c, po/da.po, po/de.po, po/es.po, po/findutils.pot, po/gl.po, po/id.po, po/ko.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sv.po:
4304         Turn warning messages off by default if stdin is not a tty; allow these to be controlled explicitly by options -warn and -nowarn
4306         * po/et.po, po/it.po: Updated translation files
4308         * po/sk.po: New translation file
4310         * po/fr.po, po/nl.po, po/tr.po: Updated translation files
4312         * configure.in: Added Slovak (sk) language.
4314         * xargs/xargs.c:
4315         Enforcing a lower limit on the value specified by -s makes the test
4316         suite fail.  Removed that lower limit.
4318         * locate/Makefile.am: Oops, multilocate doesn't exist yet.
4320         * NEWS: *** empty log message ***
4322         * doc/find.texi, locate/updatedb.1, locate/updatedb.sh:
4323         Added option --findoptions to updatedb
4325         * locate/Makefile.am, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
4326         Fixed section numbers in manpage titles and cross-references
4328         * NEWS, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
4329         Increased the default argument length and improved POSIX compliance of the handling of out-of-range values for the -s option
4331 2004-11-07  James Youngman <jay@gnu.org>
4333         * m4/Makefile.am:
4334         Added in the extra files we need to distribute, nullsort.m4
4335         order-bad.bin order-good.bin
4337         * doc/find.texi: Documented locate's --limit option
4339         * locate/locate.1, locate/locate.c:
4340         Implmented --limit and corrected the implementation of the -i option.
4342 2004-11-06  James Youngman <jay@gnu.org>
4344         * NEWS, doc/find.texi, locate/locate.1:
4345         Documented --wholename and --basename and updated the NEWS file
4347         * README-CVS:
4348         Give the autogen commands in a form that you can usefully cut and paste into a shell
4350         * NEWS: Options --null and --count) for locate
4352         * lib/nextelem.c:
4353         Don't return '.' for an empty path element, because the path we are splitting may not be intended to contain directories
4355         * configure.in: we're working on findutils-4.2.4 now
4357         * locate/Makefile.am: Substitute @SORT_SUPPORTS_Z@
4359         * doc/find.texi:
4360         Documented new locate option --null and newline handling
4362         * locate/locate.1, locate/locate.c:
4363         New locate options --null, --wholename, --basename, --count
4365         * locate/frcode.c, locate/updatedb.1, locate/updatedb.sh:
4366         correctly handle newlines in the file names
4368         * configure.in: Determine if sort -z works
4370         * m4/nullsort.m4, m4/order-bad.bin, m4/order-good.bin:
4371         jy_SORTZ: a macro to determine if the system has a sort command with a working -z option
4373 2004-11-01  James Youngman <jay@gnu.org>
4375         * NEWS: Fixed "find -printf '%H\n'".
4377         * find/find.c:
4378         Avoid segfault if -printf %H is used where the matched file was the default, unspecified starting point, the current directory
4380 2004-10-31  James Youngman <jay@gnu.org>
4382         * find/find.1, find/parser.c: NetBSD also supports -d.
4384         * find/find.1, doc/find.texi:
4385         Documented the behaviour of -daystart and -follow in more detail
4387         * find/parser.c: Corrected the usage message.
4389         * find/parser.c:
4390         When deciding whether to issue a warning about options following
4391         non-options, ignore any options whose position affects the tests
4392         (i.e. -daystart and -follow).
4394         * find/parser.c: -daystart is a positional option like -follow.
4396         * find/parser.c:
4397         Issue a warning message if an option is specified after a test or an
4398         action (because the user might have believed that the behaviour of the
4399         option is in some way conditional on the preceding tests).
4401         * locate/updatedb.sh:
4402         Oops; removed some test code that I shouldn't have checked in.
4404         * locate/updatedb.sh:
4405         Indicate that the old locate database format will shortly be unsupported.
4407         * doc/find.texi:
4408         Use @direntry instead of hard-coding START-INFO-DIR-ENTRY inside @ifinfo.
4410         * locate/updatedb.1: Updated default location of locatedb file.
4412         * README-alpha:
4413         Updated to give correct FTP location and to not talk about "test"
4414         versions of automake, which are no longer required.
4416         * locate/updatedb.sh:
4417         Incorporated the default list of filesystems to avoid from the Debian
4418         package.  Also added /afs and /sfs to the default pruned paths.
4420         * configure.in: Released findutils 4.2.3
4422         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sv.po, po/tr.po:
4423         did make distcheck, which updates these files
4425         * find/defs.h, find/fstype.c:
4426         Use const qualifier in arguments to filesystem_type() to allow callers with const variables to use them
4428         * ChangeLog: Updated.
4430         * NEWS: Added new news.
4432         * find/find.c:
4433         Extra diagnositcs for the case where we have the error "%s changed
4434         during execution of %s" - that is when we chdir back to the parent
4435         directory only to find that it has changed.
4437 2004-10-30  James Youngman <jay@gnu.org>
4439         * .cvsignore, NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
4440         Implemented the -quit action
4442         * NEWS, doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4443         Refactored time handling routines in preparation for support of absolute timestamp comparison predicates
4445         * locate/locate.c:
4446         Applied Savannah patch #2952 ("getline off-by-one bugfix").
4448         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
4449         Added -delete action (Savannah patch #3454 with additions)
4451         * locate/locate.c:
4452         Applied Savannah patch #2692 (allowing get_short to process negative integers).
4454         * find/find.c:
4455         If we are iossuing an error message because $FIND_BLOCK_SIZE is set,
4456         ignore the setting of errno.
4458         * find/parser.c: More fixes for pedantic compiler warnings
4460         * NEWS, find/parser.c, find/tree.c: Eliminated some compiler warnings
4462         * find/find.c, find/parser.c, find/pred.c:
4463         Various fixes for compiler warninga sbout unreachable code or unused function arguments
4465         * intl/plural.y: Silence compiler warning about unused argument.
4467         * locate/testsuite/Makefile.am:
4468         Subdirectory "inputs" does not exist, so remove it from DIST_SUBDIRS.
4470         * locate/locate.c:
4471         Corrected the explanation of why we have to use no parentheses around
4472         the String argument to the N_ macro in its expansion.
4474         * configure.in: Nextr release is 4.2.3.
4476         * configure.in: IOndicate this is no longer the pristine release.
4478         * NEWS:
4479         Oops, comments for release 4.2.0 should have said 20480 bytes, not 2480.
4481         * lib/listfile.c:
4482         The -ls predicate should not truncate usernames.  Fixes Savannah bug #10800.
4484         * find/fstype.c, locate/locate.c:
4485         Fixes for Savannah bug #3727 (Intel icc compilation errors).
4487 2004-10-25  James Youngman <jay@gnu.org>
4489         * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4490         Support -printf %D, which prints the device number of the containing filesystem
4492         * locate/updatedb.sh:
4493         Avoid confusion between James Woods and James Youngman, by using the
4494         disambiguating surname.
4496         * find/parser.c: Use RE_ICASE instead of re->translate.
4498         * configure.in, find/parser.c, find/pred.c, xargs/xargs.c:
4499         No need to #define _GNU_SOURCE if we use gl_INIT.
4501 2004-10-24  James Youngman <jay@gnu.org>
4503         * ChangeLog: Prepared to release findutils-4.2.2.
4505         * ChangeLog, NEWS, po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sv.po, po/tr.po:
4506         Updates prior to release of 4.2.2
4508         * NEWS: Updated with news for findutils-4.2.2.
4510         * find/testsuite/config/unix.exp, lib/forcefindlib.c, lib/listfile.c, lib/modetype.h, lib/nextelem.c, locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, locate/locatedb.h, locate/testsuite/config/unix.exp, locate/updatedb.sh, xargs/testsuite/config/unix.exp, xargs/xargs.c, NEWS, find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/tree.c, find/util.c, import-gnulib.sh:
4511         Corrected typo in the address of the FSF office
4513         * lib/strspn.c: Updated FSF address.
4515         * m4/.cvsignore: 'cvs status' should ignore Makefile.in
4517         * m4/Makefile.am, Makefile.am, NEWS, README-CVS, configure.in, doc/texinfo.tex, find/defs.h, find/fstype.c, find/parser.c, find/pred.c, import-gnulib.sh, intl/bindtextdom.c, intl/dcgettext.c, intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c, intl/dngettext.c, intl/explodename.c, intl/finddomain.c, intl/gettext.c, intl/intl-compat.c, intl/l10nflist.c, intl/loadmsgcat.c, intl/localcharset.c, intl/localealias.c, intl/ngettext.c, intl/plural.y, intl/textdomain.c, lib/Makefile.am, lib/forcefindlib.c, lib/listfile.c, lib/nextelem.c, lib/strspn.c, lib/waitpid.c, locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, m4/findlib.m4, po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sv.po, po/tr.po, xargs/xargs.c:
4518         Use gnulib-tool --import to import the gnulib code, rather than the odd way we were doing it before
4520         * find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/tree.c, find/util.c, locate/code.c, locate/locate.c, xargs/xargs.c:
4521         Work round an apparent compiler bug in HP-UX 11.23 for
4522         ia64
4524         * locate/locate.c:
4525         Work around what appears to be a C compiler bug in HP-UX 11.23 for
4526         ia64.
4528         * INSTALL, depcomp, install-sh, missing, mkinstalldirs:
4529         Updated from automake
4531         * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c, find/find.c:
4532         Avoid use of exit() within main, to silence warnings about unreachable code
4534 2004-10-22  James Youngman  <jay@gnu.org>
4536         * doc/find.texi: Syntax corrections.
4538         * doc/find.texi: Indicate that "-exec {}+" is not yet supported.
4540         * find/find.1: Indicate that "{}+" is not yet supported.
4542         * find/testsuite/find.gnu/name-period.xo, find/testsuite/find.gnu/name-period.exp, find/find.1, doc/find.texi:
4543         The -name predicate must allow '*' to match '.foo' as demanded by IEEE
4544         Std 1003.2-1992 Interpretation #126.
4546         * find/pred.c:
4547         Remove use of FNM_PERIOD for -name as demanded by IEEE Std 1003.2-1992
4548         Interpretation #126
4550         * find/parser.c: Fix for compilation (on AIX 4.3) with GCC 2.x.
4552         * xargs/xargs.c:
4553         Changed the erorr message issued when there is an unmatched quote to
4554         point out that the user might have wanted to use the -0 option instead.
4556 2004-10-17  James Youngman  <jay@gnu.org>
4558         * configure.in:
4559         Define intmax_t if it is not already defined - allows parser.c to compile on AIX 4.3
4561         * configure.in:
4562         Adjust version number to indicate that this s/w has moved on since the
4563         4.2.1 release.
4565         * configure.in: preparing to release 4.2.1
4567         * ChangeLog: updated with current changes
4569         * README-CVS: Updated to go with newer version of gnulib.
4571         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sv.po, po/tr.po:
4572         preparation for release
4574         * NEWS: Mention the changes to "trap".
4576         * NEWS: Brought up to date.
4578         * import-gnulib.sh:
4579         Use xalloc-die module from gnulib, since that has now been split out
4581         * find/parser.c:
4582         Check fnmatch() when other predicates that rely on fnmatch() are used.
4584         * find/parser.c: bug #10701: find needs fnmatch sanitycheck on startup
4586 2004-10-16  James Youngman <jay@gnu.org>
4588         * import-gnulib.sh:
4589         Switch to requirement for GNU fnmatch because it supports FNM_CASEFOLD.
4591         * locate/updatedb.sh:
4592         Bug #9465: use of signal numbers for 'trap' is deprecated.  Should use
4593         names instead.  See
4594         http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html,
4595         which indicates that support for signal numbers is optional, while
4596         support for signal names is mandatory.
4598         * configure.in:
4599         Indicate that this is the CVS version (once again) now that findutils
4600         4.2.0 has been released.
4602         * ChangeLog, configure.in, po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sv.po, po/tr.po:
4603         findutils 4.1.20 check-in for tagging
4605 2004-10-02  James Youngman <jay@gnu.org>
4607         * po/Makefile.in.in:
4608         Search in $(top_srcdir) for mkinstalldirs, since that's where we keep it.
4610         * NEWS: Brought up to date, organised more clearly, and tidied up.
4612         * NEWS: brought up to date with recent changes
4614         * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/ignore_case1.exp, locate/testsuite/locate.gnu/ignore_case3.exp, locate/updatedb.sh:
4615         Added new option --changecwd to updatedb so that the 'cd /' which it does can be compatible with the requirements of the test suite.  Specifically, the test suite relies on being able to use relative pathnames
4617         * find/pred.c:
4618         Fixed usage of human_readable() in '%k' format specifier to fix a bug
4619         reported by Dmitry V. Levin (arguments to human_readable() were
4620         specified in the wrong order, which resulted in a floating-point
4621         error).
4623 2004-08-08  James Youngman <jay@gnu.org>
4625         * locate/updatedb.sh:
4626         cd to / to avoid inability to examine the current directory if we're
4627         invoked via cron (and hence in root's home directory for example).
4629         * doc/find.texi, find/find.1:
4630         Deprecate -path and -ipath in favour of -wholename and -iwholename
4632         * find/parser.c:
4633         As per RMS's suggestion, deprecate -path and -ipath in favour of
4634         -wholename and -iwholename.
4636         * locate/locate.c:
4637         Fixed Savannah bug #9923, in which get_short() returns large positive
4638         ints when it should be returning negative shorts.
4640         * xargs/xargs.1:
4641         Applied documentation improvements suggested by Dan Jacobson
4642         <jidanni@jidanni.org>.
4644         * xargs/xargs.c:
4645         Don't check size_of_environment against arg_max since that causes the
4646         test suite to fail.
4648         * xargs/xargs.1, xargs/xargs.c: Better documentation for the -i option
4650 2004-05-03  James Youngman <jay@gnu.org>
4652         * find/find.1:
4653         document the various suffixes for -size and also the new
4654         option -ignore_readdir_race
4656         * locate/locate.c:
4657         Fixes Savannah bug #8623 (failure to check consistency of data
4658         read from locate database)
4660         * locate/updatedb.sh:
4661         Resolves Savannah bug 4380, that updatedb generates an empty
4662         database if one of the commands fails
4664         * NEWS: Talk about -ignore_readdir_race
4666         * doc/find.texi:
4667         Documented -ignore_readdir_race and -noignore_readdir_race
4669         * find/find.c:
4670         -ignore_readdir_race should have no effect if the reason for the
4671          failure of stat(2) was anything other than ENOENT.
4673         * find/defs.h, find/find.c, find/parser.c:
4674         Fixed Savannah bug 4391 (readdir race condition leading to
4675         spurious error messages)
4677 2004-04-24  James Youngman <jay@gnu.org>
4679         * README-CVS: Corrected the instructions for getting gnulib via CVS.
4681 2004-04-13  James Youngman <jay@gnu.org>
4683         * doc/find.texi:
4684         Actioned Savannah bug #8558 (find complains when it tries to recurse
4685         into directories that it had removed).
4687 2004-03-13  James Youngman <jay@gnu.org>
4689         * ChangeLog: Updated from checkin comments.
4691         * find/find.c:
4692         Oops, there is no access to the predicate name table if DEBUG is
4693         not #defined.
4695         * find/parser.c:
4696         Detect arithmetic overflow (poorly) in insert_time(), which diagnoses
4697         the failure to handle large arguments to -mtime.  The existing code
4698         does careful computation and then bungs the value into a time_t, which
4699         ruins all our careful effort.  The new code is not a great
4700         improvement.  We just check the result to detect overflow, rather than
4701         actually avoiding the overflow.
4703         * find/find.c:
4704         Fixed Debian bug #185202 by checking for any trailing predicates after
4705         the top-level invocation of get_expr() has done its work.
4707         * locate/locate.1, xargs/xargs.1:
4708         Fixed Debian bug 175372, inappropriate 'L' suffixes on manual
4709         page section indicators
4711         * find/find.1:
4712         Removed "L" suffixes from manual page section indicators, to fix
4713         Debian bug 175372.
4715         * debian/updatedb.conf:
4716         Updated with list of filesystems from current Debian release.  This
4717         includes devfs, for example.
4719         * xargs/xargs.1:
4720         Modified documentation of "-s" option to take into account the fix for
4721         Debian bug #176201.
4723         * xargs/xargs.c:
4724         Fixed Debian bug #176201, "xargs enviroment size limited to 20k", by
4725         reading a patch offered by Bob Proulx and implementing something
4726         substantially similar myself.
4728 2004-01-03  James Youngman  <jay@gnu.org>
4730         * xargs/xargs.c:
4731         Indicate that prep_child_for_exec() fixes Savannah bug #3992.
4733         * xargs/xargs.c:
4734         Attach the stdin of xargs' child process to /dev/null so that if it
4735         tries to read from its stdin it doesn't consume any of the list of
4736         files that xargs is trying to use.
4738         * find/find.1:
4739         Documented that the -regex option follows Gnulib's re_match()
4740         implementation.
4742         * NEWS, locate/locate.c: Applied Savannah patch 2108
4744         * xargs/xargs.c: Applied Savannah patch 1500
4746         * find/find.1, doc/find.texi:
4747         Improved the documentation for the %k and %b format specifiers to
4748         -printf (Savannah bug #5034).  Also pointed out that this handling is
4749         different to that used by the "b" and "k" suffixes with "-size".
4751         * find/find.1: Improved the documentation for %k (Savannah bug #5034).
4753         * find/find.1:
4754         Improved the documentation for -print0 in the manpage, fixing Debian
4755         bug 111143.
4757         * README-CVS, find/pred.c, lib/listfile.c:
4758         Brought up-to-date with change in gnulib's human.c - we no longer
4759         use human_readable_inexact(), because it is no longer provided.
4761 2003-08-08  James Youngman  <jay@gnu.org>
4763         * find/find.1:
4764         Documented the fact that -printf also supports the '\0' escape code.
4765         Added "STANDARDS CONFORMANCE" section.
4767 2003-08-02  James Youngman  <jay@gnu.org>
4769         * find/find.1:
4770         Explain that braces are not special when performing filename matching
4771         with -name.
4773         * find/find.1:
4774         added example of the use of -exec to the EXAMPLES section
4776         * find/fstype.c, locate/locate.c:
4777         Savannah bug #4295 - implicit declarations of ctype.h functions
4779         * locate/locate.c:
4780         Savannah bug #4279 - missing newline on locate help message
4782         * find/find.1, xargs/xargs.1:
4783         Improved discussion of the -print0 option of find and the -0 option of xargs
4785 2003-06-26  James Youngman  <jay@gnu.org>
4787         * import-gnulib.sh:
4788         Remove reference to nonexistent module "basename" ("dirname" exists
4789         and we already use that).
4791 2003-06-21  James Youngman  <jay@gnu.org>
4793         * doc/find.texi:
4794         Indicate that xargs stops immediately if a command exits with status 255
4796         * xargs/xargs.1:
4797         Document the fact that xargs exits immediately with an error message
4798         if the command it executes exits with a status of 255.
4800 2003-06-18  James Youngman  <jay@gnu.org>
4802         * find/find.1:
4803         Indicate that -fls and friends always create their output file
4805 2003-06-16  James Youngman  <jay@gnu.org>
4807         * ChangeLog, find/find.1, locate/locate.1, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
4808         Added BUGS section to manual pages.   This section includes information about known bugs and how to report new bugs.
4810         * AUTHORS: Identify the current maintainer.
4812         * TODO: Removed the TODO items which have now been done.
4814         * THANKS: Added Bruno Haible and Bob Proulx.
4816         * xargs/xargs.c: xargs/xargs.c (DO_MULTIBYTE): New macro.
4817         (mbstrstr): New function.
4818         (do_insert): Use it instead of strstr.
4820         * config.guess, config.sub:
4821         Use config.guess and config.sub from automake
4823         * find/fstype.c:
4824         Bruno Haible: (fstype_to_string) Don't define this function if
4825         HAVE_F_FSTYPENAME_IN_STATFS is defined.
4827         * configure.in:
4828         Bruno Haible: Prefer the 4.4BSD API (if present) to the 4.3BSD API,
4829         because some 4.4BSD systems have <mntent.h> but no /etc/mtab file.
4831         * doc/find.texi, find/find.1:
4832         Applied patch 1498 (documenting the backslash escape sequence)
4834         * locate/updatedb.sh: Applied (my own version of) Savannah patch 1601.
4836         * doc/find.texi:
4837         Applied Savannah patch #1547 (document the fact that printf
4838         field-width specifiers are supported).
4840         * xargs/xargs.c:
4841         Applied Savannah patch #1499 (adds final newline to usage message).
4843 2003-06-14  James Youngman  <jay@gnu.org>
4845         * NEWS, configure.in:
4846         Updated version number to 4.2.0-CVS [not ready for release yet]
4848         * configure.in, doc/.cvsignore, doc/Makefile.in, find/.cvsignore, find/Makefile.am, find/Makefile.in, find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/testsuite/.cvsignore, find/testsuite/Makefile.in, find/testsuite/config/unix.exp, find/tree.c, find/util.c, import-gnulib.sh, intl/bindtextdom.c, intl/dcgettext.c, intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c, intl/dngettext.c, intl/explodename.c, intl/finddomain.c, intl/gettext.c, intl/intl-compat.c, intl/l10nflist.c, intl/loadmsgcat.c, intl/localcharset.c, intl/localealias.c, intl/ngettext.c, intl/plural.y, intl/textdomain.c, lib/.cvsignore
4849         also need stpcpy (e.g. for Solaris)
4851         * intl/dcigettext.c:
4852         plural_lookup: don't use a variable called "index", because we may
4853         have done "#define strchr index", in which case using a variable
4854         called index will prevent us calling strchr(p, ch) in the same scope.
4856         * find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/testsuite/config/unix.exp, find/tree.c, find/util.c, import-gnulib.sh, lib/Makefile.am, lib/listfile.c, lib/modetype.h, lib/nextelem.c, locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, locate/locatedb.h, locate/testsuite/config/unix.exp, locate/updatedb.sh, xargs/testsuite/config/unix.exp, xargs/xargs.c:
4857         Updated copyright years and the address of the FSF
4859         * aclocal.m4, config.h.in, configure:
4860         Removed files that are generated from other files (e.g. configure)
4862         * NEWS: Updated NEWS file for 4.1.20.
4864         * configure.in, lib/Makefile.am, po/POTFILES.in, po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sv.po, po/tr.po:
4865         Updates to the i18n files to ensure that 'make dist' succeeds
4867         * lib/posix/.cvsignore, lib/posix/Makefile.am,
4868         lib/posix/Makefile.in, lib/posix/regex.h, lib/strftime.c,
4869         lib/strncasecmp.c, lib/strspn.c, lib/strstr.c, lib/strtol.c,
4870         lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, lib/wait.h,
4871         lib/waitpid.c, lib/xalloc.h, lib/xgetcwd.c, lib/xmalloc.c,
4872         lib/xstat.in, lib/xstrdup.c, lib/xstrtol.c, lib/xstrtol.h,
4873         lib/xstrtoul.c, lib/xstrtoul.h, lib/xstrtoumax.c, lib/yesno.c,
4874         locate/Makefile.am, locate/Makefile.in, locate/locate.c,
4875         locate/testsuite/Makefile.in, m4/.cvsignore, m4/ChangeLog,
4876         m4/Makefile.am, m4/Makefile.am.in, m4/Makefile.in, m4/README,
4877         m4/afs.m4, m4/assert.m4, m4/c-bs-a.m4, m4/check-decl.m4,
4878         m4/codeset.m4, m4/d-ino.m4, m4/d-type.m4, m4/error.m4,
4879         m4/fnmatch.m4, m4/fnmatchcase.m4, m4/fstypename.m4, m4/getline.m4,
4880         m4/gettext.m4, m4/glibc.m4, m4/glibc21.m4, m4/iconv.m4,
4881         m4/inttypes_h.m4, m4/isc-posix.m4, m4/jm-glibc-io.m4,
4882         m4/jm-macros.m4, m4/jm-mktime.m4, m4/lcmessage.m4, m4/libintl.m4,
4883         m4/link-follow.m4, m4/ls-mntd-fs.m4, m4/lstat-slash.m4,
4884         m4/lstat.m4, m4/malloc.m4, m4/mbstate_t.m4, m4/memcmp.m4,
4885         m4/prereq.m4, m4/progtest.m4, m4/readdir.m4, m4/realloc.m4,
4886         m4/regex.m4, m4/st_dm_mode.m4, m4/st_mtim.m4, m4/stat.m4,
4887         m4/strerror_r.m4, m4/strftime.m4, m4/timespec.m4, m4/uintmax_t.m4,
4888         m4/ulonglong.m4, m4/xstrtoumax.m4, xargs/Makefile.am,
4889         xargs/Makefile.in, xargs/testsuite/Makefile.in,
4890         find/testsuite/Makefile.in, lib/.cvsignore, lib/Makefile.am,
4891         lib/Makefile.in, lib/alloca.c, lib/ansi2knr.1, lib/ansi2knr.c,
4892         lib/argmatch.c, lib/argmatch.h, lib/basename.c, lib/basename.h,
4893         lib/dirname.c, lib/dirname.h, lib/error.c, lib/error.h,
4894         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/fnmatch.c,
4895         lib/fnmatch.h, lib/getline.c, lib/getline.h, lib/getopt.c,
4896         lib/getopt.h, lib/getopt1.c, lib/human.c, lib/human.h,
4897         lib/idcache.c, lib/malloc.c, lib/memcmp.c, lib/memcpy.c,
4898         lib/memset.c, lib/mktime.c, lib/modechange.c, lib/modechange.h,
4899         lib/pathmax.h, lib/quotearg.c, lib/quotearg.h, lib/realloc.c,
4900         lib/regex.c, lib/regex.h, lib/rpmatch.c, lib/savedir.c,
4901         lib/savedir.h, lib/stpcpy.c, lib/strcasecmp.c, lib/strdup.c,
4902         find/Makefile.am, find/Makefile.in, find/find.c, find/pred.c:
4903         Updated to work with current version of gnulib
4905         * import-gnulib.sh: New file.
4907         * config.h.in, configure, configure.in, doc/Makefile.in, import-gnulib.sh:
4908         Updated to work with current version of gnulib
4910         * README-CVS: New file.
4912         * Makefile.am, Makefile.in, README-CVS, aclocal.m4:
4913         Updated to work with current version of gnulib
4915 2001-06-09  Kevin Dalley  <kevin@seti.org>
4917         * intl/plural.c:
4918         Changes the location of bison.simple after running bison on local
4919         machine
4921         * ChangeLog: *** empty log message ***
4923         * Makefile.in, aclocal.m4, config.h.in, configure,
4924         doc/Makefile.in, find/Makefile.in, find/testsuite/Makefile.in,
4925         lib/Makefile.in, lib/posix/Makefile.in, locate/Makefile.in,
4926         locate/testsuite/Makefile.in, m4/Makefile.in, xargs/Makefile.in,
4927         xargs/testsuite/Makefile.in: Updates mostly from gettext-0.10.38
4929         * ABOUT-NLS: * ABOUT-NLS: updated from gettext-0.10.38.
4931         * configure.in: * configure.in: add tr to ALL_LINGUAS.
4933         * intl/config.charset, intl/dcigettext.c, intl/dcngettext.c,
4934         intl/dngettext.c, intl/libgnuintl.h, intl/localcharset.c,
4935         intl/locale.alias, intl/ngettext.c, intl/plural.y,
4936         intl/ref-add.sin, intl/ref-del.sin: updated from gettext-0.10.38
4938         * intl/cat-compat.c, intl/linux-msg.sed, intl/po2tbl.sed.in,
4939         intl/xopen-msg.sed, m4/ChangeLog: *** empty log message ***
4941         * m4/jm-macros.m4:
4942         * jm-macros.m4 (jm_MACROS): remove jm_ICONV, which is replaced by
4943         AM_ICONV, which is imported from gettext-0.10.38.  removed
4944         jm_GLIBC21, which is required in AM_GNU_GETTEXT, which is
4945         imported from gettext-0.10.38.
4947         * po/stamp-cat-id:      * stamp-cat-id: Remove file.
4949         * po/Makefile.in.in:    * Makefile.in.in: Upgrade to gettext-0.10.38.
4951         * po/ChangeLog: * cat-id-tbl.c: Remove file.
4953         * po/de.po, po/es.po, po/et.po, po/fr.po:
4954         * fr.po, et.po, es.po, de.po: updated translations to
4955         findutils-4.1.7.
4957         * po/tr.po: * tr.po:  New Turkish translation.
4959         * m4/ChangeLog: *** empty log message ***
4961         * intl/dgettext.c, intl/explodename.c, intl/finddomain.c,
4962         intl/gettext.c, intl/gettext.h, intl/gettextP.h,
4963         intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
4964         intl/libgettext.h, intl/loadinfo.h, intl/loadmsgcat.c,
4965         intl/localealias.c, intl/plural.c, intl/textdomain.c,
4966         intl/ChangeLog, intl/Makefile.in, intl/VERSION,
4967         intl/bindtextdom.c, intl/dcgettext.c: Updated from gettext-0.10.38
4969         * m4/Makefile.am:
4970         reflects addition of codeset.m4 from gettext-0.10.38, automatically
4971         generated.
4973         * m4/codeset.m4, m4/gettext.m4, m4/glibc21.m4, m4/iconv.m4,
4974                 m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4: *
4975                 progtest.m4, lcmessage.m4, isc-posix.m4, iconv.m4,
4976                 glibc21.m4, gettext.m4, codeset.m4: updated from
4977                 gettext-0.10.38.
4979         * ChangeLog: *** empty log message ***
4981         * THANKS: added "Gerrit P. Haase" <gerrit.haase@t-online.de>
4983         * m4/ChangeLog, locate/testsuite/.cvsignore,
4984         xargs/testsuite/.cvsignore, config.h.in, configure, aclocal.m4,
4985         doc/.cvsignore: *** empty log message ***
4987         * m4/jm-macros.m4:      * jm-macros.m4 (jm_MACROS): add jm_FSTYPENAME
4989         * doc/Makefile.in: *** empty log message ***
4991         * doc/Makefile.am:
4992         * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
4993         created by dvips.  This should be taken care of by automake, but
4994         the code is commented out.
4996 2001-06-09  Kevin Dalley  <kevin@seti.org>
4998         * ABOUT-NLS: updated from gettext-0.10.38.
5000         * configure.in: add tr to ALL_LINGUAS.
5002         * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
5003         created by dvips.  This should be taken care of by automake, but
5004         the code is commented out.
5006 2001-06-05  Kevin Dalley  <kevin@seti.org>
5008         * locate/updatedb.sh: replace "whoami" with "id -u" when testing
5009         for root.
5011 2001-06-04  Kevin Dalley  <kevin@seti.org>
5013         * locate/testsuite/Makefile.am (DIST_SUBDIRS): remove second
5014         instance of DIST_SUBDIRS.
5016         * locate/Makefile.am (install-data-hook): changed install target
5017         to install-data-hook, which still installs other files.
5019         * doc/Makefile.am (MOSTLYCLEANFILES): added find.cps, which should
5020         probably be handled by automake.
5022         * doc/mdate-sh: removed file in doc directory.  It now exists only
5023         in top_srcdir, but this changed required a patch to automake.
5025 2001-05-20  Kevin Dalley  <kevin@seti.org>
5027         * Version 4.1.7
5029         * lib/Makefile.am (EXTRA_DIST): add strcasecmp.c
5031         * find/testsuite/Makefile.am (EXTRA_DIST): new tests:
5032         find.gnu/name-opt.exp find.gnu/perm.exp find.gnu/perm.xo
5033         find.gnu/prune-default-print.exp find.gnu/prune-default-print.xo
5035         * configure.in: update to 4.1.7
5037         * config.sub, config.guess: upgraded to recent versions of
5038         config.sub and config.guess.
5040         * locate/updatedb.sh: Add space to "#! /bin/sh"
5042         * configure.in: Add id to ALL_LINGUAS
5044         * lib/Makefile.am (EXTRA_DIST):  getline.[ch] added
5045         (libfind_a_SOURCES): getline.[ch] removed since getline.c is not
5046         always needed.
5048 2001-05-20  Lionel CONS <lionel.cons@cern.ch>
5050         * find/find.c: Fixed security holes.  1.  There is a race
5051         condition between the lstat() to detect a symbolic link and the
5052         actual chdir().  2.  An attacker can move directories while find
5053         is _inside_ so that chdir(..) goes out of the intended file tree.
5055         * lib/modetype.h: support for Solaris door files is added.
5057         * lib/filemode.c: S_ISDOOR is undef'ed if STAT_MACROS_BROKEN
5059         * find/pred.c (pred_type): -D option (for Solaris door files) is
5060         added.
5062         * find/parser.c (insert_type):  -D option (for Solaris door files)
5063         is added.
5065         * find/find.1: -D option (for Solaris door files) is documented
5067         * doc/find.texi (Type): -D option (for Solaris door files) is
5068         documented
5070 2001-05-02  Kevin Dalley  <kevin@seti.org>
5072         * configure.in: Change AC_CHECK_MEMBERS to conform to new
5073         autoconf.  Add Danish.
5075 2001-01-20  Kevin Dalley  <kevin@seti.org>
5077         * doc/find.texi (Adding Tests): Place space in "#! /bin/sh".
5079         * find/testsuite/find.gnu/prune-default-print.xo,
5080         find/testsuite/find.gnu/prune-default-print.exp: test for "find
5081         . -prune" which passes after changes.  Also see name-opt.exp.
5083         * find/util.c (get_new_pred):
5084         * find/tree.c (set_new_parent):
5085         * find/parser.c (various parse functions):
5086         * find/find.c (main):
5087         (default_prints): new function
5088         * find/defs.h (struct predicate): added no_default_print
5089         side_effects are no separated from no_default_print.  predicates
5090         which cause side effects should not be reordered (optimized).
5091         predicates which cause printing should have printing turned off.
5092         Printing statements also cause side effects.
5094 2000-10-29  Bruno Haible <haible@ilog.fr>
5096         * locate/code.c (main), doc/find.texi: improve handling of
5097         non-ASCII characters used old format.
5099 2000-10-21  Paul Eggert  <eggert@twinsun.com>
5101         If open + fchdir fails, fall back on xgetcwd + chdir.
5102         The old code tested for this at compile-time,
5103         but SunOS 4.1.4 fchdir can fail at run-time.
5105         * find/defs.h (fchdir): Define to -1 if not available.
5106         * find/defs.h (starting_dir, starting_desc):
5107         Always declare.  starting_dir now points to const.
5108         * find/find.c (starting_dir, starting_desc): Likewise.
5109         * find/find.c (starting_dir):
5110         Now "." if starting_desc is nonnegative, for benefit of diagnostics.
5111         (main, process_top_path, process_dir):
5112         If open + fchdir fails, fall back on xgetcwd + chdir.
5113         * find/pred.c (launch): Likewise.
5115 2000-10-20  Kevin Dalley  <kevin@seti.org>
5117         * xargs/xargs.c, locate/updatedb.sh, locate/locate.c (usage),
5118         find/parser.c (parse_help): add bug reporting address to help
5120 2000-10-13  Kevin Dalley  <kevin@seti.org>
5122         * depcomp, lib/depcomp: depcomp moved from lib to .
5124 2000-10-11  Kevin Dalley  <kevind@rahul.net>
5126         * Version 4.1.6
5128         * locate/testsuite/config/unix.exp: set PRUNEFS to "" for the
5129         testsuite.
5131 2000-10-10  Bruno Haible <haible@ilog.fr>
5133         * lib/Makefile.am (libfind_a_SOURCES): added yesno.c
5135         * lib/yesno.c, lib/rpmatch.c: new files.
5137         * find/pred.c: use function yesno().
5139 2000-10-10  Kevin Dalley  <kevind@rahul.net>
5141         * locate/testsuite/Makefile.am: Added missing \ at end of
5142         EXTRA_DIST lines.
5144         * locate/testsuite/locate.gnu/ignore_case3.xo,
5145         locate/testsuite/locate.gnu/ignore_case3.exp,
5146         locate/testsuite/locate.gnu/ignore_case2.exp,
5147         locate/testsuite/locate.gnu/ignore_case1.xo,
5148         locate/testsuite/locate.gnu/ignore_case1.exp: place locatedb
5149         inside tmp directory, add subdir directory under tmp.
5151         * locate/testsuite/config/unix.exp: clean up tmp after test is
5152         finished.
5154 2000-10-10  Kevin Dalley  <kevind@rahul.net>
5156         * locate/testsuite/config/unix.exp (Repository):
5158 2000-10-09  Kevin Dalley  <kevind@rahul.net>
5160         * lib/fnmatch.c, lib/fnmatch.h: reverted to older version of
5161         fnmatch which works with Solaris.
5163         * locate/testsuite/config/unix.exp: dejagnu unix.exp
5165         * xargs/testsuite/config/unix.exp: remove temporary file
5167         * xargs/xargs.c: spelling correction
5169         * m4/prereq.m4: updated and changed some macros
5171         * m4/jm-macros.m4: replaced jm_FUNC_FNMATCH with
5172         kd_FUNC_FNMATCH_CASE_REPL
5174         * m4/timespec.m4, m4/strerror_r.m4, m4/mbstate_t.m4,
5175         m4/largefile.m4, m4/gettext.m4, m4/fnmatchcase.m4, m4/d-type.m4,
5176         m4/d-ino.m4, m4/c-bs-a.m4: new m4 macros.
5178         * m4/Makefile.am: add fnmatchcase.m4 and mbstate_t.m4
5180         * locate/testsuite/locate.gnu/ignore_case3.xo,
5181         locate/testsuite/locate.gnu/ignore_case3.exp,
5182         locate/testsuite/locate.gnu/ignore_case2.xo,
5183         locate/testsuite/locate.gnu/ignore_case2.exp,
5184         locate/testsuite/locate.gnu/ignore_case1.xo,
5185         locate/testsuite/locate.gnu/ignore_case1.exp,
5186         locate/testsuite/config/unix.exp: tests related to "--ignore-case"
5187         option.
5189         * locate/testsuite/locate.gnu: testsuite directory
5191         * locate/testsuite/Makefile.am (Repository):
5193         * locate/testsuite: add directory for locate testsuite
5195         * po/findutils.pot: updated file
5197         * po/sv.po, po/ru.po, po/pt_BR.po, po/pl.po, po/nl.po, po/ko.po,
5198         po/it.po, po/gl.po, po/fr.po, po/et.po, po/es.po, po/de.po:
5199         updated various po files.
5201         * locate/updatedb.sh: export TMPDIR, which is used by child
5202         processes.
5204         * locate/locate.1, locate/locate.c:  add "--ignore-case" option.
5206         * locate/Makefile.am: add testsuite subdirectory
5208         * find/testsuite/find.gnu/perm.xo,
5209         find/testsuite/find.gnu/perm.exp,
5210         find/testsuite/find.gnu/name-opt.xo,
5211         find/testsuite/find.gnu/name-opt.exp: added test suites
5213         * configure.in: add locate/testsuite/Makefile
5215         * doc/find.info*: removed from repository
5217         * doc/find.texi: add documentation for "-i" option.
5219         * aclocal.m4: removed from repository, as it is generated.
5221         * find/pred.c: fixes problem with "find -perm -0100".
5223         * lib/lstat.c, lib/stat.c: removed from repository.  These files
5224         are generated from lib/xstat.in.
5226 2000-08-24  Kevin Dalley  <kevind@rahul.net>
5228         * doc/find.texi (Invoking xargs): changed @var{-s} to @samp{-s}.
5230 2000-05-13  Kevin Dalley  <kevind@rahul.net>
5232         * find/tree.c (opt_expr): move iname and ipath to the front of the
5233         list of arguments.
5235         * doc/find.texi (Directories): changed wording for "-prune".
5237         * find/parser.c (parse_prune): set side_effects to true, to
5238         prevent prune from being moved in opt_expr.
5240 2000-04-12  Kevin Dalley  <kevind@rahul.net>
5242         * doc/find.texi, doc/permi.texi: fix spellings, add LocalWords.
5244         * lib/Makefile.am: put getline.c back into libfind_a_SOURCES,
5245         since getstr is needed.
5247         * Version 4.1.5
5249         * po/POTFILES.in: updated list of files, updated po files.
5252 2000-04-02  Paul Eggert  <eggert@twinsun.com>
5254         Add support for large files, and port to Solaris 8 and earlier
5255         versions.
5257         * lib/human.c (getenv): Depend on NEED_GETENV_DECL, not
5258         HAVE_DECL_GETENV.
5260         * lib/strftime.c (my_strftime): Make sure we call the system
5261         strftime, not ourselves, when invoking the underlying strftime.
5263         * m4/check-decl.m4 (jm_CHECK_DECLS): Remove memchr, nanosleep.
5265         * m4/jm-macros.m4 (jm_MACROS): Don't check for utime.h.  Do not
5266         require jm_BISON, jm_CHECK_TYPE_STRUCT_UTIMBUF, jm_FUNC_LCHOWN,
5267         jm_FUNC_CHOWN, jm_FUNC_NANOSLEEP, jm_FUNC_GROUP_MEMBER,
5268         jm_FUNC_PUTENV, jm_FUNC_GETGROUPS, AM_FUNC_GETLOADAVG,
5269         jm_SYS_PROC_UPTIME, jm_FUNC_FTRUNCATE, jm_FUNC_UTIME.  Do not
5270         replace strcasecmp, dup2, gethostname, getusershell, stime,
5271         strcspn, strpbrk, euidaccess, mkdir, rmdir, rpmatch, strndup,
5272         strverscmp, memchr, memmove.  Do not check for declaration of
5273         lchown.  Remove invocations of AM_FUNC_OBSTACK, AM_FUNC_STRTOD,
5274         POW_LIBM, jm_LANGINFO_CODESET, jm_ICONV.  Remove df tests.
5275         (jm_CHECK_ALL_TYPES): Include <sys/stat.h> when checking for
5276         struct stat.st_blksize.
5278         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set environment variable
5279         in shell rather than using putenv, which isn't portable.
5281         * COPYING, lib/alloca.c, lib/dirname.c, lib/error.c,
5282         lib/savedir.c, lib/strstr.c, m4/check-decl.m4, m4/d-ino.m4,
5283         m4/d-type.m4, m4/getline.m4, m4/jm-glibc-io.m4, m4/jm-macros.m4,
5284         m4/jm-mktime.m4, m4/ls-mntd-fs.m4, m4/memcmp.m4, m4/prereq.m4,
5285         m4/readdir.m4, m4/regex.m4, m4/strftime.m4, m4/uintmax_t.m4: Sync
5286         to latest version from sh-utils-2.0g.
5288         * config.guess, config.sub, lib/argmatch.c, lib/argmatch.h,
5289         lib/human.c, lib/human.h, lib/memcpy.c, lib/quotearg.c,
5290         lib/quotearg.h, lib/strtoull.c, lib/strtoumax.c,
5291         lib/xstrtoumax.c, m4/c-bs-a.m4, m4/gettext.m4,
5292         m4/largefile.m4, m4/lcmessage.m4, m4/link-follow.m4,
5293         m4/progtest.m4, m4/strerror_r.m4, m4/timespec.m4,
5294         m4/xstrtoumax.m4: New files, taken from sh-utils-2.0g.
5296         * lib/ansi2knr.1, lib/ansi2knr.c, lib/basename.c, lib/getopt.h,
5297         lib/fnmatch.c, lib/fnmatch.h, lib/modechange.c: Sync to latest
5298         unreleased version of GNU tar (between 1.13.17 and 1.13.18).
5300         * lib/basename.h, lib/waitpid.c: New files, taken from same
5301         version of GNU tar.
5303         * lib/regex.c, lib/regex.h: Sync to GNU grep 2.4.2.
5305         * lib/posix/Makefile.am, lib/posix/regex.h: New files, taken from
5306         GNU grep 2.4.2.
5308         * lib/strftime.c: Sync to textutils 2.0e.
5310         * acconfig.h, depcomp, lib/strcasecmp.c, m4/check-type.m4,
5311         m4/const.m4, m4/decl.m4, m4/lfs.m4, m4/mktime.m4, m4/perl.m4,
5312         m4/putenv.m4, m4/uptime.m4, m4/utimbuf.m4, m4/utime.m4,
5313         m4/utimes.m4: Remove these files; no longer needed.
5315         * configure.in (AC_CANONICAL_HOST, AC_SYS_LARGEFILE,
5316         jm_AC_TYPE_UINTMAX_T): Add.
5317         (CACHE_IDS, FSTYPE_STATVFS, FSTYPE_USG_STATFS, FSTYPE_AIX_STATFS,
5318         FSTYPE_MNTENT, FSTYPE_STATFS, FSTYPE_GETMNT): Add comment, so that
5319         we don't need acconfig.h.
5320         (AC_CHECK_TYPE): Add ssize_t.
5321         (AC_REPLACE_FUNCS): Add waitpid.
5322         (AC_CHECK_FUNCS): Remove basename.
5323         (AC_FUNC_MKTIME): Remove.
5324         (LIBOBJS): Add no-ops to work around automake 1.4 bug.
5325         (AC_OUTPUT): Add lib/posix/Makefile.
5327         * find/defs.h: Include <config.h>, <sys/types.h>, <sys/stat.h>,
5328         <stdio.h>, <limits.h>, <inttypes.h>.  All includers changed to not
5329         include these files, and to include "defs.h" first (since config.h
5330         must be included first).
5331         (CHAR_BIT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
5332         S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, MOD_WXUSR,
5333         MODE_R, MODE_RW, MODE_RWX, MODE_ALL): New macros.
5334         (enum permissions_type): New enum.
5335         (struct long_val.negative): New member.
5336         (struct long_val.l_val): Now uintmax_t, not unsigned long.
5337         (struct size_val.size): Likewise.
5338         (struct perm_val): New type.
5339         (struct predicate.perm): Now struct perm_val, not unsigned long.
5340         (struct predicate.type): Now mode_t, not unsigned long.
5341         (list_file): New parameters current_time, output_block_size.
5342         All callers changed.
5343         (savedir, basename): Remove decls.
5344         (output_block_size, start_time): New extern vars.
5346         * find/find.c: Include <human.h>, <savedir.h>.
5347         (output_block_size, start_time): New vars.
5348         (main): Initialize them.  No need to check for negative st_size,
5349         since savedir now does it for us.
5351         * find/fstype.c: Include "dirname.h".
5352         (xatoi): Remove.
5353         (filesystem_type_uncached): Use xstrtoumax instead of xatoi.
5355         * find/parser.c: Include "xstrtol.h".
5356         (get_num_days, get_num, parse_amin, parse_cmin, parse_mmin,
5357         parse_size, parse_used, insert_time, insert_num): Compute using
5358         uintmax_t, not unsigned long.
5359         (parse_amin, parse_cmin, parse_mmin, parse_used, insert_time):
5360         Keep track of whether time was negative before converting it to an
5361         unsigned type.
5362         (parse_daystart): Don't assume that localtime succeeds; e.g. it
5363         can fail with 64-bit time_t and 32-bit tm_year.
5364         (parse_perm, insert_type): Compute using mode_t, not unsigned
5365         long.
5366         (insert_type): Use symbolic constants like MODE_ALL instead of
5367         traditional ones like 07777.  Set new kind member to indicate
5368         permissions type, instead of using unportable magic numbers.
5369         (make_segment): We will use human_readable to convert most numeric
5370         values, so simplify the cases.
5371         (get_num_days): Write in terms of get_num, to avoid duplicated
5372         code.
5373         (insert_time, insert_num): When debugging, convert large values to
5374         uintmax_t and output with %ju.
5375         (get_num): Use xstrtoumax to do the real work.
5377         * find/pred.c: Include "basename.h", "human.h".
5378         (DEV_BSIZE, ST_BLKSIZE, ST_NBLOCKSIZE): New macros, taken from
5379         fileutils.
5380         (ST_NBLOCKS): Replace with fileutils defn.
5381         (MAX): New macro.
5382         (ctime_format): New function.
5383         (pred_fprintf, format_date): Use human_readable to output large
5384         numbers portably.
5385         (pred_fprintf): Use ctime_format to output ctime-style dates.  Use
5386         base_name to compute the base name of a path.  With %m, output the
5387         mode portably using traditional numbers, even if the host uses
5388         some other numbering scheme.
5389         (pred_iname, pred_name): basename -> base_name.
5390         (pred_perm): Use new kind member to deduce permissions type,
5391         instead of relying on magic numbers.
5392         (pred_size): Compute using uintmax_t, not unsigned long.  Avoid
5393         overflow if file size is near the maximum.
5394         (pred_type): Compute using mode_t, not unsigned long.
5395         (launch): Use waitpid, not wait.  Check for EINTR.
5396         (format_date): Don't assume that localtime succeeds.
5398         * find/util.c (basename): Remove; we now use base_name.
5400         * lib/Makefile.am (SUBDIRS): New macro.
5401         (libfind_a_SOURCES): Add argmatch.h, argmatch.c, basename.h,
5402         basename.c, human.c, human.h, quotearg.c, quotearg.h, xstrtoumax.c.
5403         Remove error.h, error.c, getline.c.
5404         (EXTRA_DIST): Add mktime.c, regex.c.
5406         * lib/listfile.c: Include "human.h".
5407         (alloca): Declare, or include appropriate files to declare.
5408         (DEV_BSIZE, ST_NBLKSIZE, ST_NBLOCKS, ST_NBLOCKSIZE): New macros.
5409         (convert_blocks): Remove.
5410         (list_file): New current_time and output_block_size args.
5411         Revamp quite a bit, to handle large numbers correctly
5412         and to match GNU ls behavior more closely.
5414         * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4, gettext.m4,
5415         largefile.m4, lcmessage.m4, link-follow.m4, progtest.m4,
5416         strerror_r.m4, xstrtoumax.m4.  Remove check-type.m4, const.m4,
5417         decl.m4, lfs.m4, mktime.m4, perl.m4, putenv.m4, timespec.m4,
5418         uptime.m4, utimbuf.m4, utime.m4, utimes.m4.
5420         * xargs/xargs.c (wait_for_proc): Retry wait if it fails with
5421         errno == EINTR.
5423 2000-04-05  Kevin Dalley  <kevind@rahul.net>
5425         * xargs/Makefile.am:  add ansi2knr
5427         * xargs/xargs.c: add macros PARAMS rather than P_.  Add
5428         prototypes.
5430         * po/POTFILES: new file listing all POFILES.
5432         * m4/gl.po, m4/et.po: new files
5434         * m4/Makefile.am.in:  updated file
5436         * m4: update directory
5438         * locate/Makefile.am: create updatedb from updatedb.sh
5440         * locate/updatedb.sh, locate/updatedb.in: removed file.  Replaced
5441         by updatedb.sh
5443         * locate/frcode.c, locate/code.c, locate/bigram.c: add macros
5444         PARAMS rather than P_.  Add prototypes.
5446         * lib/xstat.in: new file
5448         * lib/Makefile.am: update to latest versions of library files.
5450         * find/testsuite/Makefile.am: add CLEANFILES
5452         * find/util.c: remove definition of basename
5454         * find/util.c, find/tree.c, find/pred.c, find/parser.c,
5455         find/fstype.c, find/find.c, find/defs.h: add macros PARAMS rather
5456         than P_, for consistency, change to prototypes
5458         * find/Makefile.am: Add prototypes and ansi2knr
5460         * configure.in: add Galition and Estonian languages.
5461         Miscellaneous other fixes.
5464 2000-03-11  Kevin Dalley  <kevind@rahul.net>
5466         * lib/basename.c: Add file from libit.
5467         * lib/Makefile.am (libfind_a_SOURCES): add basename.c since it is
5468         no longer replaceable.
5470         * find/util.c: Remove definition of basename, which is now in
5471         lib/basename.c (as base_name).
5472         * find/pred.c: Use base_name, not basename.
5473         * find/defs.h: Likewise.
5475         * configure.in : Don't replace basename.  Now we use only
5476         base_name.
5478 2000-02-26  Kevin Dalley  <kevind@rahul.net>
5480         * Version 4.1.4
5482         * lib/strtoul.c: added to distribution
5484         * configure.in: added strtoul to AC_REPLACE_FUNCS
5486         * configure.in: added jm_CHECK_ALL_TYPE
5488 2000-02-23  Kevin Dalley  <kevind@rahul.net>
5490         * po/ChangeLog: removed, merged with top-level ChangeLog.
5492         * po/de.po: new version of German file.
5494         * po/gl.po, po/et.po: new languages, Estonian and Galician.
5496         * locate/updatedb.sh (PRUNEFS): enclose paths in quotes
5498 2000-02-17  Kevin Dalley  <kevind@rahul.net>
5500         * po/it.po: new version of Italian file.
5502         * locate/updatedb.sh (prunefs_exp): have sed statement use '*'
5503         rather than the often unsupported '+'.
5505 2000-02-13  Kevin Dalley  <kevind@rahul.net>
5507         * configure.in: removed AC_ARG_PROGRAM, which is already in
5508         AM_INIT_AUTOMAKE.
5510         * locate/Makefile.am (updatedb), locate/updatedb.sh: add
5511         transforms of find, frcode, bigram, and code back into
5512         updatedb.sh, which were accidentally removed.
5514 2000-02-12  Kevin Dalley  <kevind@rahul.net>
5516         * lib/wait.h: updated address.
5518 2000-01-26  Kevin Dalley  <kevind@rahul.net>
5520         * Version 4.1.3
5522         * acconfig.h: added internationalization.
5524         * intl/*: copied from tar-1.13.17.
5526         * locate/Makefile.am, locate/locate.c, locate/code.c:
5527         internationalized file.
5529         * locate/frcode.c, locate/bigram.c: include headers from ../lib
5530         directory.
5532         * xargs/Makefile.am, xargs/xargs.c: internationalized directory.
5534 2000-01-26  Kevin Dalley  <kevind@rahul.net>
5536         * POTFILES.in: added list of files with translatable strings.
5538         * de.po, es.po, fr.po, it.po, ko.po, nl.po, pl.po, pt_BR.po,
5539         ru.po, sv.po: New, slightly out of date, files imported from the
5540         Translation Project: http://www.iro.umontreal.ca/contrib/po/HTML/,
5541         German, Spanish, French, Italian, Korean, Dutch, Polish, Brazilian
5542         Portuguese.
5545 2000-01-24  Kevin Dalley  <kevind@rahul.net>
5547         * lib/xmalloc.c, lib/regex.c, lib/getopt.c: internationalization
5548         works with current version of gettext.
5550         * lib/getline.h : added declaration of getstr.
5551         * lib/Makefile.am (libfind_a_SOURCES): added getline.[ch] to
5552         standard compilation. Added internationalization.
5553         * find/Makefile.am (INCLUDES): corrected -I options for building
5554         in other directories.
5555         (LDADD): changes for internationalization.
5557         * configure.in (ALL_LINGUAS): added internationalization.
5558         getline.c is always compiled and linked, because of getstr.
5559         AM_GNU_GETTEXT
5561         * Makefile.am:
5562         (DISTCLEANFILES): added intl/libintl.h
5563         (AUTOMAKE_OPTIONS): added gnits to AUTOMAKE_OPTIONS
5564         (SUBDIRS): added intl and po
5566         * acconfig.h: added internationalization values
5568         * THANKS: added thanks file for gnits compatibility.
5570 2000-01-22  Kevin Dalley  <kevind@rahul.net>
5572         * added intl directory.
5574         * Added internationalization, only with slightly out of date po
5575         files for many locales.
5577 2000-01-18  Kevin Dalley  <kevind@rahul.net>
5579         * Version 4.1.2
5581         * locate/Makefile.am: remove creation of updatedb, since it is now
5582         made by configure
5584         * configure.in: updatedb is now created by configure.
5586         * xargs/Makefile.am: added testsuite to xargs directory
5588         * locate/updatedb.in: updatedb is now created by configure
5590         * locate/frcode.c, locate/code.c, locate/bigram.c: change return
5591         from main to int.  Replace getstr with getline, where possible.
5593         * locate/Makefile.am: place frcode, code, bigram in
5594         libexec_PROGRAMS
5596         * lib/xstrdup.c, lib/xmalloc.c, lib/xgetcwd.c, lib/xalloc.h,
5597         lib/strtol.c, lib/strstr.c, lib/strftime.c, lib/strdup.c,
5598         lib/stpcpy.c, lib/stat.c, lib/savedir.h, lib/savedir.c,
5599         lib/regex.h, lib/regex.c, lib/realloc.c, lib/pathmax.h,
5600         lib/modechange.h, lib/modechange.c, lib/mktime.c, lib/memset.c,
5601         lib/memcmp.c, lib/malloc.c, lib/lstat.c, lib/idcache.c,
5602         lib/getopt1.c, lib/getopt.c, lib/getopt.h, lib/getline.c,
5603         lib/getline.h, lib/fnmatch.c, lib/fnmatch.h, lib/filemode.c,
5604         lib/filemode.h, lib/fileblocks.c, lib/error.c, lib/error.h,
5605         lib/dirname.c, lib/alloca.c: updated to newer version of file from
5606         fileutils.
5608         * find/version.c: version number is now automatically generated by
5609         configure.
5611         * find/fstype.c (filesystem_type_uncached): fixes bug described as
5612         follows:  When 'find' looks for a fstype, it parses the /etc/mtab
5613         until it finds the good line. But, if there is, before the good
5614         line, a line whose mountpoint is unreachable, it fails.
5616         * doc/texinfo.tex: updated to newer version
5618         * doc/find.texi: added version.texi, fixed a few documentation bugs.
5620         * configure.in: new m4 features.
5622         * Makefile.am: moved testsuite to below corresponding directories
5623         find and xargs.
5625         * acconfig.h: updated to match new m4 files.
5627         * m4: added m4 directory, largely borrowed from Jim Meyering's
5628         fileutils.
5630 2000-01-17  Kevin Dalley  <kevind@rahul.net>
5632         * doc/find.texi (Multiple Files): placed missing xargs in examples
5634         * find/testsuite/find.gnu/depth.exp: added find tests to test
5635         "-depth" bug.
5637         * doc/find.texi: include version.texi for automatic determination
5638         of version number, update bug report email address to
5639         bug-findutils@gnu.org.
5640         (Combining Primaries With Operators): add indices for " ,", "()",
5641         "-a", "-o", etc.
5643 2000-01-17  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5645         * find/tree.c (opt_expr): Never rearrange the arguments of the
5646         comma operator, since it is not commutative.  Remove useless
5647         assignment.2
5649 2000-01-17  Jonathan R. Ferro <jferro@corwin.ece.cmu.edu>
5651         * find/find.c (process_path): fix problem with "-depth" which is
5652         tested in depth.exp test.
5654 1999-08-15  Kevin Dalley  <Kevin Dalley <kevin@seti.org>>
5656         * find/fstype.c (filesystem_type_uncached): a stat failure with
5657         EACCESS will ignore this file system keep on looking.  Patch
5658         suggested by Vincent Danjean <vdanjean@ens-lyon.fr>.
5660 1999-08-15  Mark Kettenis  <kettenis@gnu.org>
5662         * xargs/xargs.c (LONG_MAX): Define if necessary.
5663         (main): If ARG_MAX is -1 (that is sysconf
5664         (_SC_ARG_MAX) returns -1) the system does not impose a limit.  In
5665         that case, use LONG_MAX as the limit.
5667 1999-08-15  Kevin Dalley  <Kevin Dalley <kevind@rahul.net>
5669         * find/version.c: version string is now set by config.h
5671 1999-08-08  Kevin Dalley  <kevin@seti.org>
5673         * Version 4.1.1
5675         * README-alpha: added alpha README file
5677         * find/defs.h: move lstat declarations into defs.h
5679         * xargs/Makefile.am, testsuite/Makefile.am, locate/Makefile.am,
5680         lib/Makefile.am, find/Makefile.am, doc/Makefile.am, configure.in,
5681         Makefile.am: update for automake-1.4
5683 1999-08-02  Kevin Dalley  <kevind@rahul.net>
5685         * AUTHORS: added file listing AUTHORS
5687         * lib/Makefile.am: modified code for EXTRA sources
5689 1999-01-30  Kevin Dalley  <kevind@rahul.net>
5691         * added const to declaration of basename, which should satisfy
5692         Linux as well as Hurd (fixes bug #31325).
5694 1998-12-04  Kevin Dalley  <kevind@rahul.net>
5696         * lib/nextelem.c: removed declaration of strdup and free, which
5697         meets GNU coding standards and allows compilation on more
5698         platforms.
5700         * find.texi: corrected explanation of -amin option which described
5701         hours instead of minutes
5703 1998-09-26  Kevin Dalley  <kevind@rahul.net>
5705         * lib/getline.c: fix getstr so that it correctly handles long file
5706         paths
5708 1998-09-20  Kevin Dalley  <kevind@rahul.net>
5710         * removed more function declarations to meet GNU coding standards
5712 1998-08-30  Kevin Dalley  <kevind@rahul.net>
5714         * lib/nextelem.c: removed declaration of strdup and free, which
5715         meets GNU coding standards and allow compilation on sparc
5717         * corrected explanation of -amin option which described hours
5718         instead of minutes
5720 1998-02-27  Kevin Dalley  <kevind@rahul.net>
5722         * locate/locate.c: add --existing option to locate, which only
5723         prints the names of files which still exist
5725 1998-02-08  Kevin Dalley  <kevind@rahul.net>
5727         * locate/locate.c: corrected get_short so that it correctly
5728         returns negative numbers.
5730         * remove declarations of various string functions.  Removing the
5731         declarations almost matches the GNU Coding Standards.
5733 1997-03-03  Kevin Dalley  <kevind@rahul.net>
5735         * xargs/xargs.c: xargs fixed to prevent occasional core dumping.
5737 1997-01-11  Kevin Dalley  <kevind@rahul.net>
5739         * locate/updatedb.sh: add --localuser option to updatedb, which
5740         allows find to be run as nobody, while allowing database file to
5741         be created as root, change suggested by
5742         <Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de>
5744 1996-12-28  Kevin Dalley  <kevind@rahul.net>
5745         * added PRUNEFS as variable in updatedb and --prunefs as option to
5746         updatedb
5748 1996-05-27  Kevin Dalley  <kevind@rahul.net>
5750         * updatedb.sh: when NETPATHS is used, only su to NETUSER if whoami
5751         is root
5752 1996-04-27  Kevin Dalley  <kevind@rahul.net>
5754         * lib/getline.c (getstr): verify that nchars_avail is *really*
5755         greater than 0; set *n to a large enough number, stops some core
5756         dumping
5758 Thu Nov  3 09:23:33 1994  David J. MacKenzie  <djm@duality.gnu.ai.mit.edu>
5760         * Version 4.1.
5762         * locate/Makefile.am: Move updatedb from LIBSCRIPTS to SCRIPTS.
5764         * Makefile.am (distname): Change distribution name from find to
5765           findutils.
5767         * testsuite/config/unix.exp: Don't abuse xfail; simulate it correctly.
5769         * locate/Makefile.am (CLEANFILES): Fix typo.
5771 Wed Nov  2 15:11:52 1994  David J. MacKenzie  <djm@duality.gnu.ai.mit.edu>
5773         * The big 4 0.
5775         * lib/listfile.c find/defs.h (list_file): Take a stream arg.
5776         * find/pred.c (pred_ls): pass it.
5777         * find/parser.c pred.c defs.h (parse_fls, pred_fls): New functions.
5779 Tue Oct 25 16:09:04 1994  David J. MacKenzie  <djm@duality.gnu.ai.mit.edu>
5781         * find/pred.c (pred_fprintf): Flush output after \c.  From Chapman
5782         Flack.
5784         * find/parser.c (insert_fprintf): Warn about unrecognized \ and %
5785         sequences.
5787 Tue Oct 18 00:03:10 1994  David J. MacKenzie  <djm@duality.gnu.ai.mit.edu>
5789         * find/defs.h parser.c pred.c tree.c util.c: Globally change
5790         "victim" to "primary".
5792         * find/parser.c (insert_fprintf): For 'c' format, don't lose the
5793         need_stat information.  From Chapman Flack.
5795         * doc/find.texi perm.texi: New files.
5796         * configure.in: Configure the doc directory.
5798         * find/pred.c (pred_regex): Check that the regex matched the whole
5799         file name.
5801 Wed Oct 12 17:13:47 1994  David J. MacKenzie  (djm@duality.gnu.ai.mit.edu)
5803         * find/find.c (main): Tell what the invalid arg is.
5804         From Kaveh Ghazi.
5806 Fri Oct  7 12:33:24 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5808         * find/parser.c: Add -mount as an alias for -xdev.
5809         From Klaus.Steinberger@physik.uni-muenchen.de (Klaus Steinberger).
5811         * lib/modechange.c: Make umask_value unsigned short.
5813         * xargs/xargs.c: Use symbolic constants in longopts.
5814         From Chapman Flack.
5816 Wed Oct  5 11:23:09 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5818         * xargs/xargs.c (main, read_line, read_string, do_exec): Pass
5819           along the lengths of the args.
5820           (main): Calculate length of replace_pat.
5821           (push_arg, do_insert): Use those lengths instead of calculating
5822           them.
5824 Tue Oct  4 10:02:05 1994  David MacKenzie  <djm@churchy.gnu.ai.mit.edu>
5826         * locate/updatedb.sh Makefile.in: Add substitutions to get
5827           the transformed program names.
5829         * xargs/xargs.c: Put back the global variables for now.
5830         Rename some variables.  Increase default args_per_exec.
5831         Use boolean where applicable.
5832         (main): Reduce default arg_max by 2048 for POSIX.2.
5833         (read_string): Don't check EOF string.
5834         (read_line, read_string): Take initial args size into account.
5836 Sat Oct  1 17:43:13 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5838         * find/pred.c (launch): Use pid_t.
5840         * xargs/xargs.c (EOF_STR): Define and use.
5841         [__STDC__]: Declare xrealloc and xmalloc using void *.
5842         * find/defs.h: Likewise.
5844         * find/defs.h: Only declare stpcpy if !HAVE_STPCPY.
5846         * xargs/xargs.c: Replace most global variables with structure
5847           pointers passed as arguments.  Use pid_t.
5848         * lib/wait.h: Include sys/wait.h if HAVE_SYS_WAIT_H.
5849         * configure.in: Call AC_TYPE_MODE_T and AC_HEADER_SYS_WAIT.
5851         * xargs/xargs.c: Improve paging performance and memory
5852           fragmentation by building command arguments in a pre-allocated
5853           buffer and re-implementing the child pid list as an expandable
5854           array.  From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
5856 Thu Sep 29 11:38:07 1994  David J. MacKenzie  (djm@geech.gnu.ai.mit.edu)
5858         * xargs/xargs.c [__STDC__]: Prototype declarations.
5860 Wed Sep 28 11:25:53 1994  David J. MacKenzie  (djm@duality.gnu.ai.mit.edu)
5862         * find/fstype.c [AFS, __STDC__]: Fix definition of _VICEIOCTL.
5864 Tue Sep 27 08:14:27 1994  David MacKenzie  <djm@churchy.gnu.ai.mit.edu>
5866         * find/fstype.c (fstype_to_string): Add more cases.  Use
5867           INITMOUNTNAMES if defined.
5868         * find/defs.h: Change boolean typedef from char to int.
5869         * configure.in: Check for mktime.
5871 Tue Sep 27 01:20:28 1994  Kaveh R. Ghazi  (ghazi@noc.rutgers.edu)
5873         * configure.in: Add AC_HEADER_STAT.
5874         * lib/listfile.c, lib/modetype.h: Add STAT_MACROS_BROKEN.
5876         * find/pred.c: Move the inclusion of defs.h ahead of the first
5877           test of _POSIX_VERSION.
5879         * lib/xgetcwd.c: Remove _POSIX_VERSION, rely only on HAVE_GETCWD.
5881 Mon Sep 26 16:43:01 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5883         * configure.in: Add AC_CONFIG_HEADER.
5884         * find/*.c locate/*.c xargs/*.c: Include config.h.
5885         * locate/updatedb.sh: Add --version; --old -> --old-format.
5887 Sun Sep 25 23:43:37 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5889         * find/* [__STDC__]: Prototype declarations.
5891         * locate/updatedb.sh: Account for renaming code and frcode.
5893         * find/find.c (process_path): Store dev and ino of directories in
5894           current branch to avoid symlink loops.  From DJ Delorie
5895           <dj@ctron.com>.
5896           (process_dir): If following symlinks, don't cd to ..; instead,
5897           cd to the starting directory and then to the parent directory.
5898           (main) [HAVE_FCHDIR]: Save the dev, ino of the starting directory.
5899           (process_top_path) [HAVE_FCHDIR]: Use it.
5900         * find/pred.c (launch) [HAVE_FCHDIR]: Likewise.
5901         * defs.h [HAVE_FCHDIR]: Declare starting_desc instead of starting_dir.
5902         * configure.in: Check for dev_t, ino_t, fchdir, fcntl.h.
5904 Fri Sep 23 11:55:38 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5906         * lib/listfile.c: Change #ifdef S_IFLNK to #ifdef S_ISLNK.
5907         From Andreas Luik <luik@isa.de>.
5909 Thu Sep 22 11:42:40 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5911         * locate/locate.c (last_literal_end): Dynamically allocate enough
5912           memory for the subpattern.
5914 Wed Sep 21 06:12:56 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5916         * locate/locate.c (locate): Warn if database is >8 days old.
5917         From Ian Lance Taylor.
5919         * xargs/xargs.c (do_exec), find/pred.c (launch): Set SIGCHLD to
5920           default.  From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
5921         * find/find.c pred.c util.c lib/listfile.c: Remove fflush(stdout)
5922           calls before error.  error does it, and doesn't trash errno.
5923           From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
5925         * find/fstype.c (filesystem_type_uncached): Don't trust mtab dev
5926           number on HPUX.  From Andreas Luik <luik@isa.de>.
5927           (filesystem_type_uncached): Don't cache unknown file system
5928           types.  From casper@fwi.uva.nl (Casper Dik).
5930         * locate/updatedb.sh: Collect results in temp file and rename it
5931           atomically.  From Andreas Luik <luik@isa.de>.
5933         * xargs/xargs.c (parse_num): Print a long using %ld.  From Jim
5934           Meyering.
5936         * find/defs.h find.c parser.c pred.c util.c, lib/nextelem.c:
5937           Emulate strchr and strrchr with index and rindex, not vice versa.
5939         Remove man directory; move man pages to the directories of the
5940         programs they document.
5942         * locate/frcode.c: Renamed from code.c.
5943         * locate/frcode.c (put_short): Renamed from puthalfword.
5944         * locate/locate.c (get_short): Renamed from gethalfword.
5945         (last_literal_end): Renamed from patprep.
5946         (locate): Recognize old-format databases too.
5947         * locate/locatedb.h: Add defines for old-format databases.
5948         * locate/bigram.c locate/code.c: Put back programs to create
5949         old-format databases.
5950         * locate/updatedb.sh: Take --old option to use them.
5952 Tue Sep 20 15:41:11 1994  David MacKenzie  <djm@geech.gnu.ai.mit.edu>
5954         * configure.in: Update for Autoconf v2.
5955         * find/pred.c lib/savedir.c: Use new symbols for dir header.
5956         * locate/updatedb.sh: Add --help option.
5958 Sun Feb 13 11:21:58 1994  Jim Meyering  (meyering@comco.com)
5960         * man/Makefile.in [man1ext, man5ext]: Set man5ext (not man1ext) to 5.
5962 Sun Aug  1 22:30:55 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
5964         * bigram.c: File removed.
5965         * getline.c, memcmp.c, locatedb.h, updatedb.1, locatedb.5: New files.
5966         * updatedb.sh: Take command line options.
5967         Don't do bigram compression.
5968         * code.c, locate.c: Don't do bigram compression.
5969         Write and read counts in network byte order.
5970         Handle arbitrarily long paths.
5971         Use a magic number at the start of the databases.
5973 Thu Jul 29 20:44:53 1993  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
5975         * Makefile.in (config.status): Run config.status --recheck, not
5976         configure, to get the right args passed.
5978 Thu Jul 22 12:53:12 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
5980         * listfile.c (list_file): Print inode as a long.
5982 Wed Jul 14 14:14:45 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
5984         * fstype.c [STDC_HEADERS]: Include stdlib.h.
5986         * Move unistd.h include from parser.c and pred.c to defs.h.
5988 Wed Jun 30 14:14:47 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
5990         * updatedb.sh: Construct PRUNEREGEX from PRUNEPATHS with sed.
5991         Prune /afs.  Change NFSUSER to NETUSER and NFSPATHS to NETPATHS.
5993 Tue Jun 29 12:19:58 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
5995         * pred.c (pred_fprintf): Abort in switch if `c' is not A, C, or T.
5997 Mon Jun 28 00:18:52 1993  David J. MacKenzie  (djm@wookumz.gnu.ai.mit.edu)
5999         * fstype.c (in_afs) [AFS]: New function, derived from code by
6000         Sanjay Ramamurthy <ramams@rpi.edu>.
6001         (filesystem_type_uncached) [AFS]: Call it if the fs type is
6002         otherwise unknown.
6004         * parser.c (parse_size): Recognize b and w suffixes for dd
6005         compatibility.
6007         * code.c (puthalfword): New function.
6008         (main): Call it.
6009         * locate.c (gethalfword): New function.
6010         (locate): Call it.
6011         From ifado!wb@germany.eu.net (Wilhelm B. Kloke).
6013         * listfile.c: Include pathmax.h.
6014         (get_link_name): Always allocate PATH_MAX + 1 bytes for
6015         readlink buffers.
6016         * pred.c (pred_fprintf, insert_lname): Call get_link_name.
6018         * fstype.c (filesystem_type, filesystem_type_uncached),
6019         listfile.c (list_file): Take an arg for the path to access.
6020         * pred.c (pred_ls, pred_fstype, pred_fprintf): Pass it.
6022         * find.c (process_dir): Renamed from scan_directory.
6024         Changes from jrs@world.std.com (Rick Sladkey) to chdir into
6025         subdirectories instead of using string concatenation, for speed:
6026         * find.c (process_top_path): New function.
6027         (main): Call it, and xgetcwd.
6028         (process_path, scan_directory): Take new arg, the pathname
6029         relative to ".".  Use it and pass it on.
6030         * pred.c (pred_and, pred_comma, pred_negate, pred_or,
6031         pred_xtype, pred_fprintf, pred_empty, insert_lname):
6032         access rel_pathname instead of pathname.
6033         (launch): chdir to starting_dir.
6034         * defs.h: Declare rel_pathname and starting_dir.
6035         * find.c: Define them.
6037         * xgetcwd.c: New file.
6039         * updatedb.sh: Recognize -fstype NFS as well as nfs.
6040         * locate.c (patprep): Skip trailing character classes correctly.
6041         From luik@pharao.stgt.sub.org (Andreas Luik).
6043         * parser.c (parse_group): Make gid a gid_t, not short or int.
6044         (parse_nogroup): Cast gid to unsigned when using it as an array index.
6045         (parse_user, parse_nouser): Similar changes for uid.
6046         * defs.h: Use uid_t and gid_t.
6048         * parser.c (parse_help): New function.
6049         (parse_table):  Add --version, -help, and --help options.
6050         Rename struct parser_table_t to struct parser_table.
6051         (parse_version): Exit after printing message, on
6052         stdout not stderr.
6054         * xargs.c, locate.c (main, usage): Add --version and --help
6055         options.
6057 Wed Mar 31 22:39:57 1993  Jim Meyering  (meyering@comco.com)
6059         * parser.c: Define isascii macro to be 1 also if STDC_HEADERS.
6060         * xargs.c: Ditto.
6062 Wed Mar 31 16:04:07 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
6064         * pred.c (pred_fprintf): If curdepth is 0, don't nuke
6065         segment->text; nuke cp.
6067 Mon Mar 29 15:57:20 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
6069         * Version 3.8.
6071 Fri Mar 26 16:36:59 1993  David J. MacKenzie  (djm@hal.gnu.ai.mit.edu)
6073         * pred.c (pred_ilname, pred_iname, pred_ipath): New functions.
6074         (pred_table): Add them.
6075         (insert_lname): New function.
6076         (pred_lname): Call it.
6077         * parser.c (parse_ilname, parse_iname, parse_ipath,
6078         parse_iregex): New functions.
6079         (parse_table): Add them.
6080         (insert_regex): New function.
6081         (parse_regex): Call it.
6083         * fstype.c (filesystem_type): Cache previous result.
6084         (filesystem_type_uncached): New function.
6085         pred.c (pred_fstype, pred_fprintf): Adjust callers to not cache.
6087         * parser.c: Don't define const.
6089         * fstype.c [FSTYPE_STATFS] (fstype_to_string): #ifdef
6090         MOUNT_PC for 386bsd.
6092 Thu Mar 25 18:32:24 1993  David J. MacKenzie  (djm@goldman.gnu.ai.mit.edu)
6094         * parser.c (parse_regex): If ignore_case, set up a translate
6095         table for the regex.
6097         * defs.h: Include string.h or strings.h.
6098         * find.c fstype.c parser.c pred.c util.c: Don't.
6100         * nextelem.c [index]: Don't redefine.
6102 Wed Mar 24 17:47:10 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
6104         * xargs.c (wait_for_proc): Exit with a nonrunnable command's exit
6105         status, not the wait status value.  From
6106         Andreas Schwab <schwab@lamothe.informatik.uni-dortmund.de>.
6108         * parser.c (make_segment, insert_fprintf), pred.c
6109         (pred_fprintf): Add '%F' to print filesystem type.
6111         * parser.c (parse_fprintf): Check if second arg is missing.
6113 Tue Mar 23 13:18:08 1993  David J. MacKenzie  (djm@kropotkin.gnu.ai.mit.edu)
6115         * pred.c (pred_fprintf): For %P, don't move past an assumed
6116         slash if the ARGV element ends with one, because in that case
6117         we didn't add one.
6119         * parser.c (parse_printf): Check for missing arg.
6120         From smj@cats.com (Steve James).
6122         * parser.c: Add #ifdef around atol decl for Linux.
6124 Fri Dec 11 08:17:07 1992  Jim Meyering  (meyering@comco.com)
6126         * defs.h: Remove dcl of process_path.
6127         * find.c: Put dcl of p
6129         * pred.c (pred_fprintf): Don't print "\n" unless it's in the
6130         format string.
6132 Mon Oct 21 22:30:35 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
6134         * defs.h, parser.c, pred.c: Rename some types that conflict
6135         with reserved POSIX.1 namespace (ended in _t).
6139 Thu Oct 17 22:39:06 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
6141         * xargs.c: Don't determine memory.h based on POSIX, which
6142         doesn't mention it.
6144 Sat Oct  5 16:11:05 1991  Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
6146         * parser.c (parse_perm): Parse new `-perm +mode' notation.
6147         * pred.c (pred_perm): Interpret same.
6149 Fri Sep 13 14:58:27 1991  David J. MacKenzie  (djm at churchy.gnu.ai.mit.edu)
6151         * xargs.c [POSIX]: Always use sysconf to get ARG_MAX.
6153 Thu Sep  5 23:57:06 1991  David J. MacKenzie  (djm at apple-gunkies)
6155         * bigram.c, code.c (main): Make path_max int, not unsigned.
6156         * locate.c (main): Check for pathconf failure.
6158 Thu Sep  5 11:54:44 1991 Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
6160         * parser.c (insert_fprintf): Add `\\' escape and fixed `%%'
6161         interpretation.
6162         * pred.c (pred_fprintf): fixed off-by-one indexing problem
6163         when handling [gGuU] printf formats.
6165 Wed Aug 28 20:53:57 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
6167         * Version 3.2.
6169 Mon Aug 26 18:57:32 1991  David J. MacKenzie  (djm at pogo.gnu.ai.mit.edu)
6171         * bigram.c, code.c: Fix handling of PATH_MAX.
6172         Check for anomalous input line lengths.
6173         From Bruce Evans.
6175 Fri Aug 23 11:00:18 1991  David J. MacKenzie  (djm at apple-gunkies)
6177         * pred.c (pred_fprintf): Round block number up to get K.
6179 Thu Aug 22 10:46:30 1991  David J. MacKenzie  (djm at apple-gunkies)
6181         * pred.c (pred_fprintf, pred_lname) [_AIX]: Allocate PATH_MAX
6182         byte for link object since st_size is wrong.
6184         * listfile.c (list_file): Don't convert blocks to kilobytes if
6185         env. var POSIX_ME_HARDER is defined.
6187         * fstype.c [FS_AIX_STATFS]: New case.
6189         * configure: Make sure the sys/mount.h is the 4.4BSD version
6190         with grep instead of just testing whether it exists.
6192         * listfile.c (list_file): Add 1 to number of 512-byte blocks
6193         before dividing to get 1K blocks (so we round up, not down).
6195 Wed Aug 21 13:02:46 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
6197         * Version 3.1.
6199         * parser.c (parse_fprintf), pred.c (pred_fprintf): Add %k
6200         conversion to print 1K blocks.
6202         * listfile.c: Print counts of 1K blocks, for consistency with
6203         new fileutils release.  Bad timing, there.
6205         * Version 3.0.
6207         * pred.c [VOID_CLOSEDIR]: Fake a return value for closedir,
6208         which returns void on some systems, like Sequents.
6209         * configure: Check sys/dir.h for 'void closedir'.
6211 Thu Aug 15 16:07:46 1991  David J. MacKenzie  (djm at frob)
6213         * modetype.h: Define POSIX.1 stat stuff if missing.
6214         * pred.c, parser.c, find.c, fstype.c: Don't define it.
6215         * updatedb.sh: Use a variable substitution method like configure's.
6216         * Makefile.in: Add datadir variable to separate programs from
6217         data file.
6219         * parser.c, pred.c: Rename -fulldays to -daystart.
6221         * defs.h, find.c, parser.c, pred.c: Add many new predicates
6222         from Jay Plett (jay@princeton.edu).
6224 Wed Aug 14 14:37:06 1991  David J. MacKenzie  (djm at bleen)
6226         * parser.c (parse_size), pred.c (pred_size), defs.h (struct
6227         size_t): Allow `k' to follow number to measure size in Kbytes.
6228         * parser.c (parse_size, get_num, insert_num), defs.h (struct
6229         size_t): Use enum comparison_type instead of short.
6231 Fri Aug  9 00:49:32 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
6233         * xargs.c (read_line): Use isblank, to support POSIX locales.
6235         * fstype [FS_STATVFS]: New code for SVR4, from slootman@dri.nl
6236         (Paul Slootman).
6237         * configure: Figure out when to use it.
6239         * configure: Check for st_blocks in struct stat.
6240         * listfile.c (ST_NBLOCKS): New macro.
6241         (list_file): Print file's block count.
6242         Use S_ISLNK instead of S_IFLNK.
6243         * fileblocks.c: New file, from fileutils.
6245 Thu Aug  8 17:20:19 1991  David J. MacKenzie  (djm at wookumz.gnu.ai.mit.edu)
6247         * parser.c, pred.c [CACHE_IDS]: Optional code to turn uid and
6248         gid lookups into table lookups.
6250 Wed Aug  7 00:22:29 1991  David J. MacKenzie  (djm at wheat-chex)
6252         * configure, Makefile.in's: Support +srcdir option via VPATH.
6253         Clean up clean targets.
6255 Sat Jul 20 01:11:51 1991  David J. MacKenzie  (djm at apple-gunkies)
6257         * configure: Filter /etc and /usr/etc from path.
6259         * xargs.c (wait_for_proc): Fix handling of child exit status.
6260         (main): Exit with a nonzero status if any child did.
6262         * pred.c (launch): Flush stdout and stderr before forking.
6264         * fstype.c (filesystem_type) [FS_MNTENT]: Skip entries of
6265         type "ignore".
6267 Fri Jul 19 22:53:42 1991  David J. MacKenzie  (djm at bleen)
6269         * pred.c, locate.c: Use fnmatch instead of glob_match.
6270         * fnmatch.c, fnmatch.h: New files.
6272         * Many files: Use string.h if STDC_HEADERS, as well as if USG.
6274         * locate.c, code.c, bigram.c: Possibly use pathconf to get
6275         PATH_MAX.  Use malloc to allocate path arrays.
6277         * xargs.c: Possibly use sysconf to get ARG_MAX.
6278         (env_size): Make definition unconditional.
6279         (main): Do arg_max adjustment that can't be done with
6280         preprocessor now that ARG_MAX might be a function call.
6281         (do_exec): Exit with status 126 or 127 after failed exec, for
6282         POSIX.2 draft 11.1.
6284         * xargs.c, pred.c, listfile.c: Use POSIX, not UNISTD_MISSING.
6285         * wait.h: Use POSIX, not WAIT_MACROS_MISSING.
6287         * COPYING: Use version 2.  Update all files.
6289         * Replace Makefile and lib/Makefile with Makefile.in,
6290         lib/Makefile.in and configure.  Update README.
6292 Fri Apr  5 12:49:09 1991  David J. MacKenzie  (djm at apple-gunkies)
6294         * Version 2.2.
6296 Fri Mar 15 20:44:45 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
6298         * xargs.c (main): Always run the command if some args are left over.
6299         Rename some variables.
6301 Fri Jan 18 03:35:57 1991  David J. MacKenzie  (djm at geech.ai.mit.edu)
6303         * bigram.c, code.c, locate.c: Use LIMITS_MISSING, not
6304         _POSIX_SOURCE, to decide whether to include limits.h.
6306         * parser.c, pred.c, listfile.c: Use POSIX, not _POSIX_SOURCE,
6307         to decide whether to declare getpwuid and getgrgid.
6309         * xargs.c: Use POSIX, not _POSIX_SOURCE, to determine whether
6310         to include memory.h.
6312 Sat Jan 12 04:12:34 1991  David J. MacKenzie  (djm at wookumz.ai.mit.edu)
6314         * defs.h, find.c, parser.c, pred.c: Remove -permmask option.
6316 Thu Jan 10 04:32:52 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
6318         * wait.h: Include sys/types.h to get pid_t.
6320         * xargs.c [USG && !STDC_HEADERS]: Only include memory.h if not
6321         _POSIX_SOURCE.
6323 Tue Jan  1 23:53:32 1991  David J. MacKenzie  (djm at albert.ai.mit.edu)
6325         * Version 2.1.
6327 Wed Dec 26 03:25:51 1990  David J. MacKenzie  (djm at apple-gunkies)
6329         * locate.c, bigram.c, code.c: Attempt to get max. path length
6330         on more kinds of systems, incl. POSIX.
6332         * pred.c, listfile.c, xargs.c: Get some decls from unistd.h,
6333         if available.
6335         * find.c, defs.h: Make `cur_day_start' a time_t, not long.
6337 Fri Dec 21 01:49:12 1990  David J. MacKenzie  (djm at egypt)
6339         * defs.h, parser.c: Remove unused field from `struct exec_t'.
6341         * xargs.c: Add +no-run-if-empty option to cause the command to
6342         not be run if the input is empty.
6344         * defs.h (struct exec_t): Change the array of offsets into an
6345         array of `struct path_arg'.
6346         * parser.c (insert_exec_ok): Fill in new fields, to allow "{}"
6347         to be substituted (multiple times) anywhere in an arg to -exec
6348         or -ok.
6349         * pred.c (pred_exec): Add code to substitute "{}" within args.
6350         (pred_ok): After prompting, just run pred_exec.
6352 Thu Dec 20 02:32:09 1990  David J. MacKenzie  (djm at egypt)
6354         * fstype.c (filesystem_type) [FS_MNTENT]: Allow for optional
6355         "0x" at front of "dev=" mount option, which amd puts there but
6356         Sun automounter doesn't.
6358 Sat Dec 15 19:01:12 1990  David J. MacKenzie  (djm at egypt)
6360         * find.c (main), util.c (usage): Make directory args optional,
6361         defaulting to ".".
6363 Sat Dec 15 18:36:29 1990  David J. MacKenzie  (djm at apple-gunkies)
6365         * listfile.c: Define major and minor if not defined (as in POSIX).
6367 Mon Dec  3 01:04:35 1990  David J. MacKenzie  (djm at alborz)
6369         * find.c, fstype.c, parser.c, pred.c, util.c: Flush stdout before
6370         writing to stderr, in case they have been redirected to the
6371         same file descriptor.
6373         * pred.c (launch): Use POSIX wait macros from wait.h.
6375         * xargs.c (print_xargs): Read from tty_stream, not stdin.
6377 Tue Nov 20 16:48:24 1990  David J. MacKenzie  (djm at apple-gunkies)
6379         * Version 2.0.
6381         * fstype.c [FS_USG_STATFS]: New code.
6382         [FS_STATFS]: For symlinks, statfs the directory the link is in
6383         instead of the link.
6384         * Various files: Conditionalize some declarations on
6385         STDC_HEADERS or _POSIX_SOURCE.
6387 Fri Nov 16 12:24:43 1990  David J. MacKenzie  (djm at egypt)
6389         * modetype.h: New file.
6390         parser.c, pred.c: Use it.
6392 Thu Nov 15 18:05:54 1990  David J. MacKenzie  (djm at apple-gunkies)
6394         * xmalloc.c: New file from fileutils.
6396         * fstype.c (fstype_to_string): Add case for MFS.
6397         (filesystem_type): Take a pathname as a second arg.
6398         [FS_STATFS] return "unknown" instead of exiting if statfs
6399         fails because of ENOENT.
6400         * pred.c (pred_fstype): Pass the pathname.  Set current_dev.
6401         * find.c (process_path): Make root_dev local again.
6403 Mon Nov 12 02:54:00 1990  David J. MacKenzie  (djm at apple-gunkies)
6405         * pred.c (pred_fstype): Free old fs type.
6407         * fstype.c, pred.c (pred_fstype), parser.c (parse_fstype):
6408         Reread the file system type info. every time a filesystem
6409         mount point is crossed, to allow for automounting.
6411         * xstrdup.c: New file from fileutils.
6413         * find.c (process_path): Rename root_dev to current_dev and
6414         make it global, for -fstype.
6416         * wait.h: New file taken from xargs.c.
6418         * xargs.c: Make limits.h vs. sys/param.h conditional on
6419         LIMITS_MISSING instead of USG, to accomodate SVR2.
6421 Thu Nov  8 11:52:22 1990  David J. MacKenzie  (djm at apple-gunkies)
6423         * parser.c, pred.c, listfile.c: If not _POSIX_SOURCE, declare
6424         getpwuid and getgrgid.  Use them.
6426         * listfile.c: If not _POSIX_SOURCE, define S_ISDIR and
6427         S_ISBLK.  Use them.
6429         * find.c: Use S_ISDIR instead of S_IFDIR, and define if not
6430         _POSIX_SOURCE.
6432         * Makefile: Define AR and RANLIB and pass to child makes.
6433         lib/Makefile: Use them.
6435         * xargs.c (WIFSIGNALED): Redefine so it works.
6437 Mon Nov  5 00:02:01 1990  David J. MacKenzie  (djm at apple-gunkies)
6439         * find.c (process_path): For -xdev, process filesystem
6440         mountpoints (but don't descend them), instead of skipping them
6441         entirely.
6443         * find.c, parser.c, defs.h: Add -follow predicate.
6445         * xargs.c: Change ifdefs to support STDC POSIX systems.
6447 Sat Nov  3 20:18:05 1990  David J. MacKenzie  (djm at apple-gunkies)
6449         * xargs.c (do_exec): Child process exits with status 255, not
6450         127, if command can't be run.
6452 Fri Nov  2 02:11:42 1990  David J. MacKenzie  (djm at apple-gunkies)
6454         * xargs.c: Exit with status 127 if running commmand fails, as
6455         required by POSIX.
6457         * fstype.c: Support -fstype for Ultrix (-DFS_GETMNT).
6458         Sun/BSD code is now -DFS_MNTENT.
6460 Thu Nov  1 13:06:01 1990  David J. MacKenzie  (djm at egypt)
6462         * Reorganize into subdirectories and add xargs.  Rewrite Makefiles.
6464         * find.c (process_path, main): Allow a maxdepth of 0, meaning
6465         only process command line args.
6467         * parser.c, pred.c: Add -print0 predicate.
6469         * xargs.c: Add -0 option and long options.  Move standard
6470         library functions into separate files.  Use error instead of
6471         fatal and fprintf/perror.  Use POSIX macros for examining exit
6472         status from wait.
6473         (read_string): New function.
6475 Fri Sep 21 10:21:09 1990  David J. MacKenzie  (djm at apple-gunkies)
6477         * find.c (process_path): Take DEPTH as an arg instead of ROOT,
6478         and change callers.
6480 Thu Sep 20 23:58:47 1990  David J. MacKenzie  (djm at apple-gunkies)
6482         * parser.c (parse_maxdepth): New function.
6483         * find.c (process_path): If -maxdepth was given, don't go
6484         more than that many levels deep.
6485         * defs.h: Declare maxdepth.
6487 Wed Sep 12 02:12:31 1990  David J. MacKenzie  (djm at apple-gunkies)
6489         * parser.c: Add -not as synonym for !.
6491 Sun Aug 26 06:16:08 1990  Jim Kingdon  (kingdon at pogo.ai.mit.edu)
6493         * Makefile (TAGS): New target.
6495 Sun Aug 12 00:32:01 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6497         * xargs.c (main): Tell getopt to not permute.
6499 Sat Aug  4 21:43:45 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
6501         * parser.c (parse_perm), pred.c (pred_perm): Always compare
6502         bits 07777.
6504         * locate.c, Makefile: Rename 'fastfind' program to 'locate',
6505         following comment in POSIX.2 draft 10 rationale for find.
6507 Wed Jul 25 18:45:03 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6509         * listfile.c (getuser, getgroup): Make uid and gid unsigned
6510         short, not int.
6512 Mon Jul 16 13:40:13 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6514         * defs.h: Don't declare fprintf and printf, in case they have
6515         prototypes in stdio.h (important for functions that use stdarg).
6517 Sun Jul 15 23:39:39 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6519         * parser.c (parse_and): New function, for compatibility.
6521 Wed Jul  4 00:17:57 1990  David J. MacKenzie  (djm at apple-gunkies)
6523         * find.c (main): Only enclose expressions that produce no side
6524         effects within `( ... )'.
6526 Tue Jul  3 01:59:39 1990  David J. MacKenzie  (djm at apple-gunkies)
6528         * parser.c (strspn): Stop when end of string reached.
6530         * Version 1.2.
6532         * Move version number from Makefile to new file version.c.
6533         * parser.c: Recognize new -version predicate.
6535         * find.c (main): If no predicates that produce output are
6536         given, default to -print if the entire expression is true, not
6537         just the last part of an alternation.
6538         * Print the names of predicates with invalid arguments.
6540 Mon Jul  2 23:48:17 1990  David J. MacKenzie  (djm at apple-gunkies)
6542         * pred.c: Don't check for invalid comparison types in numeric
6543         predicate functions.
6545 Thu Jun 28 00:34:57 1990  David J. MacKenzie  (djm at apple-gunkies)
6547         * parser.c (parse_regex): Set fastmap and translate before
6548         compiling regex.
6550 Mon Jun 25 18:08:59 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6552         * fastfind.c (fastfind): Initialize count to 0.
6554         * lib/updatedb.sh: Only do regex comparison on directories,
6555         for speed.
6557         * listfile.c (list_file): Truncate user and group name to 8 chars.
6559 Sun Jun 24 13:51:27 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6561         * Version 1.1.
6563         * Makefile [DISTFILES]: Add COPYING.
6565 Fri Jun 22 03:54:27 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6567         * Version 1.0.
6569 Tue Jun 19 03:55:28 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6571         * lib/updatedb.sh: Prune entries that match PRUNEREGEX.
6572         Split up finding files from computing bigrams.
6573         Use redirection instead of nonportable grep -s to detect sort
6574         failure.  Optionally search network filesystems as well as
6575         local ones.
6577         * pred.c (pred_regex): Match against full pathname instead of
6578         just last element.
6579         * util.c (basename): Return "/", not "", if given "/".
6581         * find.c (process_path): Fix error in handling "/" directory.
6583 Mon Jun 18 01:49:16 1990  David J. MacKenzie  (djm at apple-gunkies)
6585         * parser.c [STRSPN_MISSING] (strspn): New function.
6587 Sun Jun 17 13:54:09 1990  David J. MacKenzie  (djm at apple-gunkies)
6589         * listfile.c: New file.
6590         * parser.c (parse_ls): New function.
6591         * pred.c (pred_ls): New function.
6593         * find.c (main): Remove interface to fastfind, to prevent
6594         conflict with POSIX syntax.
6595         * util.c (usage): Remove fastfind syntax from message.
6596         * fastfind.c (main): New function.
6597         * Makefile: Make fastfind a separate program.
6599         * find.c (main): Print correct message if a predicate arg is
6600         missing.
6602         * parser.c (insert_exec_ok): Make args that start with a ';' but
6603         contain other characters not terminate the command.
6605 Fri Jun 15 00:33:45 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6607         * fstype.c: If MOUNTED isn't defined but MNT_MNTTAB is, use it
6608         instead.  True for HP/UX, at least.
6610 Thu Jun 14 10:10:25 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6612         * savedir.c: New file; now find won't run out of file
6613         descriptors in deep trees.
6614         * find.c (process_path): Use savedir.
6616 Sat Jun  9 03:15:21 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6618         * parser.c (parse_permmask): Allow symbolic mode masks.
6619         (parse_perm): Free 'struct change' when done with it.
6620         (get_oct): Function removed.
6622         * find.c (process_path): Allow arbitrarily-long filenames.
6623         More efficient string copying.  Initialize perm_mask to 07777
6624         instead of -1.
6626 Thu Jun  7 04:22:42 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6628         * Makefile, find.c: Use DIRENT to control whether <dirent.h>
6629         is used.
6631 Thu May 31 04:46:11 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6633         * parser.c (parse_regex): New function.
6634         * pred.c (pred_regex): New function.
6636         * fstype.c (read_mtab): If mtab entry has a "dev=" option
6637         (like in SunOS 4.1), use it, so there is no need to stat the
6638         special file later on.
6639         (xatoi, strstr): New functions.
6641 Mon May 21 01:04:42 1990  David J. MacKenzie  (djm at abyss)
6643         * lib/updatedb.sh: Put BINDIR in PATH.
6645         * fstype.c: Do nothing if MNTENT_MISSING is defined.
6647         * fstype.c: New file.
6648         * parser.c (parse_fstype): New function.
6649         * pred.c (pred_fstype): New function.
6651         * parser.c (parse_newer): Failure to stat -newer file is a
6652         fatal error.
6654         * pred.c (pred_ok): Flush output before reading.  Use getchar
6655         instead of scanf.
6657         * pred.c (pred_prune): Return false if -depth given.
6658         * find.c: Apply the predicates to the dir when -depth and
6659         -prune are given.
6661 Sun May 20 19:55:30 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6663         * pred.c (pred_prune): Set new global var `stop_at_current_level'.
6664         * find.c (process_path): Test and reset it.
6666 Fri May 18 01:56:17 1990  David J. MacKenzie  (djm at abyss)
6668         * modechange.c, modechange.h: New files.
6669         * parser.c (parse_perm): Use mode_compile and mode_adjust to
6670         parse arg, to allow symbolic mode for POSIX.
6672 Thu May 17 02:07:44 1990  David J. MacKenzie  (djm at abyss)
6674         * parser.c (get_oct): Don't consider an empty string a valid number.
6676         * parser.c (parse_perm): If arg starts with '-', set flag bit
6677         for special comparison (POSIX).
6678         * pred.c (pred_perm): If flag bit set, compare s[ug]id &
6679         sticky bits as well, and return true if the given perms are
6680         set, ignoring other bits.
6682         * find.c: New global var `exit_status'.  Use it.  (POSIX)
6683         * parser.c: Set `exit_status' if lstat on -newer file fails.
6685         * fastfind.c: New file.
6686         * find.c (main): Call fastfind if given only 1 arg.
6687         * util.c (usage): Update message.
6688         * lib/{Makefile,updatedb.sh,bigram.c,code.c}: New files.
6689         * Makefile: Add 'all' and 'install' targets.
6691 Wed May 16 23:23:35 1990  David J. MacKenzie  (djm at abyss)
6693         * parser.c (parse_nogroup, parse_nouser): Implement.
6694         * pred.c (pred_nogroup, pred_nouser): Implement.
6696 Mon May 14 00:09:35 1990  David J. MacKenzie  (djm at abyss)
6698         * find.c: Add variable `stay_on_filesystem' for -xdev.
6699         (process_path): Take an arg determining whether this call is
6700         the root of a tree.  Use lstat instead of stat.  If
6701         stay_on_filesystem, don't process a dir on a different
6702         filesystem.
6704         * parser.c (parse_newer): Use lstat instead of stat.  Is this right?
6705         (parse_xdev): Set stay_on_filesystem.
6707         * parser.c: Add dummy parse_nogroup, parse_nouser,
6708         parse_prune, and parse_xdev; to be written later.
6709         * pred.c: Add dummy pred_nogroup, pred_nouser, pred_prune.
6711         * find.c: Support System V directory library/headers.
6713         * find.c (process_path): Don't continue with a file that stat
6714         fails on.
6716         * defs.h, parser.c, pred.c: Change 'u_long' and 'u_short' to
6717         'unsigned long' and 'unsigned short'.
6718         * find.c, defs.h: Remove 'convert_glob' variable.
6719         * parser.c (parse_fullregex): Function removed.
6720         (parse_name): Remove regular expression code.
6721         (parse_type): Recognize sockets.
6722         Add code to check for missing arguments to many parse_* functions.
6723         * pred.c (pred_name): Use glob_match instead of regex.
6725 Sun May 13 17:45:09 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6727         * Replace fprintf, simple_error, and mem_error with error and
6728         usage.
6730         * Fix string header includes for USG.
6732 Tue Mar 27 12:40:29 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6734         * defs.h: Change some #defines to enums.
6736 Sun Mar 25 22:08:58 1990  David J. MacKenzie  (djm at albert.ai.mit.edu)
6738         * find.c (main): Don't take basename of argv[0].
6740         * util.c (xmalloc): New function.
6741         * find.c, parser.c, utils.c: Use xmalloc instead of malloc.
6743         * pred.c: Remove emulation of regex for BSD and use GNU
6744         library version in regcmp.c instead.
6745         * parser.c: Remove emulation of regcmp for BSD and use GNU
6746         library version in regcmp.c instead.
6747         * Makefile: Link with regex.o and regcmp.o.
6748         Add a DISTFILES macro and dist target.
6750         * Indent source code.  Move RCS logs to this file.
6752 Wed Mar 21 09:30:18 1990  David J. MacKenzie  (djm at pogo.ai.mit.edu)
6754         * xargs.c: Indent.  Comment and rename some global variables.
6755         (main): Use getopt to parse options.  Open new global var
6756         `tty_stream' to /dev/tty if querying requested.
6757         (print_args): Read response from tty_stream, not stdin.
6758         (xmalloc): New function.
6759         Global: Use xmalloc instead of malloc.
6760         (usage): Revise message.
6762 87/02/22  20:01:20  20:01:20  cire (Eric B. Decker)
6764         * pred.c: added guts to pred_size
6766 87/02/22  00:59:42  00:59:42  cire (Eric B. Decker)
6768         * pred.c: added guts to perm and permmask.
6770 87/02/21  23:02:21  23:02:21  cire (Eric B. Decker)
6772         * pred.c: made pred_name only look at the last component of
6773         the path.
6775 87/02/21  22:26:47  22:26:47  cire (Eric B. Decker)
6777         * pred.c: added guts to name.  useds regex and regcmp to do
6778         regular expression handling.
6780 87/02/21  00:17:21  00:17:21  cire (Eric B. Decker)
6782         * pred.c: added predicate newer
6784 87/02/20  11:40:07  11:40:07  cire (Eric B. Decker)
6786         * pred.c: added guts to pred_ok
6788 87/02/19  23:52:37  23:52:37  cire (Eric B. Decker)
6790         * pred.c: finished exec.
6792 87/02/22  20:01:09  20:01:09  cire (Eric B. Decker)
6794         * parser.c: added guts to parse_size
6796 87/02/22  00:59:16  00:59:16  cire (Eric B. Decker)
6798         * parser.c: added guts of perm and permmask.  added getoct
6799         routine for perm and permmask
6801 87/02/21  23:32:50  23:32:50  cire (Eric B. Decker)
6803         * parser.c: added -fre, -fullregex predicate to turn off
6804         globbing conversion
6806 87/02/21  23:01:01  23:01:01  cire (Eric B. Decker)
6808         * parser.c: reworked name so the regexpr pattern includes $ at
6809         the end to force globbing to work correctly.  End of the
6810         pattern refers to the end of the filename.
6812 87/02/21  22:25:34  22:25:34  cire (Eric B. Decker)
6814         * parser.c: added guts to name.  uses a conversion from
6815         globbing to regexp format.  uses regex and regcmp to actually
6816         to the comparison.
6818 87/02/21  00:17:11  00:17:11  cire (Eric B. Decker)
6820         * parser.c: added predicate newer
6822 87/02/20  11:39:35  11:39:35  cire (Eric B. Decker)
6824         * parser.c: added ok guts.  consolidated exec and ok to using
6825         insert_exec_ok
6827 87/02/19  00:20:54  00:20:54  cire (Eric B. Decker)
6829         * parser.c: minor bug in -fulldays predicate parser.  It
6830         should have set the flag full_days to true.
6832 87/02/22  00:58:32  00:58:32  cire (Eric B. Decker)
6834         * find.c: changed where we are setting perm_mask to -1.  need
6835         to make sure that this happens before every apply_predicate.
6837 87/02/21  23:32:11  23:32:11  cire (Eric B. Decker)
6839         * find.c: added error checking for no paths.  better error
6840         message if illegal ordering.
6842 87/02/21  22:19:58  22:19:58  cire (Eric B. Decker)
6844         * find.c: added global convert_glob
6846 87/02/22  20:00:12  20:00:12  cire (Eric B. Decker)
6848         * defs.h: added definition of BLKSIZE for size
6850 87/02/21  22:19:25  22:19:25  cire (Eric B. Decker)
6852         * defs.h: added global convert_glob for name