Imported Upstream version 4.5.10
[platform/upstream/findutils.git] / ChangeLog
1 2011-05-11  James Youngman  <jay@gnu.org>
2
3         Prepare for release of findutils-4.5.10.
4         * NEWS: Update version number to 4.5.10 to prepare for that
5         release.  Add a release date (2011-05-11).
6         * configure.ac: Also update version number.
7         * po/*.po, po/findutils.pot: make dist changes these.
8
9         Savannah bug #30608 (Automagic dependency on selinux) is fixed.
10         * NEWS: Mention that Savannah bug #30608 (Automagic dependency on
11         selinux) is fixed.  The gnulib update on 2011-04-02 will have
12         included gnulib change 83e52ee5a420f8b552745a72e5869001b0f6da60
13         which fixes this problem.  The configure script now provides a
14         --without-selinux option.
15
16         Update Estonian translation.
17         * po/et.po: Update from the Translation Project.
18
19 2010-05-24  Kamil Dudka  <kdudka@redhat.com>
20
21         Fix Savannah bug #29949, -execdir does not change working directory.
22         * find/pred.c (record_exec_dir): Do not throw the execdir when not
23         working in the cumulative mode.
24         * find/testsuite/find.gnu/execdir-multiple.exp: Add a test-case for
25         the bug #29949.
26         * NEWS: Mention this bugfix.
27
28 2011-04-02  James Youngman  <jay@gnu.org>
29
30         Change "can not" to "cannot".
31         * lib/buildcmd.c (bc_push_arg): "can not" -> "cannot" in message.
32         * find/tree.c: Likewise in a comment.
33
34         Update Danish translation.
35         * po/da.po: Likewise.
36
37         Update Slovenian, German, Estonian, French, Japanese translations.
38         * po/sl.po: Updated from the Translation Project.
39         * po/de.po: Likewise.
40         * po/et.po: Likewise.
41         * po/fr.po: Likewise.
42         * po/ja.po: Likewise.
43
44         Update to the current version of gnulib.
45         * import-gnulib.config (gnulib_version): Update to the current
46         version of gnulib.
47         * configure.ac: Update to gettext 0.18.1.
48         * po/Rules-quot: Update this file from gettext.
49
50         Use parse-datetime instead of the obsolete module getdate.
51         * import-gnulib.config (modules): Import the gnulib module
52         parse-datetime instead of the obsolete module getdate.
53         * find/parser.c: Include parse-datetime.h instead of getdate.h.
54         * doc/find.texi: Include parse-datetime.texi instead of
55         getdate.texi.
56         * doc/Makefile.am (find_TEXINFOS): Use parse-datetime.texi instead
57         of getdate.texi.
58
59 2010-10-23  James Youngman  <jay@gnu.org>
60
61         Savannah bug #31424: Work around Interix bug in _SC_ARG_MAX,
62         in which execve will fail with ENOMEM if we use a command line
63         somewhere between ARG_MAX and _SC_ARG_MAX.
64         * lib/arg-max.h: New file: undefine _SC_ARG_MAX if we cannot rely
65         on the value that sysconf produces.
66         * lib/Makefile.am (libfind_a_SOURCES): Add arg-max.h.
67         * lib/buildcmd.c: #include arg-max.h.
68         * xargs/xargs.c: Likewise.
69
70 2010-10-21  James Youngman  <jay@gnu.org>
71
72         Fix Savannah bug #31359: FAIL: test-strstr on alpha.
73         * import-gnulib.config (gnulib_version): Update the version of
74         gnulib.
75         * NEWS: Mention this bugfix.
76
77 2010-10-11  James Youngman  <jay@gnu.org>
78
79         * doc/find.texi (Further Reading on Security): Give some
80         references to further reading on security.
81         * NEWS: Mention this change.
82
83 2010-08-16  James Youngman  <jay@gnu.org>
84
85         Fix Savannah bug #30777.
86         * find/parser.c (insert_exec_ok): Fail if {} appears in an
87         argument between -exec ... \+ but it's not the whole argument
88         (that is, reject "FOO{}").  Previously the FOO prefix was accepted
89         but ignored, which is probably POSIX-incompliant and certainly
90         surprising.
91         * find/testsuite/find.posix/sv-bug-30777.exp: New test case for
92         Savannah bug #30777.
93         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
94         find.posix/sv-bug-30777.exp.
95
96 2010-08-15  James Youngman  <jay@gnu.org>
97
98         Fix Savannah bug #30180, wrong error message for -size b300
99         * find/parser.c (parse_size): Don't print a suffix in the error
100         message if no suffix was specified.
101         * NEWS: Mention this change.
102
103         * po/da.po: Update Danish translation.
104
105 2010-05-11  John Gilmore  <gnu@xargs.toad.com>
106
107         Fix bug arising when we receive SIGUSR2.
108         * xargs/xargs.c (xargs_do_exec): Don't assume that proc_max won't
109         decrease while we are waiting for a process to exit.  This happens
110         if we receive SIGUSR2.
111
112 2010-05-09  James Youngman  <jay@gnu.org>
113
114         * xargs/xargs.1: Refer to signal(7) rather than signal(2).
115
116 2010-05-08  John Gilmore  <gnu@xargs.toad.com>
117
118         Control xargs parallelism with SIGUSR1/SIGUSR2.
119         * xargs/xargs.c: Increase parallelism in mid-run with SIGUSR1;
120         decrease it with SIGUSR2.
121         * doc/find.texi, xargs/xargs.1, NEWS: Document SIGUSR1/2.
122
123 2010-05-09  Sergei Golovan  <sgolovan@gmail.com> (tiny change)
124
125         Fix Savannah bug #29828, test suite deadlock on FreeBSD.
126         * find/testsuite/find.gnu/sv-bug-24169.exp: Read find output until
127         eof before calling wait, in order to avoid a deadlock on FreeBSD.
128
129 2010-05-08  Andreas Metzler  <gnu@downhill.at.eu.org>
130
131         Fix a typo.  Use "\-" in nroff, rather than a naked "-".
132         * find/parser.c (check_option_combinations): Fix typo
133         "atomatically".
134         * find/find.1 (-name): protect nroff hyphens with backslashes.
135         * locate/locatedb.5: Likewise.
136
137 2010-05-07  James Youngman  <jay@gnu.org>
138
139         * AUTHORS: Add Kamil Dudka.
140
141 2010-05-07  Kamil Dudka  <kdudka@redhat.com>
142
143         * lib/dircallback.c (run_in_dir): Make sure that if the callback
144         doesn't get run, the return value is nonzero.  Make sure that if
145         the directory save/restore fails, we don't overwrite errno with a
146         random value (and hence report some unrelated and nonexistent
147         error, instead of the real problem).  Restore the previous current
148         directory.
149
150 2010-05-04  James Youngman  <jay@gnu.org>
151
152         Bugfix: make sure make distdir works in VPATH directly after configure
153         * locate/Makefile.am (EXTRA_DIST): Add dblocation.texi.
154         (dblocation.texi): Always rebuild, but don't replace the existing
155         version if the content would not change.
156
157 2010-04-30  James Youngman  <jay@gnu.org>
158
159         Update Finnish and Italian translations.
160         * po/fi.po: Updated Finnish translation.
161         * po/it.po: Updated Italian translation.
162         * NEWS: Mention these updates.
163
164         Move on from 4.5.9.
165         * NEWS: Bump the version number from 4.5.9 to 4.5.10-git.
166         * configure.ac: Likewise.
167
168 2010-04-29  James Youngman  <jay@gnu.org>
169
170         Prepare for the release of findutils version 4.5.9.
171         * NEWS: Change the version number to 4.5.9.
172         * configure.ac: Likewise.
173
174         Preserve locate/dblocation.texi during 'make clean'.
175         * locate/Makefile.am (DISTCLEANFILES): Clean dblocation.texi for
176         'make distclean', but not 'make clean'.
177
178 2010-04-18  James Youngman  <jay@gnu.org>
179
180         Remove redundant declarations.
181         * locate/frcode.c: Don't declare xmalloc, include xalloc.h instead.
182         * locate/code.c: Don't declare program_name, we already included
183         progname.h.
184
185         Remove support for compilers lacking prototypes.
186         * find/defs.h: Don't define or use the PARAMS macro.
187         * xargs/xargs.c: Likewise.
188         * locate/locatedb.h: Likewise.
189         * locate/frcode.c: Likewise.
190         * lib/buildcmd.c: Likewise.
191         * find/tree.c: Likewise.
192         * find/pred.c: Likewise.
193         * find/parser.c: Likewise.
194         * find/fstype.c: Likewise.
195         * find/find.c: Likewise.
196
197 2010-04-21  James Youngman  <jay@gnu.org>
198
199         Update Chinese (simplified) translation.
200         * po/zh_CN.po: Updated from the Translation Project.
201         * NEWS: Mention this change.
202
203 2010-04-18  James Youngman  <jay@gnu.org>
204
205         Fix Savannah bug #29593: Make import-gnulib.sh work under a POSIX shell.
206         * import-gnulib.sh: Remove bash-specific '[[...]]' tests; instead
207         use '[...]'.
208         * NEWS: Mention this bugfix.
209
210 2010-04-17  James Youngman  <jay@gnu.org>
211
212         Remove obsolete module strpbrk.
213         * import-gnulib.config (modules): Remove strpbrk.
214
215         * locate/Makefile.am (locate_TEXINFOS): Add dblocation.texi.
216
217 2010-04-13  James Youngman  <jay@gnu.org>
218
219         Correct some test file names.
220         * find/testsuite/Makefile.am (EXTRA_DIST_EXP):
221         find.gnu/sv-bug-25359-execdir.exp should in fact be
222         find.gnu/sv-bug-27563-execdir.exp and
223         find.posix/sv-bug-25359-exec.exp should be
224         find.posix/sv-bug-27563-exec.exp.
225
226         * .x-sc_prohibit_test_minus_ao: Condense the file (since the
227         entries are regular expressions anyway).
228
229         * .x-sc_prohibit_empty_lines_at_EOF: New file; exceptions for the
230         sc_prohibit_empty_lines_at_EOF syntax check.
231
232 2010-04-11  James Youngman  <jay@gnu.org>
233
234         Make sure we don't open a file on a standard fd (that is, 0/1/2).
235         * lib/fdleak.c: Include fcntl--.h to turn calls to open into calls
236         to open_safer.
237         * find/find.c: Likewise.
238
239         After-the-fact change to NEWS for 4.5.8: fixed bug 27974.
240         * NEWS: Mention that release 4.5.8 also fixed bug #27974 (Use
241         gnulib's xreadlinkat support), though the NEWS file in that
242         release omitted to say so.
243
244         Fix Savannah bug #29511: fails to build on kfreebsd-*
245         * lib/fdleak.c (get_max_fd): Don't use RLIM_SAVED_MAX or
246         RLIM_SAVED_CUR.  Not only are they non-portable, they aren't
247         useful.
248         * NEWS: Mention this bugfix.
249
250         Remove some unused or dead code.
251         * find/util.c (hook_fstatat): This has been disabled and unused
252         for a long time, delete it.
253         * find/find.c (process_dir): Remove some unused debug code.
254         * find/tree.c (predlist_insert): Remove some dead code.
255         * lib/fdleak.c (complain_about_leaky_fds): Remove some unused
256         debug code.
257
258         Add a test case for Savannah bug 27563 (-L breaks -execdir).
259         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
260         find.gnu/sv-bug-27563-execdir.exp and
261         find.posix/sv-bug-27563-exec.exp.
262         (EXTRA_DIST_XO): Add find.gnu/sv-bug-27563-execdir.xo and
263         find.posix/sv-bug-27563-exec.xo.
264         * find/testsuite/find.gnu/sv-bug-27563-execdir.exp: New test.
265         * find/testsuite/find.posix/sv-bug-27563-exec.exp: New test.
266         * find/testsuite/find.gnu/sv-bug-27563-execdir.xo: Expected output.
267         * find/testsuite/find.posix/sv-bug-27563-exec.xo: Expected output.
268
269         Fix Savannah bug #27563, -L breaks -execdir.
270         * find/pred.c (initialise_wd_for_exec): New function, factoring
271         out part of the body of record_exec_dir.
272         (record_exec_dir): If state.rel_pathname contains a /, extract the
273         directory part and initialise execp->wd_for_exec to point at that
274         directory.
275         (impl_pred_exec): Rename new_impl_pred_exec to impl_pred_exec.
276         Drop the prefix and pfxlen parameters.  Compute the base name of
277         the target and pass that to the bc_push_arg function instead of
278         state.rel_pathname.  Deal with state.rel_pathname being an
279         absolute path (e.g. find / -execdir...).  Introduce a new
280         variable, result, allowing us to free the buffer used for the base
281         name in the return path.
282         (pred_exec): Don't pass the prefix and the prefix length any more.
283         (pred_execdir): Likewise.
284         (pred_ok): Likewise.
285         (pred_okdir): Likewise.
286
287 2010-04-10  James Youngman  <jay@gnu.org>
288
289         Fix Savannah bug #19593, -execdir .... {} + has suboptimal performance
290         * find/ftsfind.c (consider_visiting): Don't call
291         complete_pending_execdirs for every file we visit.
292         (find): Instead, call complete_pending_execdirs every time we
293         see a file which isn't at the same nesting level as the previous
294         file we saw.  This is an improvement but not optimal (since
295         descending into a subdirectory will cause us to issue an exec
296         before we've finished with the current directory).
297         * NEWS: Mention this change.
298
299         Exec predicates now store which directory they want to run in.
300         * lib/dircallback.c (run_in_dirfd): New name for old run_in_dir
301         function.
302         (run_in_dir): Like the old function of the same name, but now
303         takes an argument const struct saved_cwd *.
304         * lib/dircallback.h: Update declarations of run_in_dirfd and
305         run_in_dir.
306         * find/util.c: Include dircallback.h, xalloc.h, save-cwd.h.
307         (do_complete_pending_execdirs): Remove dir_fd parameter, since the
308         per-predicate data structures now indicate what directory they
309         need to be run in.  Instead of calling bc_do_exec directly, use a
310         callback 'exec_cb' that uses run_in_dir (which now takes a
311         saved_cwd* parameter instead of a file descriptor).
312         (do_exec): Called by do_complete_pending_execdirs, and simply uses
313         run_in_dir to call exec_cb, restoring the working directory
314         afterward.
315         (record_initial_cwd): New function, initialises the global
316         variable initial_wd.
317         (cleanup_initial_cwd): New function, cleans up the global variable
318         initial_wd.
319         (cleanup): Call cleanup_initial_cwd.
320         (get_start_dirfd): Remove.
321         (is_exec_in_local_dir): New function; true for predicates -execdir
322         and -okdir.
323         * find/pred.c: Include cloexec.h and save-cwd.h.
324         (record_exec_dir): New function, sets the value of
325         execp->wd_for_exec if needed.
326         (new_impl_pred_exec): Remove the obsolete dir_fd parameter.  Call
327         record_exec_dir.
328         (pred_exec): Don't pass the dir_fd parameter.
329         (pred_execdir): Likewise.
330         (pred_ok): Likewise.
331         (pred_okdir): Likewise.
332         (can_access): Call run_in_dirfd rather than run_in_dir (the
333         function was renamed).
334         (prep_child_for_exec): Remove dir_fd parameter; don't fchdir to
335         that.  Call restore_cwd instead (passing a saved_cwd* parameter
336         which replaced dir_fd).
337         (launch): Remove references to execp->use_current_dir.
338         (launch): Change references to execp->dir_fd to execp->wd_for_exec.
339         * find/parser.c: Correct indentiation of declaration of
340         insert_exec_ok and remove the obsolete dir_fd parameter.
341         (parse_exec): Don't pass the dir_fd parameter to insert_exec_ok.
342         (parse_execdir): Likewise.
343         (parse_ok): Likewise.
344         (parse_okdir): Likewise.
345         (insert_exec_ok): Remove obsolete dir_fd paramter.  Initialise
346         execp->wd_for_exec, either to NULL (for -*dir) or to the
347         initial_wd.
348         * find/ftsfind.c: Remove get_current_dirfd.  Remove
349         complete_execdirs_cb.
350         (consider_visiting): Call complete_pending_execdirs directly.
351         (main): Call record_initial_cwd to record the initial working
352         directory, early on.  Don't initialise starting_dir or
353         starting_desc, they have been removed.
354         * find/finddata.c: Include save-cwd.h.  Remove starting_dir and
355         starting_desc. Add new global variable initial_wd.  It is a struct
356         saved_wd* and represents find's initial working directory.
357         * find/find.c: Include save-cwd.h.
358         (main): Call record_initial_cwd in order to initialise the
359         global variable initial_wd  Don't set starting_desc and
360         starting_dir, since those variables have been removed.
361         (safely_chdir): Don't pass an fd to complete_pending_execdirs.
362         (chdir_back): Remove the safety check (since we are using fchdir
363         and in any case no longer have all the data that the existing
364         wd_sanity_check function wants).
365         (do_process_top_dir): Don't pass an fd to
366         complete_pending_execdirs.
367         (process_dir): Likewise.
368         * find/defs.h (struct exec_val): Remove use_current_dir and
369         dir_fd.  Replace with wd_for_exec, which is a struct saved_wd*.
370         (get_start_dirfd): Remove prototype.
371         (get_current_dirfd): Remove prototype.
372         (complete_pending_execdirs): No longer takes dir_fd parameter.
373         (record_initial_cwd): Add prototype.
374         (is_exec_in_local_dir): Add prototype.
375         (options): Declare.
376         (initial_wd): Add declaration.  It is a struct saved_wd* and
377         represents find's initial working directory.
378         (starting_dir): Remove declaration of global variable.
379         (starting_desc): Remove declaration of global variable.
380         * import-gnulib.config (modules): Import module save-cwd.
381
382 2010-04-10  James Youngman  <jay@gnu.org>
383
384         Add a test which checks $CWD for find -execdir {} +/;
385         * find/testsuite/find.gnu/execdir-multiple.exp: New test; verifies
386         that for -execdir +, all the execs occur with the correct working
387         directory.
388         * find/testsuite/find.gnu/execdir-multiple.xo: Expected output for
389         this test.
390         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add the new test.
391         (EXTRA_DIST_XO): Add the expected output file.
392         * find/testsuite/config/unix.exp (mkdir): Create proc "mkdir"
393         which creates a directory.
394         * find/testsuite/find.gnu/execdir-pwd1.exp: New test.
395         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
396         execdir-pwd1.exp.
397
398 2010-04-11  James Youngman  <jay@gnu.org>
399
400         Fix syntax checks problems for check sc_unmarked_diagnostics.
401         * find/tree.c (get_pred_cost): Clarify an error message and mark
402         it for translation.
403
404         Fix false positives for syntax check sc_prohibit_test_minus_ao.
405         * .x-sc_prohibit_test_minus_ao: Add all the DejaGnu scripts to the
406         list of exceptions to the 'test C1 -a C2' syntax check, since they
407         are not actually shell scripts.
408
409         Remove trailing blank lines.
410         * .x-sc_prohibit_empty_lines_at_EOF: Add list of exceptions to the
411         no-blank-lines-at-EOF syntax check.
412         * doc/regexprops.texi: Remove empty lines at the end of the file.
413         * find/finddata.c: Likewise.
414         * find/fstype.c: Likewise.
415         * find/testsuite/excuses.txt: Likewise.
416         * find/testsuite/find.gnu/access.exp: Likewise.
417         * find/testsuite/find.gnu/exec-one-rtn-fail.exp: Likewise.
418         * find/testsuite/find.gnu/posix-perminvalid.exp: Likewise.
419         * find/testsuite/find.gnu/samefile-missing.exp: Likewise.
420         * find/testsuite/find.gnu/samefile-p-brokenlink.exp: Likewise.
421         * find/testsuite/find.gnu/sv-bug-17490.exp: Likewise.
422         * find/testsuite/find.gnu/sv-bug-18222.exp: Likewise.
423         * find/testsuite/find.posix/bracket-depth.exp: Likewise.
424         * find/testsuite/find.posix/empty-parens.exp: Likewise.
425         * find/testsuite/find.posix/files-not-expressions1.exp: Likewise.
426         * find/testsuite/find.posix/files-not-expressions2.exp: Likewise.
427         * find/testsuite/find.posix/files-not-expressions3.exp: Likewise.
428         * find/testsuite/find.posix/group-empty.exp: Likewise.
429         * find/testsuite/find.posix/user-empty.exp: Likewise.
430         * find/testsuite/find.posix/user-missing.exp: Likewise.
431         * lib/extendbuf.c: Likewise.
432         * lib/fdleak.c: Likewise.
433         * lib/fdleak.h: Likewise.
434         * lib/findutils-version.h: Likewise.
435         * lib/gnulib-version.h: Likewise.
436         * lib/printquoted.c: Likewise.
437         * lib/regextype.c: Likewise.
438         * lib/safe-atoi.c: Likewise.
439         * locate/testsuite/config/unix.exp: Likewise.
440         * locate/testsuite/locate.gnu/exists1.exp: Likewise.
441         * locate/testsuite/locate.gnu/exists2.exp: Likewise.
442         * locate/testsuite/locate.gnu/exists3.exp: Likewise.
443         * locate/testsuite/locate.gnu/ignore_case1.exp: Likewise.
444         * locate/testsuite/locate.gnu/ignore_case2.exp: Likewise.
445         * locate/testsuite/locate.gnu/ignore_case3.exp: Likewise.
446         * locate/testsuite/locate.gnu/notexists1.exp: Likewise.
447         * locate/testsuite/locate.gnu/notexists2.exp: Likewise.
448         * locate/testsuite/locate.gnu/notexists3.exp: Likewise.
449         * locate/testsuite/locate.gnu/sv-bug-14535.exp: Likewise.
450         * m4/Makefile.am: Likewise.
451         * m4/nullsort.m4: Likewise.
452         * xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp: Likewise.
453         * xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp: Likewise.
454
455         After-the-fact change to NEWS for 4.5.8: fixed bug 27221.
456         * NEWS: Mention that release 4.5.8 also fixed bug #27221
457         (symlink_loop check broken by FTS_CWDFD), though the NEWS file in
458         that release omitted to say so.
459
460         After-the-fact change to NEWS for 4.5.8: fixed bug 27974.
461         * NEWS: Mention that release 4.5.8 also fixed bug #27974 (Use
462         gnulib's xreadlinkat support), though the NEWS file in that
463         release omitted to say so.
464
465 2010-04-10  James Youngman  <jay@gnu.org>
466
467         * import-gnulib.config (gnulib_version): Update to current gnulib
468         head.
469
470 2010-04-09  James Youngman  <jay@gnu.org>
471
472         * find/parser.c (parse_samefile): Use open_cloexec to open the
473         reference file, so that we don't leak a file descriptor.
474
475 2010-04-09  Roberto Reale  <rreale@iol.it> (tiny change)
476
477         * find/parser.c (parse_samefile): Since collect_arg_stat_info
478         increments *arg_ptr, argv[*arg_ptr] is often NULL.   Use filename
479         instead, as that's the variable in which we store the name of our
480         file.  The purpose of the fd was only to attempt to keep the inode
481         number stable on systems that don't really have inode numbers, so
482         this change should have no functional effect on POSIX systems.
483
484 2010-04-08  James Youngman  <jay@gnu.org>
485
486         Adopt the use of the gnulib module readlink.
487         * import-gnulib.config (modules): Add readlink.
488
489         Adopt the use of the gnulib module isblank.
490         (modules): Add isblank.
491
492         Adopt the use of the gnulib module faccessat.
493         * import-gnulib.config (modules): Add faccessat.
494         * find/pred.c (struct access_check_args): Delete.
495         (access_callback): Delete.
496         (can_access): Delete.
497         (pred_executable): Use faccessat.
498         (pred_readable): Likewise.
499         (pred_writable): Likewise.
500
501         Adopt (explicitly) the use of the gnulib module dirent-safer.
502         * import-gnulib.config (modules): Add dirent-safer; we were
503         previously transitively importing this module, but we are now
504         importing it directly.
505         * lib/savedirinfo.c: Include opendir-safer.h.
506         (xsavedir): Call opendir_safer instead of opendir.
507
508         Adopt the use of the gnulib module d-type.
509         * import-gnulib.config (modules): Import the d-type module.
510         * configure.ac: Remove old struct dirent.d_type detection logic
511         (since we now use the gnulib macro from the d-type module for
512         this).
513         * find/parser.c (parse_version): Use HAVE_STRUCT_DIRENT_D_TYPE
514         (since the d-ino module still defines it) but remove references to
515         the macro USE_STRUCT_DIRENT_D_TYPE, since it's not defined and not
516         needed.
517         * lib/savedirinfo.c: Use HAVE_STRUCT_DIRENT_D_TYPE but ignore
518         USE_STRUCT_DIRENT_D_TYPE.
519         (xsavedir): Unconditionally initialise
520         internal[result->size].type_info so that we don't have untested
521         code (HAVE_STRUCT_DIRENT_D_TYPE is defined on my system).
522
523         Move on from 4.5.8.
524         * configure.ac: Bump the version number to 4.5.9-git.
525         * NEWS: Likewise.
526
527 2010-04-07  James Youngman  <jay@gnu.org>
528
529         Prepare to release findutils-4.5.8.
530         * configure.ac: Update version number in AC_INIT.
531         * NEWS: Update version number and release date.
532
533         Depend on gnulib modules appropriate to features we already use.
534         * import-gnulib.config (modules): Add c-casestr, errno, fdopendir,
535         fflush, getdelim, gettimeofday, locale, modf, perror, snprintf,
536         stat, stdarg, stddef, stdio, stdlib, string, strpbrk, sys_time,
537         sys_wait.
538         Also add comments about other modules we may also want to use
539         which would require other code changes (for example dirent-safer).
540         * find/Makefile.am (LDADD): Add  $(LIB_EACCESS) $(LIB_SELINUX)
541         $(MODF_LIBM) which are needed by gnulib modules we now depend on.
542
543         More stat/xstat cleanup.
544         * find/parser.c (estimate_fstype_success_rate): Change the name of
545         the variable "dir" to "the_root_dir" to emphasise that it doesn't
546         matter that we're calling stat rather than options.xstat.
547         * find/ftsfind.c (symlink_loop): Call options.xstat instead of
548         stat/lstat, because options.xstat takes account of
549         state.cwd_dir_fd.
550
551         Fix Savannah bug 29460, -printf %Y fails in $CWD-dependent way
552         * find/pred.c (do_fprintf): Use optionl_stat and optionp_stat
553         instead of stat and lstat, because the first two functions are
554         aware of state.cwd_dir_fd.
555         * find/testsuite/find.gnu/printf-nonlocal-symlink.exp: A new test
556         case for this bug.
557         * find/testsuite/find.gnu/printf-nonlocal-symlink.xo: Expected
558         output for this test.
559         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add the new test
560         case.
561         (EXTRA_DIST_XO): Add the expected-output file.
562         * NEWS: Mention this fix.
563
564         * lib/strspn.c: Delete this unused file.
565
566         Update the maintenance manual.
567         * doc/find-maint.texi: Update the maintenance manual to take into
568         account the fact that we uniformly use git rather than CVS.  Point
569         out the new version tag format.  Mention "make coverage".
570         README-CVS is now called README-hacking.  Update the URL for the
571         Translation Project.
572
573         Eliminate some obsolete code.
574         * locate/locate.c (search_one_database): Remove obsolete code
575         (alternative size for procdata.pathsize).
576         * lib/buildcmd.c (get_line_max): Remove obsolete function.
577
578         Remove obsolete code from savedirinfo.c.
579         * lib/savedirinfo.c (new_savedirinfo): Rename new_savedirinfo to
580         savedirinfo.
581         (old_savedirinfo): Remove obsolete function body.
582
583         Support extendbuf buffers larger than SIZE_MAX/2.
584         * lib/extendbuf.c (xextendbuf): New function; extends the buffer,
585         but calls xalloc_die on failure.  On the the other hand, extendbuf
586         returns NULL on failure.
587         (decide_size): If wanted>SIZE_MAX/2, return wanted.  This means
588         that for very large buffers, performance on repeated extension
589         degrades from linear to quadratic (instead of just failing at that
590         point, as before).
591         * lib/savedirinfo.c (xsavedir): Use xextendbuf rather than
592         extendbuf, now that there is a difference in semantics.
593         * find/fstype.c (get_mounted_filesystems): If extendbuf returns
594         NULL, fail (by returning NULL ourselves).
595         (get_mounted_devices):  Likewise.
596
597         * po/vi.po: Update Vietnamese translation.
598         * NEWS: Mention this change.
599
600 2010-04-05  James Youngman  <jay@gnu.org>
601
602         Use set_program_name in regexprops.
603         * lib/regexprops.c: Include "progname.h".  Update function
604         defintions to have a newline before the function name (to comply
605         with the GNU coding standard).  Use set_program_name.
606
607 2010-04-06  James Youngman  <jay@gnu.org>
608
609         Fix several merge errors.
610         * find/defs.h (struct state): Correct type of
611         already_issued_stat_error_msg from boolean to bool.
612         * find/util.c (report_file_err): Likewise with parameter
613         is_target_file.
614         * find/pred.c: Include "areadlink.h".
615         (do_fprintf): nonfatal_file_error should be
616         nonfatal_target_file_error.
617         (match_lname): Likewise.
618
619         Update some translations.
620         * po/cs.po: Update Czech translation.
621         * po/nl.po: Update Dutch translation.
622         * po/pl.po: Update Polish translation.
623         * po/ru.po: Update Russian translation.
624
625         * import-gnulib.config (modules): Use the getopt-gnu module from
626         gnulib rather than the (obsolete) getopt module.
627
628         Remove form-feeds.
629         * find/find.c: Remove form-feed characters.
630         * find/ftsfind.c: Likewise.
631         * find/parser.c: Likewise.
632         * find/pred.c: Likewise.
633         * find/tree.c: Likewise.
634         * find/util.c: Likewise.
635         * locate/locate.c: Likewise.
636         * xargs/xargs.c: Likewise.
637
638 2010-04-05  James Youngman  <jay@gnu.org>
639
640         Use bool instead of the previous typedef boolean.
641         * find/defs.h: Don't create typedef "boolean"; use the standard
642         type bool.  Update other declarations accordingly.
643         * find/find.c: Update declarations and function definitions to use
644         bool.
645         * find/ftsfind.c: Likewise.
646         * find/parser.c: Likewise.
647         * find/pred.c: Likewise.
648         * find/tree.c: Likewise.
649         * find/util.c: Likewise.
650         * locate/locate.c: Likewise.
651         * xargs/xargs.c: Likewise.
652
653         Make use of gnulib's areadlinkat.
654         * lib/listfile.c: #include "areadlink.h" but not "dircallback.h",
655         since we no longer need to use get_link_name_at.
656         Don't include xalloc.h, since we don't need it.
657         (get_link_name_at): Delete.
658         (get_link_name_cb): Delete.
659         (get_link_name): Delete.
660         * lib/listfile.h: Remove declaration of get_link_name_at.
661         * find/pred.c (match_lname): Use areadlinkat instead of
662         get_link_name_at.
663
664         Use bool instead of the previous typedef boolean.
665         * find/defs.h: Don't create typedef "boolean"; use the standard
666         type bool.  Update other declarations accordingly.
667         * find/find.c: Update declarations and function definitions to use
668         bool.
669         * find/ftsfind.c: Likewise.
670         * find/parser.c: Likewise.
671         * find/pred.c: Likewise.
672         * find/tree.c: Likewise.
673         * find/util.c: Likewise.
674         * locate/locate.c: Likewise.
675         * xargs/xargs.c: Likewise.
676
677         Don't issue an error message twice for the same target file.
678         * find/defs.h (struct state): New member,
679         already_issued_stat_error_msg, used to de-duplicate error
680         messages.  If it is true, we already issued an error message for
681         the current target file.
682         Declare fatal_target_file_error, fatal_nontarget_file_error,
683         nonfatal_target_file_error, nonfatal_nontarget_file_error.
684         Between them, they replace fatal_file_error and
685         nonfatal_file_error.  The *target_file_error versions are
686         de-duplicated and the nontarget_file_error_versions are not.
687         * find/util.c (nonfatal_nontarget_file_error): Implement.
688         (fatal_nontarget_file_error): Implement.
689         (nonfatal_target_file_error): Implement.
690         (fatal_target_file_error): Implement.
691         (fatal_file_error): Remove.
692         (nonfatal_file_error): Remove.
693         (error_severity): Define error_severity (moved from ftsfind.c)
694         (get_statinfo): Call nonfatal_target_file_error in order to avoid
695         a duplicate message.  ALso call error_severity after a different
696         call to error to preserve the constraint that we exit with a
697         nonzero status if we issue a diagnostic.
698         (cleanup): Call nonfatal_nontarget_file_error instead of
699         nonfatal_file_error.
700         * find/tree.c (build_expression_tree): Initialise
701         state.already_issued_stat_error_msg.
702         * find/find.c (main): Initialise state.already_issued_stat_error_msg.
703         (wd_sanity_check): Call fatal_target_file_error instead of
704         fatal_file_error.
705         (chdir_back): Call fatal_nontarget_file_error instead of
706         fatal_file_error.
707         (process_path): Initialise state.already_issued_stat_error_msg.
708         * find/ftsfind.c (consider_visiting): Call
709         nonfatal_target_file_error instead of calling error directly.
710         (find): Call error_severity to ensure exit status is nonzero after
711         a call to error.
712         (main): Initialise state.already_issued_stat_error_msg.
713         (error_severity): Move to util.c.
714         * find/parser.c (collect_arg_stat_info): Call
715         fatal_target_file_error instead of fatal_file_error.
716         (parse_newerXY): Likewise.
717         (parse_samefile): Likewise.
718         (parse_samefile): Likewise.
719         (open_output_file): Call fatal_nontarget_file_error instead of
720         fatal_file_error.
721         * find/pred.c (checked_fprintf): Likewise.
722         (checked_print_quoted): Likewise.
723         (checked_fwrite): Likewise.
724         (checked_fflush): Likewise.
725         * find/sharefile.c (entry_free): Likewise.
726
727 2010-04-04  Martin von Gagern  <Martin.vGagern@gmx.net>
728
729         Fix Savannah bug #27213: avoid failed assertions for
730         non-executable directories.
731         (consider_visiting): Continue (after issuing an error message)
732         even if ent->fts_info == FTS_NS.
733         * find/util.c (get_statinfo): If we cannot stat the file, issue a
734         diagnostic, but continue anyway.
735         * find/ftsfind.c (consider_visiting): Don't assert-fail if
736         ent->fts_info == FTS_NSOK.  Don't assert-fail if state.type is
737         nonzero.
738
739 2010-04-04  James Youngman  <jay@gnu.org>
740
741         Fix Savannah bug #29435: fd_is_cloexec does not work on Fedora
742         buildhosts.
743         Fix open_cloexec on hosts which ignore O_CLOEXEC (i.e. old kernels).
744         * lib/fdleak.c (o_cloexec_works): New function, detects whether
745         the open flag O_CLOEXEC has any effect.
746         (open_cloexec): Call o_cloexec_works, just once, to find out
747         whether O_CLOEXEC is effective.  If not, set the close-on-exec
748         flag on fds by calling set_cloexec_flag.
749         * NEWS: Mention this bugfix.
750
751         Use bool instead of the previous typedef boolean.
752         * find/defs.h: Don't create typedef "boolean"; use the standard
753         type bool.  Update other declarations accordingly.
754         * find/find.c: Update declarations and function definitions to use
755         bool.
756         * find/ftsfind.c: Likewise.
757         * find/parser.c: Likewise.
758         * find/pred.c: Likewise.
759         * find/tree.c: Likewise.
760         * find/util.c: Likewise.
761         * locate/locate.c: Likewise.
762         * xargs/xargs.c: Likewise.
763
764 2010-04-05  Jim Meyering  <meyering@redhat.com>
765
766         frcode: avoid link failure due to multiple program_name definition
767         * locate/frcode.c: Include "progname.h".
768         (program_name): Remove two declarations.
769         Now the definition comes from gnulib.
770
771 2010-04-04  James Youngman  <jay@gnu.org>
772
773         Don't return int to represent a boolean value.
774         * find/defs.h: fd_leak_check_is_enabled should return boolean, not
775         int.  Likewise following_links and digest_mode.
776         * lib/buildcmd.h: Likewise for bc_args_exceed_testing_limit.
777         Also #include <stdbool.h>.
778         * find/util.c (fd_leak_check_is_enabled): Now returns boolean.
779         * find/util.c (following_links): Likewise.
780         * find/util.c (digest_mode): Likewise.
781         * lib/buildcmd.c (bc_args_exceed_testing_limit): Likewise.
782         * find/find.c (get_current_dirfd): Indent definition correctly.
783         * find/util.c (get_start_dirfd): Likewise.
784
785         Fix Savannah bug #29435: fd_is_cloexec does not work on Fedora
786         buildhosts.
787         Fix open_cloexec on hosts which ignore O_CLOEXEC (i.e. old kernels).
788         * lib/fdleak.c (o_cloexec_works): New function, detects whether
789         the open flag O_CLOEXEC has any effect.
790         (open_cloexec): Call o_cloexec_works, just once, to find out
791         whether O_CLOEXEC is effective.  If not, set the close-on-exec
792         flag on fds by calling set_cloexec_flag.
793         * NEWS: Mention this bugfix.
794
795 2010-04-03  James Youngman  <jay@gnu.org>
796
797         Move on from 4.5.7.
798         * configure.ac: Update version number again, to 4.5.8-git.
799         * NEWS: Likewise.
800
801         Prepare for release of findutils-4.5.7.
802         * configure.ac: Update version number.
803         * NEWS: Mention the translation changes.  Update version number.
804
805         Accelerate find/testsuite/find.posix/exec-nogaps.exp.
806         * find/testsuite/config/unix.exp (optimisation_levels_to_test):
807         New function, decides which optimisation levels we shuld run find
808         at for the current test.  Set $OPTIMISATION_LEVELS to control
809         this.
810         (find_start): Call optimisation_levels_to_test to determine which
811         optimisation levels to run find at.
812         * find/testsuite/find.posix/exec-nogaps.exp: Run the test only at
813         -O3 (but for both oldfind and ftsfind).
814
815         Correct the format of copyright statements, and add 2010.
816         * lib/fdleak.h: Correct the format of the copyright statement.
817         * po/vi.po: Likewise.
818         * lib/safe-atoi.h: Likewise.
819         * locate/locate.c: Likewise.
820         * po/ca.po: Likewise.
821         * po/gl.po: Likewise.
822         * po/fi.po: Likewise.
823         * po/it.po: Likewise.
824         * po/findutils.pot: Fill in the boilerplate in the header.
825
826         Update copyright years.
827         * find/defs.h: Update copyright years.
828         * find/finddata.c: Likewise.
829         * find/sharefile.h: Likewise.
830         * lib/buildcmd.h: Likewise.
831         * lib/dircallback.h: Likewise.
832         * lib/extendbuf.h: Likewise.
833         * lib/findutils-version.h: Likewise.
834         * lib/gnulib-version.h: Likewise.
835         * lib/listfile.h: Likewise.
836         * lib/nextelem.c: Likewise.
837         * lib/nextelem.h: Likewise.
838         * lib/printquoted.h: Likewise.
839         * lib/regextype.h: Likewise.
840         * lib/savedirinfo.h: Likewise.
841         * lib/strspn.c: Likewise.
842         * lib/waitpid.c: Likewise.
843         * locate/locatedb.h: Likewise.
844         * m4/mkinstalldirs.m4: Likewise.
845         * m4/noreturn.m4: Likewise.
846         * build-aux/check-testfiles.sh: Likewise.
847         * build-aux/src-sniff.py: Likewise.
848         * import-gnulib.sh: Likewise.
849         * locate/testsuite/config/unix.exp: Likewise.
850         * locate/updatedb.sh: Likewise.
851         * xargs/testsuite/config/unix.exp: Likewise.
852
853         Add the update-copyright gnulib module.
854         * import-gnulib.config (maintainer_modules): Separate out the
855         modules primarily useful for maintainer activities.  Add
856         'update-copyright' to this.
857         * build-aux/.cvsignore: Ignore update-copyright, since it's
858         installed by gnulib.
859         * build-aux/.gitignore: Likewise.
860
861         Ignore generated files for the convenience of non-VPATH users.
862         * lib/.gitignore: Ignore object and archive files.
863         * find/.gitignore: Likewise.
864         * locate/.gitignore: Ignore object files.
865
866 2010-04-02  James Youngman  <jay@gnu.org>
867
868         Check for accidental modifications to the wrong section of the
869         NEWS file.
870         * cfg.mk (local-checks-to-skip): Remove sc_immutable_news.
871         (old_NEWS_hash): add existing hash (from "make update-NEWS-hash").
872
873         * cfg.mk: Append the names of checks to skip to
874         local-checks-to-skip rather than inventing 7 new variables.
875
876         Don't include quote.h/quotearg.h where it is not used.
877         * find/find.c: Don't include "quote.h", it's not used.
878         * find/ftsfind.c: Likewise.
879         * find/parser.c: Likewise.
880         * locate/locate.c: Likewise.
881         * locate/word_io.c: Likewise.
882         * cfg.mk (skip_dunno): Enable check sc_prohibit_quote_without_use.
883         * find/find.c: Don't include "quotearg.h", it's not used.
884         * lib/fdleak.c: Likewise.
885
886         Use set_program_name() to remember the programs' names.
887         * cfg.mk *skip(defer): Enable sc_program_name.  Remove the
888         now-unused variable skip_defer.
889         * find/ftsfind.c: Include "program_name.h".
890         (main): Call set_program_name.
891         * find/find.c: Include "program_name.h".
892         (main): Call set_program_name.
893         * locate/locate.c: Include "program_name.h".
894         (dolocate): Call set_program_name.
895         Remove global variable program_name.
896         * locate/bigram.c: Include "program_name.h".
897         Remove global variable "program_name".
898         (main): Call set_program_name.
899         * locate/frcode.c: Include "program_name.h".
900         (main): Call set_program_name.
901         * xargs/xargs.c (main): Call set_program_name.
902         Include "program_name.h".
903         Remove global variable program_name.
904         * find/finddata.c: Remove global variable program_name.
905         * find/defs.h: No longer need declaration of program_name.
906         * find/util.c: Include "program_name.h".
907
908         Use named constants for xargs exit codes.
909         * xargs/xargs.c (child_error): Use EXIT_SUCCESS instead of 0.
910         (enum XargsStatusValues): introduce named constants for the
911         various things that cause speicific exit codes.
912         (enum  ClientStatusValues): Also introduce named constants for the
913         child's exit status.
914         (get_char_oct_or_hex_escape): Use EXIT_FAILURE instead of 1.
915         (get_input_delimiter): Likewise.
916         (main): Likewise.
917         (read_line): Likewise.
918         (read_string): Likewise.
919         (print_args): Likewise.
920         (xargs_do_exec): Likewise.
921         (wait_for_proc): Likewise.
922         (wait_for_proc): Use enum XargsStatusValues for exit codes.
923         (parse_num): Use EXIT_FAILURE instead of 1.
924
925         Avoid using magic numbers as exit statuses.
926         * cfg.mk (skip_defer): Enable sc_prohibit_magic_number_exit.
927         * doc/find-maint.texi (Security): Avoid error (1, ...) in the
928         example patch.
929         * find/find.c (main): Use exit status EXIT_FAILURE instead of 1.
930         (wd_sanity_check): Likewise.
931         (safely_chdir_lstat): Likewise.
932         (process_dir): Likewise.
933         * find/fstype.c (must_read_fs_list): Likewise.
934         * find/ftsfind.c (main): Likewise.
935         (main): Likewise.
936         * find/parser.c (check_option_combinations): Use exit status
937         EXIT_FAILURE instead of 1.
938         (parse_group): Likewise.
939         (parse_help): Use exit status EXIT_SUCCESS instead of 0.
940         (parse_version): Likewise.
941         (fnmatch_sanitycheck): Use exit status EXIT_FAILURE instead of 1.
942         (insert_depthspec): Likewise.
943         (parse_newerXY): Likewise.
944         (non_posix_mode): Likewise.
945         (parse_perm): Likewise.
946         (insert_regex): Likewise.
947         (parse_size): Likewise.
948         (parse_show_control_chars): Likewise.
949         (parse_used): Likewise.
950         (parse_user): Likewise.
951         (parse_context): Likewise.
952         (insert_type): Likewise.
953         (insert_fprintf): Likewise.
954         (make_segment): Likewise.
955         (check_path_safety): Likewise.
956         (new_insert_exec_ok): Likewise.
957         (get_relative_timestamp): Likewise.
958         (parse_time): Likewise.
959         * find/tree.c (get_expr): Use exit status EXIT_FAILURE instead of 1.
960         (scan_rest): Likewise.
961         (get_pred_cost): Likewise.
962         (get_pred_cost): Likewise.
963         (build_expression_tree): Likewise.
964         (get_new_pred_chk_op): Likewise.
965         * find/pred.c (launch): Use exit status EXIT_FAILURE instead of 1.
966         * find/util.c (process_debug_options): Use exit status
967         EXIT_SUCCESS instead of 0.
968         (process_optimisation_option): Use exit status EXIT_FAILURE
969         instead of 1.
970         (set_option_defaults): Likewise.
971         * lib/buildcmd.c (exceeds): Likewise.
972         (bc_do_exec): Likewise.
973         (bc_push_arg): Likewise.
974         * lib/nextelem.c: Remove test code.
975         * lib/safe-atoi.c (safe_atoi): Use exit status EXIT_FAILURE
976         instead of 1.
977         * lib/regextype.c (get_regex_type): Use exit status EXIT_FAILURE
978         instead of 1.  Include <stdlib.h>, for EXIT_FAILURE.
979         * locate/locate.c (set_max_db_age): Use exit status EXIT_FAILURE
980         instead of 1.
981         (set_max_db_age): Likewise.
982         (toolong): Likewise.
983         (visit_locate02_format): Likewise.
984         (search_one_database): Likewise.
985         (drop_privs): Likewise.
986         * locate/frcode.c (get_seclevel): Use exit status EXIT_FAILURE
987         instead of 1.
988         (outerr): Likewise.
989         (main): Likewise.
990         * locate/code.c (inerr): Use exit status EXIT_FAILURE instead of
991         1.
992         (outerr): Likewise.
993         * locate/word_io.c (getword): Use exit status EXIT_FAILURE instead of 1.
994
995         Avoid sc_prohibit_stat_st_blocks check, since it is broken.
996         * cfg.mk (skip_broken_checks): Skip sc_prohibit_stat_st_blocks.
997
998         Enable syntax checker sc_the_the, detecting doubled 'the'.
999         * cfg.mk (false_positives): Enable syntax checker sc_the_the
1000         * build-aux/src-sniff.py (checkers): Avoid false positive with
1001         sc_the_the.
1002
1003         Avoid false positives for sc_prohibit_atoi_atof.
1004         * find/util.c (set_option_defaults): Avoid false positive with
1005         sc_prohibit_atoi_atof.
1006         (check_nofollow): Likewise.
1007
1008         Avoid sscanf.
1009         * lib/fdleak.c (get_proc_max_fd): Use safe_atoi to do string to
1010         int conversion, instead of sscanf.  Skip '.' and '..'.
1011         * cfg.mk (skip_defer): Enable the sc_prohibit_atoi_atof check.
1012
1013         * po/POTFILES.in: Remove source files we don't maintain any more.
1014         Also remove files which exist but have no translated messages
1015         (dircallback.c, listfile.c).
1016         * lib/listfile.c: Don't include libintl, since there are no
1017         translated messages in this file.
1018         * lib/dircallback.c: Likewise.
1019
1020         Move safe_atoi out into a separate module.
1021         * find/parser.c: Include "safe-atoi.h".  Remove the body of safe_atoi.
1022         (parse_group): pass options.err_quoting_style to safe_atoi.
1023         (insert_depthspec): Likewise.
1024         (parse_user): Likewise.
1025         * lib/safe-atoi.h: New file.
1026         * lib/safe-atoi.c: New file.  Add parameter for quoting style (to
1027         avoid an external reference to the "options"struct).
1028         * lib/Makefile.am (libfind_a_SOURCES): Add safe-atoi.c and
1029         safe-atoi.h.
1030
1031         Avoid false positives for the sc_prohibit_test_minus_ao syntax check.
1032         * doc/find.texi (Updating A Timestamp File): Work around a syntax
1033         check designed to prevent the use of "test X -a Y".
1034         * find/find.1: Likewise.
1035
1036         * find/ftsfind.c: We don't use anything from xalloc.h, so don't
1037         #include it.
1038
1039         Eliminate some unused function result warnings.
1040         * lib/unused-result.h: New file, defines function attribute macro
1041         __attribute_warn_unused_result__.
1042         * lib/Makefile.am (EXTRA_DIST): Add unused-result.h.
1043         * find/ftsfind.c (find): Issue a diagnostic if fts_close fails,
1044         change return type to bool and return false for this case.  Add
1045         __warn_unused_result__ attribute.
1046         (process_all_startpoints): Likewise (except no need for second
1047         diagnostic).
1048         (main): If process_all_startpoints failed, don't do the cleanup
1049         operations because we don't know what subdirectory we're in.
1050
1051         * find/util.c (fd_leak_check_is_enabled): Avoid implicit
1052         pointer-to-int conversion.
1053         * lib/buildcmd.c: #include <stdlib.h> for declaration of free.
1054
1055         Avoid false positives for the sc_prohibit_test_minus_ao syntax check.
1056         * doc/find.texi (Updating A Timestamp File): Work around a syntax
1057         check designed to prevent the use of "test X -a Y".
1058         * find/find.1: Likewise.
1059
1060         * find/ftsfind.c: We don't use anything from xalloc.h, so don't
1061         #include it.
1062
1063         Eliminate some unused function result warnings.
1064         * lib/unused-result.h: New file, defines function attribute macro
1065         __attribute_warn_unused_result__.
1066         * lib/Makefile.am (EXTRA_DIST): Add unused-result.h.
1067         * find/ftsfind.c (find): Issue a diagnostic if fts_close fails,
1068         change return type to bool and return false for this case.  Add
1069         __warn_unused_result__ attribute.
1070         (process_all_startpoints): Likewise (except no need for second
1071         diagnostic).
1072         (main): If process_all_startpoints failed, don't do the cleanup
1073         operations because we don't know what subdirectory we're in.
1074
1075         * find/util.c (fd_leak_check_is_enabled): Avoid implicit
1076         pointer-to-int conversion.
1077         * lib/buildcmd.c: #include <stdlib.h> for declaration of free.
1078
1079         Fix some space-followed-by-tab sequences.
1080         * NEWS: Change space-tab sequences to just spaces.
1081         * build-aux/check-testfiles.sh (main): Likewise
1082         * build-aux/src-sniff.py (checkers): Likewise.
1083         * find/Makefile.am: Likewise.
1084         * find/testsuite/find.posix/sv-bug-25359.exp: Likewise.
1085         * import-gnulib.sh (check_merge_driver): Likewise.
1086         * m4/withfts.m4 (FIND_WITH_FTS): Likewise.
1087         * cfg.mk (false_positives): Explain why we can't enable the
1088         sc_space_tab check (xargs .xo test files).
1089
1090         * cfg.mk: Explain that we cannot enable the sc_texinfo_acronym
1091         syntax check right now, since the perm.texi file uses
1092         @acronym{GNU} but we try to keep that in sync. with coreutils.
1093
1094         Mark error messages for translation.
1095         * find/parser.c (safe_atoi): Likewise.
1096         * find/pred.c (pred_context): Likewise.
1097         (do_fprintf): Likewise.
1098         * xargs/xargs.c (xargs_do_exec): Translate error message.
1099         (xargs_do_exec): Likewise.
1100         * lib/buildcmd.c (exceeds): Likewise.
1101
1102         Add customisation of the behaviour of "make syntax-check".
1103         * cfg.mk: New file; configuration file for the maintainer-makefile
1104         provided by gnulib.
1105
1106         * import-gnulib.config (modules): Add maintainer-makefile.
1107
1108         Various coding standard fixes.
1109         * m4/withfts.m4: Quote the first argument of AC_DEFINE.
1110         * lib/regextype.c: Don't use HAVE_CONFIG_H.
1111         * doc/find-maint.texi: Remove RCS keywords (they were in an
1112         example security vulnerability announcement).
1113
1114         Don't define S_IS*; include <sys/stat.h> instead.
1115         * lib/modetype.h: Remove (all it does is define S_IS*).
1116         * lib/Makefile.am (EXTRA_DIST): Remove modetype.h.
1117         * lib/listfile.c: Don't define S_IS* macros.
1118         * find/pred.c: Don't include "modetype.h".
1119         * find/parser.c: Likewise.
1120         * find/ftsfind.c: Likewise.
1121         * find/fstype.c: Likewise.
1122         * find/find.c: Likewise.
1123
1124         * m4/withfts.m4: Quote the first argument of AC_DEFINE.
1125
1126         Coding standard fix: "Warning" should be "WARNING".
1127         * find/find.c (dirchange_is_fatal): Change "Warning" to "WARNING".
1128         * find/ftsfind.c (consider_visiting): Likewise.
1129         * find/pred.c (pred_newerXY): Likewise.
1130         * find/util.c (get_statinfo): Likewise.
1131         (hook_fstatat): Likewise.
1132         * locate/word_io.c (decode_value): Likewise.
1133         * xargs/xargs.c (main): Change "Warning" to "warning".
1134         (read_line): Change "Warning" to "WARNING".
1135         (wait_for_proc): Likewise.
1136
1137         Remove useless if conditionals before calls to 'free'.
1138         * lib/nextelem.c (next_element): Remove useless if-before-free.
1139         * lib/buildcmd.c (bc_do_exec): Likewise.
1140         * find/find.c (process_dir): Likewise.
1141
1142         * import-gnulib.sh (usage): Defeat the simple GPL version check
1143         of maint.mk, since it's trying to identify GPL2 licenses.  Since
1144         the 'rehack' script converts v2 licenses into v3, we get a false
1145         positive for v2.  So, amusingly, we use the same hack that
1146         maint.mk uses to avoid a false positive on itself: spurious
1147         quotes.
1148
1149         Switch from GNU Free Documentation License 1.2 to 1.3.
1150         * NEWS: Update GFDL version.
1151         * README-hacking: Likewise.
1152         * doc/find-maint.texi: Likewise.
1153         * lib/regexprops.c: Likewise (though the license being changed is
1154         the license for the output).
1155
1156         * NEWS: Update copyright years.
1157
1158 2010-04-01  James Youngman  <jay@gnu.org>
1159
1160         Change error (1, ...) to error (EXIT_FAILURE, ...).
1161         * find/find.c: Change error (1, ...) to error (EXIT_FAILURE, ...).
1162         * find/fstype.c: Likewise.
1163         * find/ftsfind.c: Likewise.
1164         * find/parser.c: Likewise.
1165         * find/pred.c: Likewise.
1166         * find/tree.c: Likewise.
1167         * find/util.c: Likewise.
1168         * locate/code.c: Likewise.
1169         * locate/frcode.c: Likewise.
1170         * locate/locate.c: Likewise.
1171         * locate/word_io.c: Likewise.
1172         * xargs/xargs.c: Likewise.
1173         * lib/buildcmd.c: Likewise.  Also include <stdlib.h>.
1174         * lib/regextype.c: Likewise (both).
1175
1176         Assume C89 (or C99) C headers.  Assume working <ctype.h>.
1177         * xargs/xargs.c: Unconditionally include <ctype.h>.  Assume
1178         isblank(c) is defined.  Assume memcpy() has a prototype in
1179         <string.h>.
1180         * import-gnulib.config (modules): Import gnulib's ctype module.
1181
1182         Optimise -fstype NOTUSED to -false at -O2.
1183         * find/parser.c: Include mountlist.h.
1184         (insert_false): New function, inserts a -false predicate.
1185         (parse_false): Use insert_false.
1186         (is_used_fs_type): New function, determines if any mounted
1187         filesystem is of the named type.
1188         (parse_fstype): At optimisation level 2 and above, -fstpe FOO
1189         is converted to -false if no mounted filesytem is of type FOO.
1190         * find/find.1: Document this optimisation.
1191         * doc/find.texi (Optimisation Options): Likewise.
1192         * NEWS: Mention this change.
1193
1194         Updated copyright years to add 2010.
1195         * find/find.c: Add 2010.
1196         * find/fstype.c: Add 2010.
1197         * find/ftsfind.c: Add 2010.
1198         * find/parser.c: Add 2010.
1199         * find/pred.c: Add 2010.
1200         * find/sharefile.c: Add 2010.
1201         * find/testsuite/config/unix.exp: Add 2010.
1202         * find/tree.c: Add 2010.
1203         * find/util.c: Add 2010.
1204         * locate/bigram.c: Add 2010.
1205         * locate/frcode.c: Add 2010.
1206         * xargs/xargs.c: Add 2010.
1207
1208         Coding style fixes: space after function names.
1209         * lib/buildcmd.c: Insert a space between function name and open
1210         parenthesis.
1211         * lib/dircallback.c: Likewise.
1212         * lib/extendbuf.c: Likewise.
1213         * lib/fdleak.c: Likewise.
1214         * lib/findutils-version.c: Likewise.
1215         * lib/forcefindlib.c: Likewise.
1216         * lib/listfile.c: Likewise.
1217         * lib/printquoted.c: Likewise.
1218         * lib/qmark.c: Likewise.
1219         * lib/regexprops.c: Likewise.
1220         * lib/regextype.c: Likewise.
1221         * lib/savedirinfo.c: Likewise.
1222         * locate/code.c: Likewise.
1223         * locate/frcode.c: Likewise.
1224         * locate/locate.c: Likewise.
1225         * locate/word_io.c: Likewise.
1226
1227 2010-03-31  James Youngman  <jay@gnu.org>
1228
1229         Coding style fixes: space after function names.
1230         * find/util.c: Insert a space between function name and open
1231         parenthesis.
1232         * find/ftsfind.c: Likewise.
1233         * find/fstype.c: Likewise.
1234         * find/util.c: Likewise.
1235         * find/tree.c: Likewise.
1236         * find/sharefile.c: Likewise.
1237         * find/pred.c: Likewise.
1238         * find/parser.c: Likewise.
1239         * xargs/xargs.c: Likewise.
1240
1241         Move version number on to 4.5.7-git, so that we can make test
1242         releases.
1243         * configure.ac: Update version number.
1244         * NEWS: Likewise.
1245         * Makefile.am (AUTOMAKE_OPTIONS): Return to "gnits" rules.
1246
1247         Mention additional bugfixes.
1248         * NEWS: Mention that Savannah bug #29089 was also fixed in
1249         4.5.6b.
1250
1251         Prepare for release of findutils-4.5.6b
1252         This release is identical to 4.5.6 apart from the version number
1253         and the fact that it was generated by automake version 1.11.1 in
1254         order to avoid issues with CVE-2009-4029.
1255         * configure.ac: Update version number.
1256         * NEWS: Update version number.  Mention that Savannah bug #29089
1257         was also fixed in 4.5.6b.
1258         * Makefile.am: switch to 'gnu' option ('gnits' forbids the 'b'
1259         suffix).
1260
1261 2010-03-30  James Youngman  <jay@gnu.org>
1262
1263         Prepare for release of findutils-4.5.6
1264         * configure.ac: Update version number.
1265         * NEWS: Update version number.
1266
1267         Support O_CREAT in open_cloexec.
1268         * lib/fdleak.c: Include <stdarg.h> and "cloexec.h".
1269         (open_cloexec): Support O_CREAT.  Use O_CLOEXEC if it is available.
1270         (O_CLOEXEC): #define to 0 if not already #defined.
1271         * lib/fdleak.h: Update prototype of open_cloexec to allow mode to
1272         be passed.
1273
1274         * import-gnulib.config (modules): Import modules open (for
1275         PROMOTED_MODE_T) and stdbool (for 'true').
1276
1277         Tolerate the absence of getrusage.
1278         * configure.ac: Check for <sys/resource.h> and the getrusage
1279         function.
1280         * lib/fdleak.c: Don't #include <sys/resource.h> if we don't have it.
1281         (get_max_fd): If neither /proc/self/fd not getrusage is available,
1282         return _POSIX_OPEN_MAX.
1283
1284         Detect leaks in file descriptors 0, 1, 2.
1285         * lib/fdleak.c: (remember_non_cloexec_fds): Also check for leaks
1286         in file descriptors 0, 1, 2, just in case the caller closed them.
1287         (find_first_leaked_fd): Likewise.
1288
1289 2009-08-16  James Youngman  <jay@gnu.org>
1290
1291         Bugfixes to the handling of %Z in the Red Hat SELinux patch.
1292         * find/pred.c (do_fprintf): If getfilecon fails, print the
1293         relevant segment anyway, with the file context expanding to an
1294         empty string.
1295         * find/parser.c (make_segment): For %Z, set the cost to
1296         NeedsAccessInfo.
1297
1298 2009-08-11  Kamil Dudka  <kdudka@redhat.com>
1299
1300         find: add SELinux support
1301         * find/defs.h: Add SELinux related definitions.
1302         * find/tree.c: Add -context predicate to lookup.
1303         * find/pred.c: Handle %Z printf directive.
1304         * find/parser.c: Parse -context predicate and %Z printf directive.
1305         * find/find.1: Mention -context predicate and %Z printf directive.
1306         * doc/find.texi: Mention -context predicate and %Z printf directive.
1307         * find/Makefile.am: Add SELinux libraries.
1308         * import-gnulib.config: Require module selinux-at and the corresponding
1309         version of gnulib.
1310
1311 2010-03-29  James Youngman  <jay@gnu.org>
1312
1313         Fix file descriptor leaks.  This fixes Savannah bug bug #27375.
1314         * find/util.c (fd_leak_check_is_enabled): New function; returns
1315         nonzero if the environment variable GNU_FINDUTILS_FD_LEAK_CHECK is
1316         enabled.  Setting this variable enables the file descriptor leak
1317         checker.
1318         * find/defs.h: Declare fd_leak_check_is_enabled.
1319         * import-gnulib.config (gnulib_version): Update to more recent
1320         version of gnulib.  Import the cloexec module too.
1321         * lib/fdleak.c: New file; a module for detecting file descriptor
1322         leaks.   Also define an open_cloexec() function.
1323         * lib/fdleak.h: Declare the global functions defined in fdleak.c.
1324         * lib/Makefile.am (libfind_a_SOURCES): Add fdleak.c.
1325         * find/find.c (main): Call remember_non_cloexec_fds in order to
1326         detect file descriptor leaks.
1327         (main): set FD_CLOEXEC on starting_desc.
1328         (safely_chdir_lstat): Likewise for dotfd.
1329         (safely_chdir_nofollow): Likewise for fd.
1330         * find/ftsfind.c (inside_dir): set FD_CLOEXEC on curr_fd.
1331         (main): Call remember_non_cloexec_fds in order to detect file
1332         descriptor leaks.
1333         (main): set FD_CLOEXEC on starting_desc.
1334         * find/pred.c (launch): before we exec the child, call
1335         complain_about_leaky_fds in order to complain about non-FD_CLOEXEC
1336         file descriptors that weren't open when the program was run.
1337         * find/sharefile.c (sharefile_fopen): Set FD_CLOEXEC on the files
1338         we open.
1339         * import-gnulib.sh (run_gnulib_tool): Pass the --local-dir option
1340         in order to apply any required patches (none needed right now).
1341         * find/testsuite/config/unix.exp: Set environment variable
1342         $GNU_FINDUTILS_FD_LEAK_CHECK to enable the file descriptor leak
1343         check for all tests.
1344         * find/testsuite/find.gnu/no-fdleak-test.exp: New test; runs find
1345         with the fd leak detector turned off, in order to make sure there
1346         are no (e.g.) crashing bugs when that happens.
1347         * find/testsuite/find.gnu/no-fdleak-test.xo: Expected output for
1348         the new test.
1349         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add no-fdleak-test.exp
1350         (EXTRA_DIST_XO): Add no-fdleak-test.xo.
1351
1352         * NEWS: Mention these changes.
1353
1354 2010-03-30  James Youngman  <jay@gnu.org>
1355
1356         Add missing exec-nogaps.{exp,xo}.
1357         * find/testsuite/Makefile.am (EXTRA_DIST_XO): Add exec-nogaps.xo.
1358         (EXTRA_DIST_EXP): Add exec-nogaps.exp.
1359
1360 2010-02-25  James Youngman  <jay@gnu.org>
1361
1362         Explain the problems with "-name a/b" and "-path foo/".
1363         * find/find.1 (-iname): We already refer to -name, so duplicate
1364         less text.
1365         (-name): Explain that -name a/b will never match anything.
1366         * doc/find.texi (Base Name Patterns): Explain that -name a/b will
1367         never match anything.
1368         (Full Name Patterns): Fix typo.
1369
1370 2010-02-22  James Youngman  <jay@gnu.org>
1371
1372         * xargs/xargs.1: Simplify the wording in the description of "xargs
1373         -i".
1374
1375 2010-02-21  James Youngman  <jay@gnu.org>
1376
1377         Update #include directives for the openat module, to comply with
1378         recent POSIX-compliance changes.
1379         * find/find.c: Don't include <openat.h>.
1380         * find./ftsfind.c: Likewise.
1381         * find/pred.c: Likewise; include <unistd.h>.
1382         * find/util.c: Don't include <openat.h>; include <sys/stat.h>.
1383
1384         * import-gnulib.config (gnulib_version): Update to current version
1385         of gnulib.
1386         * build-aux/.cvsignore: Ignore new files built by gnulib.
1387         * build-aux/.gitignore: Likewise.
1388
1389 2010-02-20  James Youngman  <jay@gnu.org>
1390
1391         Fix Savannah bug #27846: assertion failure in xargs.c on AIX.
1392         * xargs/xargs.c (smaller_of): New function, returns the smaller of
1393         its two size_t arguments.
1394         (main): Instead of asserting that the value of bc_ctl.arg_max is
1395         smaller than some value, simply adjust the value if necessary.
1396         * NEWS: Mention this change.
1397
1398         Fix Savannah bug#28872, Mistake in "Problems with -exec and filenames"
1399         * doc/find.texi (Problems with -exec and filenames): Add missing
1400         $0 argument in example for sh -c 'something "$@" sh ...
1401         * NEWS: Mention this change.
1402
1403         Fix Savannah bug# 28824: "-ctime x" yields "missing argument to
1404         `-ctime'".
1405         * find/parser.c (parse_fls): If the argument is invalid, reverse
1406         the change that collect_arg() made to *arg_ptr (that is, don't
1407         consume the argument).
1408         (parse_fprint0): Likewise.
1409         (parse_gid): Likewise.
1410         (parse_group): Likewise.
1411         (parse_inum): Likewise.
1412         (parse_links): Likewise.
1413         (do_parse_xmin): Likewise.
1414         (parse_name): Likewise.
1415         (parse_printf): Likewise.
1416         (parse_uid): Likewise.
1417         (parse_used): Likewise.
1418         (parse_time): Likewise.
1419         * NEWS: mention this change.
1420
1421 2009-12-04  James Youngman  <jay@gnu.org>
1422
1423         Fix Savannah bug #26868: compilation error in pred.c on Solaris
1424         x86_64.
1425         * import-gnulib.config (modules): Include gnulib's math module, to
1426         avoid a compilation error for "-HUGE_VAL" on Solaris x86_64.
1427         * NEWS: Mention this change.
1428
1429 2009-11-29  James Youngman  <jay@gnu.org>
1430
1431         * find/testsuite/find.posix/exec-nogaps.exp: New test for find
1432         -exec   ... {} ; and find -exec ... {} +, both of which simply
1433         ensure that all exec arguments are processed exactly once each.
1434         * find/testsuite/find.posix/exec-nogaps.xo: Expected output file
1435         for the test in exec-nogaps.exp.
1436
1437         Fix Savannah bug#27328, segfault if the initial exec for "find
1438         -exec" fails.  Also Savennah bug #27975: Infinite loop
1439         for -exec [..] {} +.
1440         * lib/buildcmd.h (struct buildcmd_state): Introduce
1441         largest_successful_arg_count and smallest_failed_arg_count in
1442         order to avoid an assumption that we understand how the operatingn
1443         system interprets ARG_MAX and the assumption that the compile-time
1444         ARG_MAX value (or the equivalent from sysconf()) is avtually
1445         correct.
1446         (struct buildcmd_control): Change the calling convention of the
1447         exec callback to allow us to pass the argument list separately.
1448         (bc_args_exceed_testing_limit): declare this new function.
1449         * lib/buildcmd.c (bc_args_complete): New function, NULL-terminates
1450         the argv list.   We use this instead of passing NULL to
1451         bc_push_arg().
1452         (update_limit): New function.  Decides how many arguments to
1453         pass to the invoked command on the next attempt.
1454         (copy_args): Build an argument list containing all the initial
1455         arguments plus some of the other args (the number to be used is
1456         decided by update_limit).
1457         (bc_do_exec): Avoid special-casing the first call to exec.  Use
1458         update_limit to decide how many arguments to pass and copy_args to
1459         build the argument list.  The new form of the loop should fix
1460         Savannah bug #27328.
1461         (bc_push_arg): Drop support for passing NULL as an argument (to
1462         terminate the arg list we just pass in a special argument instead).
1463         (bc_args_exceed_testing_limit): New function, returns nonzero if
1464         the argument list exceeds a testing limit (used for failure
1465         injection by tests).
1466         (exceeds): New support function, implementing part of
1467         bc_args_exceed_testing_limit.
1468         (bc_init_state): Initialise largest_successful_arg_count and
1469         smallest_failed_arg_count.
1470         * find/defs.h (struct exec_val): New member last_child_status.
1471         This stores the status of the most recently completed child.
1472         * find/pred.c (new_impl_pred_exec): Use last_child_status.
1473         (launch): Use the new calling convention for the exec callback.
1474         Set last_child_status.  Call bc_args_exceed_testing_limit() to do
1475         failure injection for unit tests.
1476         * find/util.c (do_complete_pending_execdirs): Call bc_do_exec
1477         rather than calling launch directly in order to allow for breaking
1478         the argument list up if it's too long.
1479         * xargs/xargs.c (xargs_do_exec): Update to use the new caling
1480         convention for the exec callback.
1481         * NEWS: Mention these fixes.
1482
1483 2009-11-09  Jim Meyering  <meyering@redhat.com>
1484
1485         Adjust two xargs diagnostics.
1486         * xargs/xargs.c (print_args): Give a better diagnostic when
1487         failing to open /dev/tty.
1488         (xargs_do_exec): Mark a diagnostic for translation.
1489
1490 2009-11-08  James Youngman  <jay@gnu.org>
1491
1492         Localise some previously non-localised strings.
1493         * find/find.c (init_mounted_dev_list): Pass translatable string
1494         gettext.
1495         (safely_chdir_lstat): Likewise.
1496         * find/fstype.c (must_read_fs_list): Likewise.
1497         * find/parser.c (safe_atoi): Likewise.
1498
1499         Updated a number of translation messages.
1500         * po/it.po: Updated Italian translation.
1501         * po/fi.po: Updated Finnish translation.
1502         * po/vi.po: Updated Vietnamese translation.
1503         * po/hu.po: Updated Hungarian translation.
1504         * po/de.po: Updated German translation.
1505         * po/ru.po: Updated Russian translation.
1506
1507 2009-08-16  James Youngman  <jay@gnu.org>
1508
1509         * lib/check-regexprops.sh: Portability fixes for FreeBSD (mktemp
1510         requires an argument, dialect differences in sed regexes).
1511
1512         Bugfixes to the handling of %Z in the Red Hat SELinux patch.
1513         * find/pred.c (do_fprintf): If getfilecon fails, print the
1514         relevant segment anyway, with the file context expanding to an
1515         empty string.
1516         * find/parser.c (make_segment): For %Z, set the cost to
1517         NeedsAccessInfo.
1518
1519 2009-08-15  James Youngman  <jay@gnu.org>
1520
1521         * import-gnulib.config (gnulib_version): Update to the current
1522         version of gnulib.
1523
1524 2009-07-18  James Youngman  <jay@gnu.org>
1525
1526         Fix up some problems introduced in a manual conflict resolution.
1527         * find/parser.c (insert_path_check): Add missing third argument to
1528         insert_primary_withpred.
1529         (parse_iwholename): Remove redundant extra definition.
1530         (parse_ipath): Likewise.
1531
1532 2009-07-14  James Youngman  <jay@gnu.org>
1533
1534         Fix Savannah bug #27017: find -D opt / -fstype ext3 -print , -quit
1535         coredumps.
1536         * find/tree.c (set_new_parent): Initialise struct
1537         predicate->arg_text to NULL (instead of leaving it uninitialised).
1538         (get_new_pred_noarg): Likewise.
1539         (get_new_pred): Initialise predicate->arg_text to
1540         "ThisShouldBeSetToSomethingElse" to make it easier to notice
1541         bugs.
1542         (get_new_pred_chk_op): Use get_new_pred_noarg.
1543         (print_predicate): Use an if statement instead of
1544         two ternary operators.
1545         * find/util.c (insert_primary_withpred): Accept new argument, arg,
1546         being the argument (if any) of this predicate.  Pass it to
1547         get_new_pred_chk_op.
1548         (insert_primary): Likewise (pass arg to insert_primary_withpred).
1549         (insert_primary_noarg): New function; calls insert_primary with
1550         arg=NULL.
1551         * find/parser.c (collect_arg_stat_info): Add an output parameter;
1552         the filename from which we collected the stat information.
1553         (parse_closeparen, parse_delete, parse_and, parse_or,
1554         parse_comma): Use get_new_pred_noarg.
1555         (parse_cnewer, parse_newer, parse_anewer): Use new
1556         collect_arg_stat_info and insert_primary interface.
1557         (parse_print, parse_prune, parse_nouser, parse_empty): Use
1558         insert_primary_noarg.
1559         (parse_accesscheck, parse_false): Use insert_primary_noarg.
1560         (parse_used, parse_iname, parse_fprint, insert_fprint,
1561         parse_fstype, parse_ilname): Use new collect_arg and
1562         insert_primary interfaces.
1563         (parse_ipath, parse_lname, do_parse_xmin, parse_name, parse_path,
1564         parse_perm, parse_size, parse_user, parse_time): Use new
1565         collect_arg and insert_primary_withpred interface.
1566         (parse_negate, parse_openparen): Use new get_new_pred_chk_op interface.
1567         (parse_newerXY, parse_nogroup): Use new insert_primary interface.
1568         (insert_regex, parse_samefile): Use new insert_primary_withpred
1569         interface.
1570         (insert_type, insert_fprintf, new_insert_exec_ok, insert_num): Use
1571         new insert_primary_withpred interface.
1572         * find/defs.h (struct predicate.arg_text): make const.
1573         Add declarations for new function get_new_pred_noarg and
1574         insert_primary_noarg.  Add 'arg' parameter to get_new_pred_chk_op
1575         and insert_primary_withpred.
1576         * NEWS: Mention the bugfix.
1577
1578 2009-07-12  James Youngman  <jay@gnu.org>
1579
1580         Savannah bug #23920: warn about -path arguments ending in /.
1581         * find/parser.c (insert_path_check): new function; abstracts the
1582         common functionality of parse_path, parse_ipath, parse_wholename,
1583         parse_iwholename.  Also check for a trailing slash and warn about
1584         it (unless $POSIXLY_CORRECT is set).  Don't warn if the pattern
1585         also happens to be a start_point, because those could be matched.
1586         (parse_path, parse_ipath, parse_wholename, parse_iwholename): Use
1587         insert_path_check.
1588         * find/tree.c (is_start_point): new function; returns true if the
1589         indidated string matches a start point.
1590         (num_start_points, start_points): new variables, storing the
1591         starting points listed on the command line.
1592         (build_expression_tree): Set num_start_points and start_points.
1593         * find/defs.h: Declare is_start_point.
1594         * doc/find.texi (Full Name Patterns): Explain that candidate names
1595         for -path, -regex etc. will never end in a slash, so "-path /tmp/"
1596         will never match anything.
1597         * find/find.1: Likewise.
1598
1599         Fix Savannah bug #26327: xargs man page is vague about the number
1600         of times command is executed.
1601         * xargs/xargs.1 (DESCRIPTION): Explain more clearly that the
1602         command will be executed many times.  Indicate that -L can also be
1603         useful with -P.
1604         * NEWS: Mention this change.
1605
1606 2009-07-11  James Youngman  <jay@gnu.org>
1607
1608         * NEWS: Set the version to 4.5.6-git, so that we can make test
1609         releases.
1610
1611 2009-06-11  James Youngman  <jay@gnu.org>
1612
1613         Make import-gnulib.sh faster in the common case where neither
1614         import-gnulib.config nor gnulib itself changed.
1615         * import-gnulib.sh (gnulib_changed): New variable.
1616         (do_checkout): set gnulib_changed=true if the gnulib code didn't
1617         already correspond to our configured version.  Don't use a large
1618         subshell, because we need to set $gnulib_changed and don't want
1619         the value to be discarded.
1620         (main): Run gnulib-tool if gnulib was not at the correct version
1621         or the import-gnulib.config file has changed.
1622
1623 2009-07-10  Reuben Thomas  <rrt@sc3d.org>
1624
1625     Fix quotation punctuation in find manual page, fixing bug #19120.
1626     * find/find.1: Use ` instead of ' at the start of quoted text.  Use
1627     \(aq instead of ' or \' in commands to get a literal straight quote.
1628     Use ` and ' instead of `` and '' (for consistency).
1629     * NEWS: mention this change.
1630
1631 2009-07-10  James Youngman  <jay@gnu.org>
1632
1633     * import-gnulib.config (gnulib_version): Update to the current version
1634     of gnulib.
1635
1636     Fix Savannah bug #24873, Duplicate fprint option corrupts output
1637     by opening each output file only once.
1638     * find/sharefile.c: New file; keeps a mapping from dev/inode to
1639     FILE*, allowing us to determine when the file we just opened is
1640     the same as something else we already opened.
1641     * import-gnulib.config (modules): Import the hash module, used by
1642     sharefile.c.
1643     * find/sharefile.h: Function declarations for same.
1644     * find/find.c (main): Call sharefile_init().
1645     * find/ftsfind.c (main): Likewise.
1646     * find/parser.c (open_output_file): Call sharfile_fopen to open an
1647     output file, instead of fopen_safer.
1648     * find/util.c (cleanup): Close any shared output files that are
1649     open.  Also fflush stdout.
1650     (undangle_file_pointers): Set the relevant FILE* pointers to
1651     NULL.
1652     (flush_and_close_output_files): Remove (since sharefile_destroy
1653     has the desired effect).
1654     * find/Makefile.am (libfindtools_a_SOURCES): Add sharefile.c.
1655     (EXTRA_DIST): Add sharefile.h.
1656     * find/defs.h: #include sharefile.h.
1657     (struct state): Add member shared_files, holding a handle to the
1658     shared-file hash table implemented in sharefile.[ch].
1659     * find/testsuite/find.gnu/fprintf-samefile.exp: New test,
1660     exercising -fprintf (though it is not able to detect bug #24873).
1661     * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
1662     find.gnu/fprintf-samefile.exp.
1663     * NEWS: Mention the bugfix.
1664
1665 2009-07-07  James Youngman  <jay@gnu.org>
1666
1667         * NEWS: Indicate that -wholename is no longer preferred over -ipath.
1668
1669 2009-07-06  James Youngman  <jay@gnu.org>
1670
1671         Prepare for release of findutils version 4.5.5.
1672         * configure.ac: Set version number to 4.5.5.
1673         * NEWS: Likewise.
1674
1675 2009-07-06  Andreas Metzler  <gnu@downhill.at.eu.org>
1676
1677         * doc/find.texi: Various typo fixes.
1678
1679 2009-07-05  James Youngman  <jay@gnu.org>
1680
1681         Fix typo in -execdir documentation.
1682         * doc/find.texi (Single File): Typo correction; we're describing
1683         -execdir, not -exec.
1684         * NEWS: Mention the bugfix.
1685
1686 2009-05-12  James Youngman  <jay@gnu.org>
1687
1688         #26537: find -prune now makes sure it has valid stat() information.
1689         * NEWS: Added Savannah bug number for Colin's bugfix.
1690
1691 2009-05-07  Colin Watson  <cjwatson@ubuntu.com>
1692
1693         * find/parser.c (parse_prune): -prune needs stat information if
1694         -depth is not in use.
1695         * find/pred.c (pred_prune): Assert that stat information is
1696         available if needed.
1697         * find/testsuite/find.posix/prune-stat.exp: New test.
1698         * find/testsuite/find.posix/prune-stat.xo: New test.
1699         * find/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO): Added
1700         prune-stat.exp, prune-stat.xo.
1701         * NEWS: Mention this bugfix.
1702
1703 2009-07-05  James Youngman  <jay@gnu.org>
1704
1705         * lib/check-regexprops.sh: New test.  Run regexprops as a check,
1706         and compare its output against the contents of doc/regexprops.texi.
1707         * lib/Makefile.am: Run check-regexprops.sh for 'make check'.
1708         * doc/Makefile.am: don't clean regexprops.texi, and don't generate
1709         it automatically.
1710         * doc/regexprops.texi: add into source control.
1711         * doc/.gitignore: don't ignore regexprops.texi
1712
1713 2009-07-04  James Youngman  <jay@gnu.org>
1714
1715         * configure.ac (AC_CONFIG_FILES): order the entries alphabetically
1716         and remove duplicates.  Put po/Makefile.in before
1717         po/Makefile, since the former is required in order to
1718         config.status to generate the latter.
1719
1720 2009-07-04  gettextize  <bug-gnu-gettext@gnu.org>
1721
1722         * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.
1723         (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
1724
1725 2009-05-12  Eric Blake  <ebb9@byu.net>
1726
1727         xargs: fix compilation on cygwin
1728         * xargs/xargs.c (main): Check that ARG_MAX is defined.
1729
1730         xargs: avoid compiler warning
1731         * xargs/xargs.c (get_char_oct_or_hex_escape): Pass correct type to
1732         ctype macro.
1733
1734 2009-05-04  James Youngman  <jay@gnu.org>
1735
1736         * find/util.c (get_info): Don't fall off the end of the function
1737         without returning a value.
1738
1739 2009-04-25  James Youngman  <jay@gnu.org>
1740
1741         * AUTHORS: Add Andreas Metzler.
1742
1743 2009-04-25  Andreas Metzler  <gnu@downhill.at.eu.org> (tiny change)
1744
1745         Correct a typo "diagnositcs".
1746         * doc/find.texi (Environment Variables): Correct a typo.
1747
1748 2009-04-24  A. Costa  <agcosta@gis.net> (tiny change)
1749
1750         Correct a typo "diagnositcs".
1751         * find/find.1 (POSIXLY_CORRECT): Correct a typo.
1752
1753 2009-04-24  James Youngman  <jay@gnu.org>
1754
1755         * find/ftsfind.c (consider_visiting): Print a message for "-D
1756         search" both on entry to the function and at the point where we
1757         have decided not to ignore this file.
1758
1759 2009-04-12  James Youngman  <jay@gnu.org>
1760
1761         * NEWS: Mention the fix for bug #22708 in the correct section.
1762
1763         Avoid mixing declarations and statements.
1764         * lib/buildcmd.c (bc_do_exec): Declare variables at the top of the
1765         relevant block, in order to avoid mixing declarations and
1766         statements.
1767         * xargs/xargs.c (main): Likewise.
1768
1769 2009-04-12  Leslie Polzer  <leslie.polzer@gmx.net>
1770
1771         Merge Leslie Polzer's ARG_MAX enhancements to xargs which were
1772         produced as part of the Google Summer of Code 2007.
1773         These changes fix Savannah bug #22708.
1774         * find/pred.c (launch): The struct buildcmd_control* argument is
1775         no longer const.
1776         * find/defs.h: Likewise
1777         * lib/buildcmd.c (bc_do_insert): The struct buildcmd_control*
1778         argument is no longer const.
1779         (bc_push_arg): Likewise.
1780         (cb_exec_noop): Likewise.
1781         (get_stringv_len): New function; measures the length of
1782         a NULL-terminated argv sequence.
1783         (bc_do_exec): Rename from do_exec, and make global.  Modify the
1784         function to react to exec failing with E2BIG by trying again
1785         with fewer arguments.
1786         * xargs/xargs.1: Mention that xargs automatically adopts to the
1787         situation where exec fails with E2BIG.
1788         * xargs/xargs.c: (parent): New variable, the PID of the parent
1789         process.
1790         (main): initialise the variable 'parent'.   Don't fail immediately
1791         due to lack of space when the environment is large.  Call
1792         xargs_do_exec via bc_do_exec.
1793         (xargs_do_exec): The struct buildcmd_control* argument is no
1794         longer const.   When exec fails in the child, communicate the
1795         errno value back to the parent through a pipe which is
1796         close-on-exec; this allows us to accurately determine the cause of
1797         the failure and also to distinguish exec failures from all
1798         possible exit codes in the child.
1799         (wait_for_proc): If the utility cannot be found or cannot be run,
1800         we now find out about this by reading an errno value from the
1801         pipe, so this means that exit codes 126 and 127 in the child no
1802         longer have a special interpretation.
1803         * NEWS: mention these changes.
1804
1805 2009-04-13  James Youngman  <jay@gnu.org>
1806
1807         * import-gnulib.config (gnulib_version): Update to current head
1808         version.
1809
1810 2009-04-13  Andreas Metzler <gnu@downhill.at.eu.org>
1811
1812         Fix Savannah bug# 26092: find.1 still marks -iwholename as prefered
1813         * find/find.1 (-iwholename): Indicate that this option is no
1814         longer preferred over -ipath.
1815
1816 2009-03-07  James Youngman  <jay@gnu.org>
1817
1818         Update the code to better reflect the semantics of digest_mode().
1819         * find/defs.h: Pass the file mode to digest_mode() by reference
1820         (as a pointer) rather than by value to make it unnecessary for the
1821         caller to know that the value passed should become dead.
1822         * find/util.c (digest_mode): Change the implementation.
1823         * find/find.c (process_path): Update caller.
1824         * find/ftsfind.c (consider_visiting): Update caller.
1825
1826 2009-03-10  James Youngman  <jay@gnu.org>
1827
1828         Remove "lib/wait.h", since gnulib provides <sys/wait.h>.
1829         * lib/Makefile.am (EXTRA_DIST): Remove wait.h, since gnulib
1830         provides it.
1831         * lib/wait.h: Not needed.
1832         * find/pred.c: Include <sys/wait.h> instead of "wait.h".
1833         * lib/waitpid.c: Likewise.
1834         * xargs/xargs.c: Likewise.
1835
1836         Remove unnecessary include guards.
1837         * lib/dircallback.c: gnulib provides <locale.h>, so no need for
1838         include guards.
1839         * locate/locate.c: Likewise.
1840         * lib/listfile.c: Likewise.
1841         * lib/savedirinfo.c: Likewise with <sys/stat.h>
1842         * find/defs.h: gnulib provides <inttypes.h>, so no need for
1843         include guards.
1844         * lib/nextelem.c: Likewise with <string.h> and <stdlib.h>.
1845         * locate/bigram.c: Likewise.
1846         * locate/frcode.c: Likewise.
1847         * lib/buildcmd.c: Likewise with <locale.h> and <wchar.h>
1848         * xargs/xargs.c: Likewise with <locale.h>, <wchar.h> and <stdlib.h>
1849         * import-gnulib.config (modules): Import the mbrtowc and whchar
1850         modules.
1851         * lib/qmark.c (multibyte_qmark_chars):  Don't surround with
1852         HAVE_MBRTOWC, since we now have a replacement for mbrtowc.
1853         Likewise, don't protect inclusion of <string.h> with
1854         HAVE_STRING_H.  Likewise with <wchar.h>.
1855         (multibyte_qmark_chars): Rename to qmark_chars.
1856         (qmark_chars): Remove old version (since it is replaced by the
1857         function that used to be multibyte_qmark_chars).
1858         * lib/printquoted.c: Don't include <wchar.h>, we don't need it.
1859
1860         Prepare for release of findutils-4.5.4.
1861         * configure.ac (AC_INIT): Set version number to 4.5.4.
1862         * NEWS: Likewise.
1863
1864         Remove obsolete regex.c copy fixup.
1865         * Makefile.am (jy-regex-fix) Delete.
1866         (dist-hook): Remove jy-regex-fix.
1867
1868         Update to version 0.17 of GNU gettext.
1869         * configure.ac: Update to version 0.17 of gettext.
1870         * import-gnulib.sh (refresh_output_files): Run autopoint too.
1871         * ABOUT-NLS: Remove the file from source control, since gettext
1872         produces it.
1873         * .gitignore: Ignore ABOUT-NLS.
1874         * po/Makefile.in.in: Likewise.
1875         * po/.gitignore: Ignore po/Makefile.in.in.
1876
1877         Correct the changelog-driver argument list.
1878         * import-gnulib.sh (check_merge_driver): Add the missing arguments
1879         to the changelog driver.  Change the name of the merge driver from
1880         cl-merge to merge-changelog, for consistency with gnulib,
1881         coreutils, autoconf, libtool, and m4.
1882
1883 2009-03-08  James Youngman  <jay@gnu.org>
1884
1885         Switch to using a merge driver for the ChangeLog file.
1886         * import-gnulib.sh (check_merge_driver): New function; verifies
1887         that we have a merge driver installed for the ChangeLog file (if
1888         we're on the master or release branch, the check is skipped).
1889         Also check that the .gitattributes file exists.
1890         * README-hacking: Point out that using a merge driver for
1891         ChangeLog is a good idea.
1892         * .gitattributes: New file
1893
1894         Optimise away calls to stat if all we need is the inode number.
1895         This fixes Savannah bug #24342.
1896         * find/util.c (get_info): call get_statinfo if need_inum and we
1897         don't already have the inode number.
1898         (apply_predicate): Call get_info if need_inum.
1899         * find/defs.h (enum EvaluationCost): Add NeedsInodeNumber.
1900         (struct predicate): Add need_inum.
1901         * find/tree.c (get_new_pred): Default need_inum to false.
1902         (get_new_pred_chk_op): Likewise.
1903         * find/ftsfind.c (consider_visiting): Copy the value of st_ino
1904         into statbuf.st_ino.
1905         * find/parser.c (parse_inum): Set need_inum=true.
1906         (parse_samefile): Set need_inum=false, but add a comment
1907         indicating that there is an optimisation opportunity.
1908         (make_segment): For -printf %i, set NeedsInodeNumber rather than
1909         NeedsStat.
1910         * find/pred.c (pred_inum): assert that the inode number is known
1911         (i.e. non-zero).
1912         (print_optlist): Print "[need inum]" when need_inum is  true.
1913         * find/tree.c (opt_expr): Also reorder expressions if the right
1914         hand expression is -inum (that is, consider that test to be no
1915         more expensive than -type).
1916         (set_new_parent): Default need_inum to false.
1917         (costlookup): Set pred_inum=NeedsInodeNumber.
1918         (get_pred_cost): need_inum implies a data cost of
1919         NeedsInodeNumber.
1920         (cost_table): Add NeedsInodeNumber.
1921         (print_tree): Handle need_inum.
1922
1923         For -samefile, skip stat if inode numbers differ.
1924         * find/pred.c (pred_samefile): Skip stat if the inode numbers are
1925         different.
1926         Enable -Wall compiler warnings and fix them.
1927         * configure.ac: Turn on -Wall warnings.
1928         * find/find.c (process_dir): Print unsigned values of unspecified
1929         width as uintmax_t.
1930         * xargs/xargs.c: Include <inttypes.h> and <stdint.h>, but without
1931         the include guards (since we assume an ISO C platform anyway).
1932         * import-gnulib.config (modules): Add modules inttypes and stdint.
1933
1934 2009-03-07  James Youngman  <jay@gnu.org>
1935
1936         Remove unused Debian files; the Debian package doesn't use them.
1937         * debian.rules: Delete.
1938         * debian/README.debian: Delete.
1939         * debian/TODO: Delete.
1940         * debian/changelog: Delete.
1941         * debian/conffiles: Delete.
1942         * debian/control: Delete.
1943         * debian/copyright: Delete.
1944         * debian/cron.find: Delete.
1945         * debian/doc-base: Delete.
1946         * debian/postinst: Delete.
1947         * debian/preinst: Delete.
1948         * debian/prerm: Delete.
1949         * debian/rules: Delete.
1950         * debian/substvars: Delete.
1951         * debian/updatedb.conf: Delete.
1952         * debian/.cvsignore: Delete.
1953         * debian/.gitignore: Delete.
1954
1955 2009-03-06  James Youngman  <jay@gnu.org>
1956
1957         Change suffix for non-release versions from -CVS to -git.
1958         * configure.ac(AC_INIT): Change the suffix used to indicate that
1959         the version number doesn't correspond to a source release from
1960         -CVS to -git.
1961         * NEWS: Likewise.
1962
1963         Delete the INSTALL file; rely on Autoconf providing it.
1964         * INSTALL: Delete; this file can be copied/generated by Autoconf,
1965         so do that rather than keeping it under source control.
1966         * .gitignore: Ignore INSTALL.
1967
1968         Updated translation po files from translationproject.org.
1969         * po/bg.po: Updated Bulgarian translation.
1970         * po/de.po: Updated German translation.
1971         * po/ga.po: Updated Irish translation.
1972         * po/hu.po: Updated Hungarian translation.
1973         * po/lt.po: Updated Lithuanian translation.
1974         * po/nl.po: Updated Dutch translation.
1975         * po/pl.po: Updated Polish translation.
1976         * po/sl.po: Updated Slovenian translation.
1977         * po/sv.po: Updated Swedish translation.
1978         * po/tr.po: Updated Turkish translation.
1979         * po/uk.po: Updated Ukranian translation.
1980         * po/vi.po: Updated Vietnamese translation.
1981         * NEWS: Mention these updates.
1982
1983 2009-03-05  James Youngman  <jay@gnu.org>
1984
1985         Fix Savannah bug #25764, duplicate entry for proc in PRUNEFS.
1986         * locate/updatedb.sh (PRUNEFS): Remove duplicate entry for proc.
1987         * locate/Makefile.am (updatedb): add dependency on Makefile, and
1988         add a comment explaining why updatedb is generated by make, not
1989         configure.
1990         * NEWS: Mention this bugfix.
1991
1992         Provide more detailed help on how to work with the git sources.
1993         * README-CVS: Rename to README-hacking.
1994         * README-hacking: Add more specific information about using topic
1995         branches, test cases, documentation, coding standards and how to
1996         submit patches.   Much of this is adapted from the files
1997         README-hacking and HACKING in the coreutils source tree.
1998         * Makefile.am: Generate tool-versions.txt, which is a list of the
1999         --version outputs of the tools that the maintainer used to build a
2000         release.
2001         * NEWS: Mention these improvements.
2002
2003 2009-03-04  James Youngman  <jay@gnu.org>
2004
2005         Upgrade to gnulib version 86a37c05846ff3772afd1300f135866dd1d271c6.
2006         * import-gnulib.config(gnulib_version): Update.
2007         * xargs/Makefile.am: Add $(LIB_CLOSE) to $(LDADD), as suggested by
2008         gnulib's unistd module.
2009         * locate/Makefile.am: Likewise.
2010         * find/Makefile.am: Likewise.
2011
2012         Removed trailing white space.
2013         * Makefile.am: Removed trailing white space.
2014         * NEWS, build-aux/check-testfiles.sh, build-aux/src-sniff.py,
2015         doc/Makefile.am, doc/find-maint.texi, doc/find.texi, find/Makefile.am,
2016         find/defs.h, find/find.1, find/find.c, find/finddata.c, find/fstype.c,
2017         find/ftsfind.c, find/parser.c, find/pred.c, find/tree.c, find/util.c,
2018         import-gnulib.sh, lib/Makefile.am, lib/buildcmd.c, lib/buildcmd.h,
2019         lib/dircallback.c, lib/dircallback.h, lib/extendbuf.c,
2020         lib/extendbuf.h, lib/findutils-version.c, lib/findutils-version.h,
2021         lib/forcefindlib.c, lib/gnulib-version.h, lib/listfile.c,
2022         lib/modetype.h, lib/nextelem.c, lib/nextelem.h, lib/printquoted.c,
2023         lib/printquoted.h, lib/qmark.c, lib/regexprops.c, lib/regextype.c,
2024         lib/savedirinfo.c, lib/savedirinfo.h, lib/strspn.c, lib/wait.h,
2025         lib/waitpid.c, locate/bigram.c, locate/code.c, locate/locate.1,
2026         locate/locate.c, locate/locatedb.5, locate/locatedb.h,
2027         locate/updatedb.1, locate/updatedb.sh, locate/word_io.c,
2028         m4/findlib.m4, m4/nullsort.m4, m4/withfts.m4, xargs/xargs.1:
2029         Likewise.
2030         * m4/nullsort.m4: Removed occurrences of space followed by tab.
2031
2032         Enabled GCC warnings for declarations after statements.
2033         * import-gnulib.config: Import the gnulib module 'warnings'
2034         * configure.ac: Add GCC warning -Wdeclaration-after-statement.
2035         * Makefile.am: Add AM_CFLAGS and set it to $(WARN_CFLAGS).
2036         * find/Makefile.am, doc/Makefile.am, lib/Makefile.am: Likewise.
2037         * locate/Makefile.am, xargs/Makefile.am: Likewise.
2038
2039 2009-03-03  James Youngman  <jay@gnu.org>
2040
2041         Fix Savannah bug #25359, more efficiently (suggestion by Nick Fortino).
2042         * find/ftsfind.c (consider_visiting): revert the previous change
2043         which discarded type information, and instead simply ensure that
2044         state.curdepth holds the correct value before digest_mode() is
2045         called.
2046         (find): revert the previous change.
2047         (visit): we no longer need to set state.curdepth here, since it
2048         will have been set already in consider_visiting().
2049
2050 2009-03-02  James Youngman  <jay@gnu.org>
2051
2052         Fix Savannah bug #25359.
2053         * find/ftsfind.c (consider_visiting): discard mode information
2054         from fts when the -H option is in effect and the current file is a
2055         symbolic link.
2056         (find): don't decode the mode information that find is trying to
2057         pass to us in that case, since we don't want to use it.
2058         * find.posix/sv-bug-25359.exp: new test for this bug.
2059         * find.posix/sv-bug-25359.xo: expected output for the test.
2060         * NEWS: Mention this bugfix.
2061
2062 2009-02-21  James Youngman  <jay@gnu.org>
2063
2064         Updated the email address for Eric B. Decker.
2065         * ChangeLog: Updated Eric's address
2066         * find/find.c: Likewise
2067         * find/ftsfind.c: Likewise
2068
2069 2009-02-21  Jim Meyering  <meyering@redhat.com>
2070
2071         find: take advantage of new gnulib/fts leaf-optimization
2072         * find/ftsfind.c (ftsoptions): Set the FTS_CWDFD bit.
2073         This is required in order to take advantage of fts' leaf-optimization.
2074         * find/ftsfind.c (consider_visiting): Allow state.type to be 0
2075         when fts_info is FTS_NSOK;
2076
2077         This allows find to process an fts entry for which fts_read returns
2078         FTS_NSOK (no stat) but for which find requires only type info.
2079         This happens on file systems that lack dirent.dtype information.
2080         Currently, only reiserfs is handled this way.  Until the recent
2081         gnulib/fts change, [97d5b66] "fts: arrange not to stat non-directories
2082         in more cases" this change was not necessary, because fts would always
2083         stat non-dir entries on a file system with no dirent.dtype information.
2084
2085         However, combined with the gnulib change, this change lets find
2086         avoid many per-non-directory stat-like syscalls (i.e. fstatat)
2087         in some very common cases, like "find . -print" on reiserfs --
2088         which can be a huge performance savings.
2089
2090         find: avoid warning about unused local
2091         * find/pred.c (scan_for_digit_differences): Remove declaration of
2092         unused local, "ok". (second time, really applying that patch).
2093
2094 2009-02-21  James Youngman  <jay@gnu.org>
2095
2096         Update gnulib version.
2097         * import-gnulib.config (gnulib_version): Update from
2098         d4b129b8e5f8a8d1198020fd6fc79310d305936c to
2099         df70a4bf4a1e84171918db09b639ae1a14c2a9b2.  This pulls in the
2100         following relevant changes:
2101         fts: correct internal computation of nlinks (optimization-related)
2102         fts: move a function definition "up" (no semantic change)
2103         fts: arrange not to stat non-directories in more cases
2104         fts: add #if guards so that the fts_lgpl module still builds
2105         fts: avoid used-uninitialized error due to recent change
2106         regex: avoid compilation failure with upcoming gcc-4.4
2107         regex: fix glibc bug 697
2108         regex: fix glibc bug 9697
2109         Other changes may also be relevant; for details please check gnulib/ChangeLog.
2110
2111         Improvements to import-gnulib.config, import-gnulib.sh.
2112         * import-gnulib.config (gpl3_update_files): No longer need to
2113         update the licenses of build-aux/mdate-sh, build-aux/texinfo.tex
2114         or build-aux/ylwrap as they are already GPLv3+.
2115         (modules): Use the strdup-posix module instead of strdup, and stop
2116         using the obsolete modules memcmp and memset, since we now assume
2117         those functions will already be present on the host system.
2118         * import-gnulib.sh (rehack): Be more verbose about which files
2119         actually needed a license edit and which did not.
2120
2121         Follow gnulib-tool's Makefile.am edit suggestions.
2122         * find/Makefile.am (LDADD): Use $(LIBINTL) instead of @INTLLIBS@
2123         and use $(LIB_CLOCK_GETTIME) instead of @LIB_CLOCK_GETTIME@.
2124         * lib/Makefile.am: Likewise.
2125         * locate/Makefile.am: Likewise.
2126         * xargs/Makefile.am: Likewise.
2127         * import-gnulib.sh (hack_gnulib_tool_output): Add
2128         m4/gnulib-cache.m4 to EXTRA_DIST in gnulib/Makefile.am, as
2129         gnulib-tool suggests.
2130
2131 2009-02-21  Jim Meyering  <meyering@redhat.com>
2132
2133         find: avoid warning about unused local, remove unnecessary include.
2134         * find/pred.c (scan_for_digit_differences): Remove declaration of
2135         unused local, "ok".
2136         (do_time_format): Remove decl of "done"; replace sole use with a
2137         constant, "true".  Initialize "i" and "n".
2138         * lib/dircallback.c: Don't include unistd.h.  Not needed.
2139
2140 2009-01-17  Thien-Thi Nguyen  <ttn@gnuvola.org>
2141
2142         find: Fix -regexptype parse specification bug: declare as POSOPT.
2143         * find/parser.c (parse_table): Parse -regextype as POSOPT.
2144
2145 2008-12-26  Jim Meyering  <meyering@redhat.com>
2146
2147         find: avoid using undefined statbuf
2148         * /ftsfind.c (consider_visiting): Use local variable, mode,
2149         rather than possibly undefined statbuf.st_mode.
2150
2151 2008-12-23  James Youngman  <jay@gnu.org>
2152
2153         Fix Savannah bug #25154: Failure to compile with GCC-2.95.4
2154         * find/parser.c (do_parse_xmin): Move declaration of struct
2155         timespec origin before the statements; declarations after
2156         statements are a GCC extension we were accidentally relying on.
2157
2158 2008-12-21  James Youngman  <jay@gnu.org>
2159
2160         Fix Savannah bug #25144: Misleading message for find -user unknown.
2161         * find/parser.c (parse_user): If there is no known group for the
2162         specified user (and it does not appear to be a uid), issue a
2163         fatal error message instead of returning false, because the error
2164         message that results from a return of false is "invalid argument",
2165         which is misleading in this case.  Similarly for a missing or an
2166         empty argument.
2167
2168 2008-12-01  James Youngman  <jay@gnu.org>
2169
2170         * po/fr.po: Updated French translation.
2171
2172         * po/id.po: Updated Indonesian translation.
2173
2174 2008-12-01  Geoff Gole  <geoffgole@gmail.com>
2175
2176         * xargs/xargs.1 (STANDARDS CONFORMANCE): Fix typo.
2177
2178 2008-11-30  Jim Meyering  <meyering@redhat.com>
2179
2180         Pass file type information in dirent.d_type from fts to find.
2181         * find/ftsfind.c (consider_visiting): When fts provides usable
2182         dirent.d_type information, and the only stat information required
2183         by find's predicates is the file-type information normally found
2184         in stat.st_mode (that is, not the permissions information), skip
2185         the now-redundant stat calls.  This change is useful only with the
2186         very latest version of fts.c from gnulib.  Requires gnulib version
2187         d4b129b8e5f8a8d1198020fd6fc79310d305936c or later.
2188         * find/ftsfind.c (find): Set state.have_type if fts returned type
2189         information.
2190
2191 2008-11-08  James Youngman  <jay@gnu.org>
2192
2193         * import-gnulib.config (gnulib_version): Update version of gnulib,
2194         mainly in order to pull in Jim Meyering's efficiency improvements
2195         to fts.  See http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=2f2978ede97205c49d3e568ccffa5a04fb53326b
2196         * lib/dircallback.c: gnulib's lstat.h is now gone, instead it
2197         provides <sys/stat.h> where that is needed.
2198
2199 2008-11-08  Jim Meyering <meyering@redhat.com>
2200
2201         * README-CVS: tiny typo fix (s/fileutils/findutils/).
2202
2203 2008-09-07  James Youngman  <jay@gnu.org>
2204
2205         Fix bug #23996 (integer overflow when parsing "-used 3").
2206         * find/parser.c (get_relative_timestamp): Check for overflow after
2207         the fact by comparing the relative sizes of the result and the
2208         operands.  This prevents an incorrect diagnosis of overflow when
2209         the resulting tv_sec is correctly negative (as is normally the
2210         case for -used).
2211
2212 2008-08-31  James Youngman  <jay@gnu.org>
2213
2214         New Czech translation.
2215         * po/cs.po: New Czech translation.
2216         * configure.ac: Added cs (Czech) to ALL_LINGUAS.
2217
2218         Fix Savannah bug #24169 (-neweraa without following arg coredumps).
2219         * find/parser.c (parse_newerXY): Issue a fatal error message if
2220         there is no following argument.
2221         * find/testsuite/find.gnu/sv-bug-24169.exp: Test case for this
2222         bug.
2223         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Also distribute
2224         this new test file.
2225         * NEWS: Mention this change.
2226
2227 2008-08-04  James Youngman  <jay@gnu.org>
2228
2229         * find/find.1: correct typo seach->seach (reported by Bobby
2230         R. Ward).
2231         * locate/updatedb.1: correct typo Any -> any (reported by Reuben
2232         Thomas).
2233
2234 2008-06-28  James Youngman  <jay@gnu.org>
2235
2236         Fix savannah bug #23070 (find.1 needs update for -perm /000)
2237         * find/find.1 (-perm /mode): The all-bits-zero behaviour has
2238         already changed.
2239         * NEWS: Mention the fix.
2240
2241 2008-06-21  James Youngman  <jay@gnu.org>
2242
2243         * import-gnulib.config (gnulib_version): Updated to current HEAD
2244         gnulib.
2245
2246         Fix Savannah bug #23663, crash in some locales for %AX.
2247         * find/pred.c (do_time_format): Fix off-by-one error in handling
2248         of the buffer used to print timestamps.   This caused a crash in
2249         some locales when handling the %AX format specifier.
2250         * NEWS: Mention this bugfix.
2251
2252 2008-06-20  RB  <aoz.syn@gmail.com>
2253
2254         * doc/find.texi (Finding the Shallowest Instance): Add worked
2255         example explaining how to efficiently locate the shallowest
2256         instances of '.svn' or 'CVS' in a forest of project trees.
2257         * find/find.1 (EXAMPLES): Add the same example here (with slightly
2258         briefer wording).
2259
2260 2008-06-19  Per Starbäck  <starback@stp.lingfil.uu.se> (tiny change)
2261
2262         * doc/find.texi (Unusual characters in filenames): Directory
2263         separator is the slash, not the backslash.
2264
2265 2008-06-19  James Youngman  <jay@gnu.org>
2266
2267         * po/zh_CN.po: Updated the Chinese (simplified) translation.
2268         * NEWS: Mention this change.
2269
2270 2008-06-19  Stepan Kasal  <skasal@redhat.com>
2271
2272         * doc/find.texi (Cleaning Up): Move the note about -depth up.
2273
2274 2008-06-19  James Youngman  <jay@gnu.org>
2275
2276         * po/lt.po: New Lithuanian translation.
2277         * NEWS: Mention this change.
2278         * configure.ac: Add "lt" to ALL_LINGUAS.
2279
2280 2008-05-28  James Youngman  <jay@gnu.org>
2281
2282         Bugfix to the code that was previously supposed to fix bug #22662
2283         in 4.5.0.
2284         * find/pred.c (scan_for_digit_differences): Remember that wesaw
2285         the first differing digit and also get the order of the
2286         subtractionoperands right.
2287         (do_time_format): Off by one error on checking for a nondigit
2288         after the sequence of changed digits.
2289         * NEWS: Mention this change.
2290
2291 2008-05-18  James Youngman  <jay@gnu.org>
2292
2293         Update gnulib.
2294         * import-gnulib.config (gnulib_version): Update to current head
2295         version of gnulib.
2296
2297         Document effect of gnulib update, mainly on yesno().
2298         * doc/find.texi (Unusual Characters in File Names): Explain that
2299         the LC_CTYPE variable affects which characters are considered to
2300         be printable by -printf %p, -print and -fprint.
2301         (Querying): Explain in more detail how environment variables
2302         affect the interpretation of the response to -ok and -okdir.
2303         (Regular Expressions): Indicate that the locale configuration
2304         affects the interpretation of regular expressions.
2305         (Environment Variables): Describe how LC_COLLATE and LC_CTYPE
2306         affect the interpretation of regular expressions.  Indicate that
2307         LC_MESSAGES affects the interpretation of the response to -ok.
2308         * find/find.1 (-ok): Describe the effect of POSIXLY_CORRECT,
2309         LC_CTYPE and LC_COLLATE.
2310         (-okdir): Likewise.
2311         (UNUSUAL FILENAMES): Describe how LC_CTYPE affects -printf %p,
2312         -print, -fprint.
2313         (STANDARDS CONFORMANCE): -ok and -okdir now obey the system's
2314         defintion of yes/no if POSIXLY_CORRECT is set.  In any case,
2315         LC_CTYPE and LC_COLLATE may have some effect.  Point out that
2316         the setting of LC_MESSAGES deternmines what pattern is used to
2317         interpret the user's response to -ok/-okdir.
2318         * find/parser.c: Remove definition of ISUPPER, which we no longer
2319         need.
2320         * NEWS: mention these changes.
2321
2322 2008-04-25  Eric Blake  <ebb9@byu.net>
2323
2324         Support cygwin 1.7.0.
2325         * find/parser.c (parse_newerXY)
2326         [HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC]: Add support for another
2327         form of birthtime.
2328         * import-gnulib.config (gnulib_version): Update to pick up change
2329         necessary for cygwin fstatat.
2330
2331 2008-03-21  James Youngman  <jay@gnu.org>
2332
2333         * find/testsuite/find.gnu/xtype-symlink.exp: Removed unnecessary
2334         test code which created a insecure tempfile.
2335
2336 2008-03-16  James Youngman  <jay@gnu.org>
2337
2338         Update gnulib.
2339         * import-gnulib.config (gnulib_version): Update to a newer version
2340         of gnulib.
2341
2342         Find optimises at -O2 by default.
2343         * find/util.c (set_option_defaults): Use a default optimisation
2344         level of 2 rather than 0.
2345         * NEWS: Mention this change.
2346
2347         Begin work on findutils-4.5.x.
2348         * configure.ac: We're now working on the 4.5.x release series, so
2349         change the version number.
2350         * NEWS: Likewise.
2351
2352 2008-03-10  Justin Pryzby  <justinpryzby@users.sourceforge.net> (tiny change)
2353
2354         * doc/find.texi: Various typo corrections.
2355
2356 2008-03-10  Eric Blake  <ebb9@byu.net>
2357
2358         Don't truncate printed ino values.  Fixes Savannah bug #15472.
2359         * find/find.c (wd_sanity_check): Use PRIuMAX for platforms with
2360         64-bit ino_t.
2361         * NEWS: Document this.
2362
2363 2008-03-10  Jim Meyering  <meyering@redhat.com>
2364
2365         Rename local and member "dirfd" to avoid shadowing the function.
2366         This avoids many warnings from gcc -Wshadow:
2367         * lib/buildcmd.h (struct buildcmd_state) [dir_fd]: Rename member
2368         from dirfd.
2369         * find/defs.h (struct exec_val) [dir_fd]: Likewise.
2370         Rename parameter in prototype.
2371         * find/ftsfind.c (inside_dir): Rename parameter: s/dirfd/dir_fd/
2372         * find/parser.c (new_insert_exec_ok, insert_exec_ok): Likewise.
2373         * find/pred.c (new_impl_pred_exec, prep_child_for_exec, launch):
2374         s/dirfd/dir_fd/
2375         * find/util.c (do_complete_pending_execdirs): Likewise.
2376         (complete_pending_execdirs): Likewise
2377         * lib/buildcmd.c (bc_init_state, bc_clear_args): Likewise.
2378         * lib/dircallback.c (run_in_dir): Likewise.
2379         * lib/dircallback.h (DIRCALLBACK_H): Likewise.
2380         * lib/listfile.c (list_file, get_link_name_at): Likewise.
2381         * lib/listfile.h (LISTFILE_H): Likewise.
2382
2383         Avoid link failure with -fno-common.
2384         * locate/code.c (program_name): Declare "extern".
2385
2386 2008-03-09  James Youngman  <jay@gnu.org>
2387
2388         Fix (documentation) bug #20873, / and . in file names for -path.
2389         * doc/find.texi (Full Name Patterns): Mention that * in the "find
2390         -path" pattern will match both / and leading dots.
2391
2392 2008-03-08  Jim Meyering  <meyering@redhat.com>
2393
2394         Fix doc typos.
2395         * doc/find-maint.texi (Security): s/ongest/longest/
2396         (Making Releases): s/the the/the/
2397
2398         Avoid link failure with gcc -fno-common.
2399         * find.c (program_name, starting_desc): Declare "extern".
2400
2401 2008-02-15  Eric Blake  <ebb9@byu.net>
2402
2403         Avoid compiler warnings.
2404         * find/pred.c (pred_name_common): Remove unused variable.
2405         * locate/locate.c (print_stats): Avoid undefined format string.
2406
2407 2008-02-15  James Youngman  <jay@gnu.org>
2408
2409         * README-CVS: Explain how to update the translations from the
2410         translation project.
2411
2412         * NEWS, configure.ac: Change release number to 4.3.14-CVS.
2413
2414 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
2415
2416         * import-gnulib.config: Add progname.
2417
2418         * lib/Makefile.am (LDADD): Use @LIBINTL@ instead of @INTLLIBS@.
2419
2420         * xargs/xargs.1: Fix a couple of typos.
2421
2422 2008-02-12  James Youngman  <jay@gnu.org>
2423
2424         Updated translations: German, Irish, Dutch, Polish, Vietnamese.
2425         * po/de.po, po/ga.po, po/nl.po, po/pl.po, po/vi.po: Updated from
2426         the Translation Project.
2427
2428         Fix Savannah bug #22056, -Xtime tests are off by one second.
2429         * find/defs.h (struct options): Change cur_day_start from time_t
2430         to strct timespec.
2431         * find/util.c (set_option_defaults): Likewise.
2432         * find/parser.c (get_relative_timestamp): Change the origin
2433         argument from time_t to struct timespec.
2434         (estimate_timestamp_success_rate): Ignore the nanoseconds field of
2435         the timestamp when estimating the probable success rate.
2436         (parse_daystart): Handle the nanoseconds field too.
2437         (do_parse_xmin): The origin argument to get_relative_timestamp()
2438         is of type struct timespec, not time_t.
2439         (parse_used): Likewise.
2440         (parse_time): Likewise.
2441         * find/pred.c (pred_timewindow): in the COMP_EQ case, accept times
2442         exactly at the end of the window and do not accept times exactly
2443         at the start (reversing the previous treatment of the bounds).
2444         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added test for
2445         -mtime 0; find.posix/mtime0.{exp,xo}.
2446         * NEWS: mention this bugfix.
2447
2448 2008-02-09  James Youngman  <jay@gnu.org>
2449
2450         * doc/find.texi (xargs options): Moved documentation of xargs'
2451         options into this new section.
2452         (Invoking the shell from xargs): New section providing examples
2453         about "xargs sh -c '...'".
2454
2455         * xargs/xargs.1: Indicate that the "sh -c" trick with xargs
2456         achieves the same thing as BSD's "xargs -o", but in a more
2457         flexible way.
2458
2459         * locate/updatedb.sh: Actually rename the old database to the new
2460         one atomically, instead of just claiming the rename is atomic in a
2461         comment :)  This fixes Savannah bug #22057.
2462
2463         * find/find.c (ngettext): Introduce a new macro to help with
2464         internationalising plurals.   Use it to allow better
2465         translations of format strings.
2466         * locate/locate.c: Likewise.
2467
2468 2008-01-07  James Youngman  <jay@gnu.org>
2469
2470         * xargs/xargs.c: (main): Standardise on "Warning" instead of
2471         "warning" in messages.
2472
2473         * xargs/xargs.c: (add_proc): Use x2nrealloc to extend the pids
2474         array, rather than doubling the size of the buffer (since the old
2475         aproach was vulnerable to overflow).
2476
2477         Reap all available child processes before every fork.  This fixes
2478         Savannah bug #21960.
2479         * xargs/xargs.c: (proc_max): since this is a non-negative
2480         quantity, make it unsigned.
2481         (procs_executing): Likewise.
2482         (pids_alloc): Likewise (using size_t).
2483         (procs_executed): In order to prevent possible overflow, make this
2484         a boolean, not a count.  We only cared if the previous counter was
2485         zero or not, anwyay.
2486         (add_proc): Set procs_executed to true rather than incrementing it.
2487         (wait_for_proc): When called, always reap all available children.
2488         Add an extra argument which is the minimum number of children we
2489         must reap before returning.
2490         (wait_for_proc_all): Pass the new extra argument.
2491         (xargs_do_exec): Call wait_for_proc() to reap all available
2492         children before forking a new child.  Modify other calls to
2493         wait_for_proc to pass the new extra argument.
2494         * NEWS: Mention this change.
2495
2496 2007-12-20  James Youngman  <jay@gnu.org>
2497
2498         * find/fstype.c, find/ftsfind.c, find/parser.c, find/pred.c,
2499         find/tree.c, lib/regextype.c, locate/locate.c, xargs/xargs.c,
2500         find.c: Backed out positional paremeter change, as the use of
2501         positional parameters was over-complex and unnecessary.  We'll
2502         re-apply the pluralisation support change soon, but without the
2503         positional parameters.
2504
2505 2007-12-20  Jakub Bogusz <qboosh@pld-linux.org> (tiny change)
2506
2507         * xargs/xargs.c (parse_num): Corrected typo in format string
2508         message.
2509
2510 2007-12-20  Clytie Siddall <clytie@riverland.net.au> (tiny change)
2511
2512         * find/find.c (wd_sanity_check): Corrected typo in the format
2513         string for an error message, which might cause a crash in
2514         "oldfind" if a directory we moved into turned out to be a symbolic
2515         link that moved while we were trying to change directory.
2516
2517 2007-12-20  James Youngman  <jay@gnu.org>
2518
2519         * configure.ac: Advance the version number, as we are moving on
2520         from 4.3.12.
2521         * NEWS: Likewise
2522
2523 2007-12-19  James Youngman  <jay@gnu.org>
2524
2525         * find/find.c (ngettext): Introduce a new macro to help with
2526         internationalising plurals.   Use it with positional parameters in
2527         order to allow better translations of format strings.
2528         * find/fstype.c, find/ftsfind.c, find/parser.c, find/pred.c,
2529         find/tree.c, lib/regextype.c, locate/locate.c, xargs/xargs.c: Likewise.
2530
2531 2007-12-19  Benno Schulenberg <coordinator@translationproject.org> (tiny change)
2532
2533         * find/find.1: Corrected two typos.
2534
2535 2007-12-19  James Youngman  <jay@gnu.org>
2536
2537         * po/nl.po: Updated Dutch translation from the Translation project.
2538         * po/pl.po: Likewise for the Polish translation.
2539         * po/sv.po: Likewise for the Swedish translation.
2540         * po/vi.po: Likewise for the Vietnamese translation.
2541
2542 2007-12-13  Eric Blake  <ebb9@byu.net>
2543
2544         Allow bootstrapping with autoconf 2.61a.
2545         * configure.ac (AC_AIX, AC_ISC_POSIX): Delete, now that gnulib
2546         takes care of this.
2547         (jy_AC_TYPE_INTMAX_T): Delete, now that gnulib stdint module takes
2548         care of this.
2549
2550 2007-12-09  James Youngman  <jay@gnu.org>
2551
2552         * doc/perm.texi: Updated from the upstream source.
2553
2554         * po/nl.po, po/pt.po: Updated from the Translation Project.
2555
2556 2007-12-08  James Youngman  <jay@gnu.org>
2557
2558         * xargs/xargs.1: Added examples on stdin handling and more
2559         efficient core file deletion.
2560         * NEWS: Mention this.
2561
2562         * doc/.cvsignore: Ignore regexprops-generic.texi.
2563         * doc/.gitignore: ditto
2564
2565 2007-12-04  James Youngman  <jay@gnu.org>
2566
2567         Fix Savannah bug #15384, find misbehaves when parent directory is
2568         not readable.
2569         * find/testsuite/find.posix/parent.exp: New test
2570         * find/testsuite/find.posix/parent.xo: New test
2571         * find/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO):
2572         Added parent.exp, parent.xo.
2573         * find/find.c (safely_chdir): If safely_chdir_nofollow fails with
2574         SafeChdirFailDestUnreadable, fall back on safely_chdir_lstat.
2575
2576         * find/find.1: Formatting fixes; options should be in bold.
2577
2578 2007-12-02  James Youngman  <jay@gnu.org>
2579
2580         Fix Savannah bug #20802, find -delete anomalies
2581         * find/pred.c (pred_delete): Set find's exit status to nonzero if
2582         -delete fails.
2583         * find/find.1 (-delete): Document this.
2584         * doc/find.texi (Delete Files): Document this.
2585         * NEWS: Mention the fix.
2586
2587 2007-11-30  James Youngman  <jay@gnu.org>
2588
2589         Fix Savannah bug #20865 (-prune -delete without an explicit
2590         -depth is now an error).
2591         * find/parser.c (check_option_combinations): Diagnose the
2592         situation where -delete and -prune are both used, because -delete
2593         turns on -depth and -depth makes -prune do nothing.
2594         * find/tree.c (build_expression_tree): call
2595         check_option_combinations().
2596         * find/defs.h (struct options): Add new boolean field
2597         explicit_depth.
2598         Also declare check_option_combinations.
2599         * find/util.c (set_option_defaults): Initialise explicit_depth.
2600         * NEWS: Mention this fix.
2601
2602 2007-11-29  James Youngman  <jay@gnu.org>
2603
2604         Support the generation of regexprops-generic.texi.
2605         * lib/regextype.h (get_regex_type_context): Used to indicate if a
2606         particular type of regular expression is of interest for
2607         regexprops.texi (which is findutils-specific) or
2608         regexprops-generic.texi (which is not).   The "context" is simply
2609         a flag set in a word.
2610         * lib/regextype.c (get_regex_type_context): Implement this.
2611         (regex_map): Assign a context to each regular expression type.
2612         * lib/regexprops.c: Use the context information from regextype.c
2613         to decide which regular expression types to docuemnt in the
2614         output.  The selection is indicated on the command line; "generic"
2615         and "findutils" are supported.
2616         (copying): New function, which emits a copyright header into the
2617         output.
2618         (comment): New function for emitting a comment.
2619         (ignore): New function which returns nonzero when the indicated
2620         type of regular expression is not of interest for this version of
2621         the document.
2622         (menu): Miss out the non-interesteing regex types.
2623         (get_next): Returns the regex type name for the "next" pointer,
2624         taking into account which regex types are ignored.
2625         (describe_all): Take into account which regex types are ignored,
2626         and emit a copying header also.   Include a comment indicating
2627         which "context" was of interest when generating the output.
2628         * doc/Makefile.am: Add regexprops-generic.texi.  Generate this
2629         file from regexprops.c.
2630
2631         Check gnulib out with native git, rather than git-cvspserver.
2632         This fixes Savannah bug #21568, for the second time.
2633         * import-gnulib.config (gnulib_version): Switch to using a git
2634         commit id and native git, since git-cvspserver silently fails to
2635         support "cvs update -D".
2636         * import-gnulib.sh (do_checkout): Check gnulib out with git rather
2637         than CVS.
2638         (main): Require 'git' to be available.
2639         (move_cvsdir): Remove any pre-existing gnulib-cvs directory.
2640         * doc/find-maint.texi (Using the GNU Portability Library): Desribe
2641         how we now obtain gnulib.  Update the instructions on how we patch
2642         gnulib.
2643         * .gitignore: Ignore gnulib-git, not gnulib-cvs
2644         * .cvsignore: Ditto
2645         * Makefile.am (findutils-check-smells): Change from gnulib-cvs to
2646         gnulib-git.
2647         * README-CVS: Mention the extra dependency on git.
2648         * NEWS: Mention this change.
2649
2650         Add test case for Savannah bug #20803 (-prune return value).
2651         * find/testsuite/find.posix/prune-result.exp: New test for
2652         Savannah bug #20803.
2653         * find/testsuite/find.posix/prune-result.xo: Expected otuput for
2654         new test prune-result.exp.
2655         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added
2656         find.posix/prune-result.exp
2657         (EXTRA_DIST_XO): Added find.posix/prune-result.xo
2658
2659 2007-11-27  James Youngman  <jay@gnu.org>
2660
2661         * find/pred.c (pred_prune): Always return true.  This fixes
2662         Savannah bug #20803.
2663         * doc/find.texi (Directories): Document the change to -prune.
2664         * find/find.1: Document the change.
2665         * NEWS: Mention the fix.
2666
2667 2007-11-26  James Youngman  <jay@gnu.org>
2668
2669         Fix Savannah bug #20970, handling of trailing slashes with -name.
2670         * find/pred.c (pred_name_common): Strip trailing slashes from the
2671         pathname before applying fnmatch() to it.  This fixes Savannah bug
2672         #20970.
2673         * find/testsuite/find.posix/nameslash.exp: Test case for bug #20970.
2674         * find/testsuite/find.posix/nameslash.xo: Expected output file for
2675         same.
2676         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added nameslash.exp.
2677         (EXTRA_DIST_XO): Added nameslash.xo.
2678
2679         Fix Savannah bug #21634, No copy of FDL1.2 included in source
2680         code.
2681         * doc/find.texi: Change license to the GNU Free Documentation
2682         License 1.2.
2683         (GNU Free Documentation License): Include fdl.texi
2684         * doc/find-maint.texi (GNU Free Documentation License): Include a
2685         copy of the FDL (it was already under this license).
2686         * doc/Makefile.am (find_maint_TEXINFOS): Include fdl.texi
2687         (find_TEXINFOS): Include fdl.texi
2688         * import-gnulib.config (modules): Include gpl-3.0 and fdl.
2689
2690         * doc/perm.texi: Added copyright license, following the license of
2691         the original source document (perm.texi from coreutils).
2692
2693 2007-11-25  James Youngman  <jay@gnu.org>
2694
2695         * Makefile.am (jy-regex-fix): Comment that the regex.c fix needs
2696         to stay until we no longer support Automate-1.9.
2697
2698         * doc/perm.texi (Mode Structure): Fix setgid/setuid typo.
2699
2700 2007-11-24  James Youngman  <jay@gnu.org>
2701
2702         * doc/find.texi (Mode Bits): Correct the warning about the change
2703         in behaviour of -perm /000 to indicate that the change has
2704         happened now.  This fixes Savannah bug #21628.
2705         * NEWS: Mention this.
2706
2707 2007-11-22  James Youngman  <jay@gnu.org>
2708
2709         POSIXLY_CORRECT turns off warnings.
2710         * find/defs.h (struct options): Added member posixly_correct.
2711         This is set when the POSIXLY_CORRECT environment variable is set.
2712         * find/util.c (set_option_defaults): Set options.posixly_correct
2713         if the POSIXLY_CORRECT environment variable is set.
2714         (set_option_defaults): Turn off warnings when POSIXLY_CORRECT is
2715         in force.
2716         * find/find.1: Document this.
2717         (Environment Variables): Likewise.
2718         (Warning Messages): Likewise.
2719
2720         Non-POSIX compliant arguments to -perm generate an error when
2721         POSIXLY_CORRECT is set.
2722         * find/parser.c (parse_table): Indicate which primaries are
2723         defined by POSIX.
2724         (non_posix_mode): New function; issues an error message when a
2725         non-POSIX-compliant argument to -perm is used (and POSIXLY_CORRECT
2726         is in force).
2727         (parse_perm): Call non_posix_mode when a non-POSIX-compliant mode
2728         argument is seen.
2729         * find/testsuite/find.gnu/posix-perminvalid.exp: New file; tests
2730         invalid arguments to -perm.
2731         * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
2732         posix-perminvalid.exp.
2733         * find/find.1: Document this.
2734         * doc/find.texi (Mode Bits): Likewise
2735         (Environment Variables): Likewise
2736
2737
2738         * xargs/xargs.1: Options should be bold, not italic; filenames
2739         should also be italic.  OPTIONS should be a section, not a
2740         subsection.  In the description of --max-lines, "max-args" was
2741         corrected to "max-lines".  Turn off hyphenation in the SYNOPSIS
2742         section.  This fixes Savannah bug #21270.
2743
2744 2007-11-13  James Youngman  <jay@gnu.org>
2745
2746         * NEWS, configure.ac: Prepare for the release of findutils-4.3.10.
2747
2748         * import-gnulib.sh (usage): If the existing CVS working tree for
2749         gnulib in the source tree does not yet point at the
2750         git-cvs-pserver repository, move the old gnulib working tree out
2751         of the way and do a fresh checkout.  This fixes Savannah bug
2752         #21568.
2753
2754 2007-11-11  James Youngman  <jay@gnu.org>
2755
2756
2757         * configure.ac: Prepared for release of findutils-4.3.9.
2758         * NEWS: Likewise.
2759
2760         * po/POTFILES.in: Use gnulib/lib/getdate.y rather than
2761         gnulib/lib/getdate.c, because the former is the source file, and
2762         because without this change the update-po target of po/Makefile
2763         fails.
2764
2765         * import-gnulib.config (gnulib_version): Move to gnulib
2766         2007-11-10.
2767
2768         * po/hu.po, po/nl.po: Updated from Translation Project.
2769
2770 2007-09-08  James Youngman  <jay@gnu.org>
2771
2772         Better documentation on $PATH security checks.
2773         * doc/find.texi (Single File): Better explanation of what makes
2774         certain values of $PATH insecure.  This fixes Savannah bug
2775         #20951.
2776         * find/find.1 (-execdir): Likewise.
2777
2778         Document interaction of -depth/-delete/-prune.
2779         * doc/find.texi (Directories): Mention that "-prune ... -delete"
2780         will not do what you want and will cause the deletion of more
2781         files than you probably intended.
2782         (Delete Files): Likewise, suggest using "-depth" when testing
2783         command lines you plan to eventually add "-delete" to.
2784         (Cleaning Up): Add -depth explicitly to an example which uses
2785         -delete.
2786         * find/find.1 (-depth): Mention that -delete also implies -depth.
2787         (-delete): Warn against putting -delete first.
2788         (-prune): Also warn against -prune ... -delete.
2789         NEWS: Mention these changes.
2790
2791 2007-08-23  Eric Blake  <ebb9@byu.net>
2792
2793         Pick up gnulib change to getline module.
2794         * import-gnulib.config (gnulib_version): Bump date.
2795         * locate/bigram.c: Use <stdio.h>, not getline.h.
2796         * locate/code.c: Likewise.
2797         * locate/frcode.c: Likewise.
2798         * locate/locate.c: Likewise.
2799
2800         * po/ChangeLog: Delete, merge into this file.
2801
2802 2007-08-23  James Youngman  <jay@gnu.org>
2803
2804         * po/nl.po: Updated from Translation Project
2805
2806         * find/parser.c (check_path_safety): Assume the path is safe is
2807         $PATH is not set.  This avoids a segfault in that situation
2808         and thus fixes Savannah bug #20834.
2809
2810 2007-08-22  James Youngman  <jay@gnu.org>
2811
2812         * find/parser.c (parse_path): This is the 'canonical' name once
2813         again.
2814         (parse_wholename): This is not.
2815         (parse_ipath): No longer deprecated.
2816         * NEWS: Mention this.
2817
2818 2007-08-22  Eric Blake  <ebb9@byu.net>
2819
2820         Fix Savannah bug #20871.
2821         * find/find.c (main): Remove bogus assertion.
2822         * NEWS: Document the fix.
2823
2824         Update to recent gnulib addition of idcache.h.
2825         * lib/listfile.c (getuser, getgroup): Use header rather than
2826         declaring things ourself.
2827         * po/POTFILES.in (locate/frcode.c): Add missing file.
2828
2829 2007-08-21  Eric Blake  <ebb9@byu.net>
2830
2831         Fix for Savannah bug #20273, find -ok with seekable stdin.
2832         * find/find.c (main): Use close_stdin, not close_stdout.
2833         * import-gnulib.config (gnulib_version): Pick up yesno tests.
2834         * NEWS: Document the change.
2835         * build-aux/.cvsignore: Ignore compile.
2836
2837 2007-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2838         and Eric Blake  <ebb9@byu.net>
2839
2840         Improve translation of xstrtol messages.
2841         * import-gnulib.config (destdir): Upgrade gnulib to 2007-08-11.
2842         * locate/locate.c (dolocate): Adjust to API change of xstrtol
2843         gnulib module.
2844         * po/POTFILES.in: Likewise.
2845         * NEWS: Document the enhancement.
2846
2847 2007-08-20  James Youngman  <jay@gnu.org>
2848
2849         * doc/find.texi (Directories): Clarify that built commands which
2850         have not been executed yet will be executed before find quits,
2851         even with -quit.  Also clarify the difference between -prune and
2852         -quit.
2853
2854 2007-08-18  Eric Blake  <ebb9@byu.net>
2855
2856         Fix Savannah bug #20751.
2857         * lib/listfile.c (list_file): Accomodate gnulib change of 3 Jul
2858         2006.
2859         * NEWS: Document this.
2860         Reported by Nigel Stepp.
2861         * THANKS: Sort and update.
2862         * AUTHORS: Add myself.
2863
2864 2007-08-05  Eric Blake  <ebb9@byu.net>
2865
2866         Fix Savannah bugs #20662, #20688.
2867         * find/find.c (at_top): Avoid memory leak.
2868         * find/pred.c (do_fprintf, pred_iname, pred_name): Likewise.
2869         (pred_name_common): New function, factored from pred_iname and
2870         pred_name.
2871         * find/parser.c (check_name_arg): Let -nowarn silence -name /.
2872         * locate/locate.c (visit_basename): Avoid memory leak.
2873         * NEWS: Document the changes.
2874         * doc/find.texi (Warning Messages): Document -nowarn's effect on
2875         -name and -iname.
2876         * find/testsuite/find.gnu/name-slash.exp: New test, to ensure
2877         20662 doesn't regress on '-name /', and that 20688 silences the
2878         warning.
2879         * find/testsuite/find.gnu/printf-slash.exp: Likewise.
2880         * find/testsuite/find.gnu/name-slash.xo: Expected results.
2881         * find/testsuite/find.gnu/printf-slash.xo: Likewise.
2882         * find/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
2883         Distribute new tests.
2884
2885 2007-07-31  Eric Blake  <ebb9@byu.net>
2886
2887         Allow choice of default arg size, Savannah bug #20594.
2888         * configure.ac (DEFAULT_ARG_SIZE): Check environment for a default
2889         size override.
2890         * lib/buildcmd.c (bc_use_sensible_arg_max): Use default size from
2891         configure, if requested.
2892         * README (DEFAULT_ARG_SIZE): Mention the ability to tune this at
2893         configure time.
2894         * NEWS: Document the change.
2895
2896 2007-07-29  James Youngman  <jay@gnu.org>
2897
2898         * po/tr.po: Updated from Translation Project.
2899
2900 2007-07-26  Eric Blake  <ebb9@byu.net>
2901
2902         * doc/.cvsignore: Ignore more generated documentation.
2903
2904 2007-07-23  Eric Blake  <ebb9@byu.net>
2905
2906         * find/parser.c (parse_version): Avoid compiler warning.
2907         * locate/code.c (includes): Likewise.
2908
2909 2007-07-22  Eric Blake  <ebb9@byu.net>
2910
2911         * po/POTFILES.in: Add lib/findutils-version.c.
2912
2913 2007-07-22  James Youngman  <jay@gnu.org>
2914
2915         * find/find.1: Corrected a number of typos and fixed up the
2916         alphabetical section ordering.  This fixes Savannah bug #20552.
2917
2918         Version banners now comply with the GNU coding standard.
2919         * find/parser.c (parse_version): Use display_findutils_version()
2920         instead of printing the information manually.  Don't include
2921         gnulib-version.h since we no longer directly use that header.
2922         * lib/findutils-version.c: Added
2923         * lib/findutils-version.h: Added
2924         * import-gnulib.config (modules): Added version-etc and
2925         version-etc-fsf.
2926         * lib/Makefile.am (libfind_a_SOURCES): added findutils-version.c.
2927         * find/version.c: Removed
2928         * find/Makefile.am: Remove version.c
2929         * locate/Makefile.am: Don't link ../find/version.o
2930         * xargs/Makefile.am: Ditto
2931         * xargs/xargs.c (main): Use display_findutils_version()
2932         * locate/code.c (main): Ditto
2933         * locate/frcode.c (main): Ditto
2934         * locate/locate.c (dolocate): Ditto
2935         * locate/updatedb.sh (version): Display copyright information in
2936         the right format.   Also ensure that we exit with a nonzero status
2937         if there was an output error for --help and --version.
2938         * find/testsuite/config/unix.exp (find_version): Adjust for
2939         --version format change
2940         * locate/testsuite/config/unix.exp (locate_version): Ditto
2941         * xargs/testsuite/config/unix.exp (xargs_version): Ditto
2942         * NEWS: Mention the change
2943
2944 2007-07-19  Eric Blake  <ebb9@byu.net>
2945
2946         * po/POTFILES.in: Update to reflect current location of
2947         translatable strings.
2948
2949 2007-07-17  Eric Blake  <ebb9@byu.net>
2950
2951         Ensure 'make distcheck' can pass on cygwin.
2952         * configure.in: Rename...
2953         * configure.ac: ...to this, to match automake recommendations.
2954         * NEWS: Add release dates.
2955         * doc/find-maint.texi: Remove trailing whitespace.
2956         (Documentation): Document where release dates are usefully
2957         recorded.
2958         * locate/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Be
2959         aware of .exe.
2960         * .cvsignore: Ignore 'make dist' files.
2961         * po/.cvsignore: Ignore remove-potcdate.sed.
2962
2963 2007-07-14  Eric Blake  <ebb9@byu.net>
2964
2965         * import-gnulib.config (gnulib_version): Bump date, to pick
2966         up fix in canonicalize module testing.
2967
2968 2007-07-06  James Youngman  <jay@gnu.org>
2969
2970         * po/uk.po, po/nl.po, po/vi.po: Updated from Translation Project.
2971
2972 2007-07-04  James Youngman  <jay@gnu.org>
2973
2974         * NEWS: Fixed typos in description of bugfix for bug #20310.
2975
2976 2007-07-03  James Youngman  <jay@gnu.org>
2977
2978         Fix Savannah bug #20310.
2979         * m4/nullsort.m4: If we are cross compiling, assume "sort -z" does
2980         not work on the target.
2981
2982         Manpage improvements.
2983         * find/find.1: More consistent use of quotation marks.
2984         *  locate/locate.1 (HISTORY): New section.
2985
2986 2007-07-02  James Youngman  <jay@gnu.org>
2987
2988         * import-gnulib.sh: (run_gnulib_tool): Don't pass --gpl3 to
2989         gnulib-tool, since the program does not have that option (that was
2990         a local change which proved not to be necessary).
2991
2992         GPL3 migration.
2993         * COPYING: Migrate to version 3 of the GNU General Public license.
2994         * Makefile.am: ditto
2995         * build-aux/check-testfiles.sh: ditto
2996         * build-aux/src-sniff.py: ditto
2997         * debian/copyright: ditto
2998         * doc/find-maint.texi: ditto
2999         * find/defs.h: ditto
3000         * find/find.c: ditto
3001         * find/finddata.c: ditto
3002         * find/fstype.c: ditto
3003         * find/ftsfind.c: ditto
3004         * find/parser.c: ditto
3005         * find/pred.c: ditto
3006         * find/testsuite/config/unix.exp: ditto
3007         * find/tree.c: ditto
3008         * find/util.c: ditto
3009         * import-gnulib.config: ditto
3010         * import-gnulib.sh: ditto
3011         * lib/buildcmd.c: ditto
3012         * lib/buildcmd.h: ditto
3013         * lib/dircallback.c: ditto
3014         * lib/dircallback.h: ditto
3015         * lib/extendbuf.c: ditto
3016         * lib/extendbuf.h: ditto
3017         * lib/forcefindlib.c: ditto
3018         * lib/gnulib-version.h: ditto
3019         * lib/listfile.c: ditto
3020         * lib/listfile.h: ditto
3021         * lib/modetype.h: ditto
3022         * lib/nextelem.c: ditto
3023         * lib/nextelem.h: ditto
3024         * lib/printquoted.c: ditto
3025         * lib/printquoted.h: ditto
3026         * lib/qmark.c: ditto
3027         * lib/regexprops.c: ditto
3028         * lib/regextype.c: ditto
3029         * lib/regextype.h: ditto
3030         * lib/savedirinfo.c: ditto
3031         * lib/savedirinfo.h: ditto
3032         * lib/strspn.c: ditto
3033         * lib/wait.h: ditto
3034         * lib/waitpid.c: ditto
3035         * locate/bigram.c: ditto
3036         * locate/code.c: ditto
3037         * locate/frcode.c: ditto
3038         * locate/locate.c: ditto
3039         * locate/locatedb.h: ditto
3040         * locate/testsuite/config/unix.exp: ditto
3041         * locate/updatedb.sh: ditto
3042         * locate/word_io.c: ditto
3043         * po/fetch-po-files: ditto
3044         * xargs/testsuite/config/unix.exp: ditto
3045         * xargs/xargs.c: ditto
3046
3047         Typo fixes.
3048         * doc/find.texi (Deleting Files): Fixed a typo.
3049         (Deleting Files): Likewise.
3050
3051         New worked example for find.
3052         * doc/find.texi (Copying A Subset of Files): Added a new worked
3053         example.
3054
3055         * doc/find.texi (Updating A Timestamp File): Indicate that %A@ now
3056         includes a sub-second part on many systems.
3057
3058         Include <fcntl.h> unconditionally.
3059         * import-gnulib.config (modules): Also use the fcntl module.
3060         * find/find.c: #include <fcntl.h> unconditionally, since
3061         gnulib provides it if it is absent.
3062         * find/fstype.c: Likewise.
3063         * find/ftsfind.c: Likewise.
3064         * find/parser.c: Likewise.
3065         * find/util.c: Likewise.
3066         * locate/locate.c: Likewise.
3067
3068 2007-06-30  Eric Blake  <ebb9@byu.net>
3069
3070         * find/pred.c (pred_timewindow): Avoid gcc warnings.
3071         (format_date): Likewise.
3072         * find/tree.c (calculate_derived_rates): Likewise.
3073         * locate/word_io.c (getword): Likewise.
3074
3075 2007-06-30  James Youngman  <jay@gnu.org>
3076
3077         * find/find.1 (EXAMPLES): Added an example of using find and cpio -p
3078         to copy a directory tree, with pruning and omitted files.
3079
3080         * find/pred.c (format_date): Use verify_true for constant
3081         conditions rather than assert.
3082         * xargs/xargs.c (main): Ditto.
3083
3084         Enhancements to the code smell detector.
3085         * Makefile.am (findutils-check-smells): Automate the calling of
3086         build-aux/src-sniff.py.
3087         * build-aux/src-sniff.py: Rework to use a list of regex-based
3088         sniffers, to allow checking types of file other than C.  Allow
3089         file-based regex sniffers to give an indication of the line number
3090         where they think the problem (or part of the problem) exists.
3091         Added code smell detectors for a sample Bourne shell problem and
3092         for out-of-date FSF addresses.
3093
3094         * find/tree.c (get_pred_cost): Eliminate unused variable.
3095
3096         Fix Savannah bug #20263 in a more portable way.
3097         * find/tree.c (cost_table_comparison): Avoid casting function
3098         pointers to poiter-to-object, since this is not portable (or
3099         of course conforming).  Instead, use memcmp().
3100
3101 2007-06-28  Eric Blake  <ebb9@byu.net>
3102
3103         * import-gnulib.sh (run_gnulib_tool): Speed operation when
3104         updating an existing tree.
3105
3106         Allow 'make check' to work without prior 'make all'.
3107         * find/Makefile.am (SUBDIRS): Build in . before testsuite.
3108         * locate/Makefile.am (SUBDIRS): Likewise.
3109         * xargs/Makefile.am (SUBDIRS): Likewise.
3110
3111         Fix Savannah bug #20273, xargs -E with seekable stdin.
3112         * import-gnulib.config (modules): Sort, add closein.
3113         * xargs/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO)
3114         (EXTRA_DIST_XI): Add new test.
3115         * xargs/testsuite/config/unix.exp (xargs_start): Support optional
3116         argument to allow test to run a subshell.
3117         * xargs/testsuite/inputs/sv-bug-20273.xi: New file.
3118         * xargs/testsuite/xargs.posix/sv-bug-20273.xo: Likewise.
3119         * xargs/testsuite/xargs.posix/sv-but-20273.exp: Likewise.
3120         * xargs/xargs.c (main): Use close_stdin, not close_stdout.
3121         * NEWS: Document the fix.
3122
3123 2007-06-27  James Youngman  <jay@gnu.org>
3124
3125         Added a maintenance manual.
3126         * doc/find-maint.texi: New file.
3127         * doc/Makefile.am (info_TEXINFOS): Added doc/find-main.texi.
3128         * doc/find.texi (Introduction): Fixed typo.
3129
3130 2007-06-26  Eric Blake  <ebb9@byu.net>
3131
3132         * import-gnulib.config (modules): Allow ./configure
3133         --disable-assert.
3134
3135 2007-06-26  James Youngman  <jay@gnu.org>
3136
3137         * build-aux/src-sniff.py: Detect uses of struct stat where the
3138         header file was not included.
3139         * find/find.c: Fix this, and uses of assert without a following
3140         space (the coding standard requires a space, but there are still
3141         a number of cases where other functions are called with no
3142         following space).
3143         * find/fstype.c: Ditto.
3144         * find/ftsfind.c: Ditto.
3145         * find/parser.c: Ditto.
3146         * find/pred.c: Ditto.
3147         * find/tree.c: Ditto.
3148         * find/util.c: Ditto.
3149         * lib/buildcmd.c: Ditto.
3150         * lib/buildcmd.h: Ditto.
3151         * lib/extendbuf.c: Ditto.
3152         * locate/frcode.c: Ditto.
3153         * locate/locate.c: Ditto.
3154         * locate/word_io.c: Ditto.
3155         * xargs/xargs.c: Ditto.
3156
3157         * find/tree.c (cost_table_comparison): Avoid < comparison between
3158         function pointer types.  Instead cast the function pointers to
3159         (const void*).  Both alternatives are undefined C, but the former
3160         actually fails to compile on some systems.   This fixes Savannah
3161         bug #20263.
3162         * NEWS: mention the fix
3163
3164         * find/tree.c (calculate_derived_rates): Removed assignment to
3165         rate variable following an assert(0) call, which had been added to
3166         silence a "used before initialised" warning, and replace it with a
3167         call to abort, which (a) correctly halts execution if _NDEBUG is
3168         defined and (b) more accurately documents what's happening.
3169
3170         * find/parser.c (get_stat_Ytime): Removed redundant call to abort.
3171
3172         * find/util.c (debug_stat): For consistency, use assert (0) rather
3173         than assert (false).
3174
3175 2007-06-26  James Youngman  <jay@gnu.org>
3176
3177         * README-alpha: Mention the findutils-patches mailng list and the
3178         archives for findutils-patches and bug-findutils.
3179
3180         * po/bg.po: Updated from Translation Project.
3181
3182 2007-06-25  James Youngman  <jay@gnu.org>
3183
3184         * po/sv.po: Updated Swedish translation.
3185
3186 2007-06-24  James Youngman  <jay@gnu.org>
3187
3188         * build-aux/.gitignore, debian/.gitignore, doc/.gitignore,
3189         find/.gitignore, find/testsuite/.gitignore, .gitignore,
3190         lib/.gitignore, locate/.gitignore, locate/testsuite/.gitignore,
3191         m4/.gitignore, po/.gitignore, xargs/.gitignore,
3192         xargs/testsuite/.gitignore: New files to make it more painless to
3193         track findutils sources with git.
3194
3195         * NEWS: Mention the previous change to doc/find.texi.
3196
3197 2007-06-23  James Youngman  <jay@gnu.org>
3198
3199         * doc/find.texi (Introduction): Recommend that people check they
3200         are using the latest version before reporting a bug.
3201
3202 2007-06-22  James Youngman  <jay@gnu.org>
3203
3204         Better documentation for the fractional part of seconds fields for
3205         -printf and similar actions.
3206         * doc/find.texi (Time Components): Point out that the seconds
3207         field of the timestamp is often printed out with a fractional part
3208         of unspecified length and precision.  The '%Tc' field has no
3209         seconds part.
3210         (Combined Time Formats): Point out the same thing for '%T@'.
3211         * find/find.1 (%A): Point out the same thing.
3212         * NEWS: Mention these changes.
3213
3214         Fix various lint-type complaints taken from the rules in the
3215         coreutils Makefile.maint file (see build-aux/src-sniff.py).
3216         * xargs/xargs.c: Removed unnecessary parentheses in "#if defined"
3217         checks.
3218         (main): Don't cast the return value of xmalloc.
3219         (add_proc): Don't cast the return value of xmalloc.
3220         * lib/regextype.c: Don't include quotearg.h, we don't need it.
3221         * lib/dircallback.c, lib/nextelem.c, lib/prontquoted.c,
3222         lib/qmark.c, lib/strspn.c, lib/waitpid.c: Assume config.h is available.
3223         * lib/extendbuf.c: Ditto
3224         * lib/listfile.c: Ditto.  Also removed unnecessary parentheses in
3225         "#if defined" checks.
3226         (get_link_name): Don't cast the result of xmalloc.
3227         * lib/bigram.c: Removed unnecessary parentheses in "#if defined"
3228         checks.
3229         * lib/savedirinfo.c: Assume config.h is available.  Also removed
3230         unnecessary parentheses in "#if defined" checks.
3231         * lib/buildcmd.c (bc_do_insert): Don'tcast the result of xmalloc().
3232         * find/tree.c (build_expression_tree): Don't cast the argument to free().
3233         * find/ftsfind.c (set_close_on_exec): Removed unnecessary
3234         parentheses in "#if defined" checks.  Also changed "filesystem" ->
3235         "file system"
3236         * find/util.c (check_nofollow): Removed unnecessary parentheses in
3237         "#if defined" checks.
3238         * find/parser.c (estimate_fstype_success_rate): ditto.
3239         (insert_regex): Do not cast the result of xmaloc().  Removed unnecessary
3240         parentheses in "#if defined" checks.  Also changed "filesystem" ->
3241         "file system"
3242         * find/pred.c: ditto
3243         * find/find.c: "the the" -> "the", "filesystem" -> "file system"
3244         * find/fstype.c: "filesystem" -> "file system" (in comments and
3245         static functions)
3246         * locate/frcode.c: Removed unnecessary parentheses in "#if
3247         defined" checks.
3248         * locate/locate.c (search_one_database): Don't cast the return
3249         value of xmalloc.
3250         (dolocate): Mark error message for translation.
3251
3252 2007-06-21  Eric Blake  <ebb9@byu.net>
3253
3254         * locate/.cvsignore: Ignore dblocation.texi.
3255         * build-aux/.cvsignore: Ignore Makefile.
3256         * locate/locate.c (set_max_db_age): Fix typo in error message.
3257
3258 2007-06-19  Eric Blake  <ebb9@byu.net>
3259
3260         Fix compilation on cygwin, Savannah bug #20210.
3261         * import-gnulib.config (gnulib_version): Import strcasestr and
3262         updated canonicalize-lgpl-tests.
3263         * lib/dircallback.c (includes): Track gnulib changes.
3264
3265 2007-06-14  James Youngman  <jay@gnu.org>
3266
3267         * find/parser.c (parse_time): Use the variable comp, which holds
3268         the planned comparison type, rather than the structure tval, which
3269         has not been initialised yet and contains a random value.  This
3270         fixes Savannah bug #20139.
3271         * NEWS: Mention the bugfix.
3272
3273 2007-06-13  James Youngman  <jay@gnu.org>
3274
3275         * po/pl.po: Updated Polish translation.
3276
3277 2007-06-12  James Youngman  <jay@gnu.org>
3278
3279         Release 4.3.8.
3280
3281         * find/find.1 (HISTORY): Document when the find tests -readable,
3282         -writable, -executable and the option -regextype were introduced.
3283
3284 2007-06-12  Nix  <nix@esperi.org.uk> (tiny change)
3285
3286         * locate/locate.c (drop_privs): Use groups[0] rather than
3287         groups[1], since groups[] is a one-element array.  This is a
3288         buffer overrun affecting root only.  In theory it could affect
3289         setuid installations, but I (James Youngman) cannot find an explot
3290         mechanism for it.  This fixes Savannah bug#20157.
3291         * NEWS: Mention this fix.
3292
3293 2007-06-12  James Youngman  <jay@gnu.org>
3294
3295         Make the test suite work when run as root.
3296         * find/testsuite/config/unix.exp (fs_superuser): Abstract out the
3297         check which discovers if we have superuser privileges on the
3298         filesystem (taken from access.exp).
3299         * find/testsuite/find.gnu/access.exp: Call fs_superuser.
3300         * find/testsuite/find.gnu/fprint-unwritable.exp: Use fs_superuser.
3301
3302         * po/vi.po, ga.po, nl.po: Updated translations
3303         * po/findutils.pot: Updated template file
3304
3305 2007-06-09  James Youngman  <jay@gnu.org>
3306
3307         Release 4.3.7.
3308
3309         Check that we can correctly read old-format databases which are
3310         big-endian or little endian.
3311         * locate/testsuite/config/unix.exp (locate_from_db): New function;
3312         supports testing locate against a provided database.
3313         * locate/testsuite/locate.gnu/bigendian.exp: New test; make sure
3314         we can read an old-format big-endian database.
3315         * locate/testsuite/locate.gnu/bigendian.xo: Expected output from
3316         bigendian.exp test.
3317         * locate/testsuite/locate.gnu/littleendian.exp: New test; make sure
3318         we can read an old-format little-endian database.
3319         * locate/testsuite/locate.gnu/locateddb.old.powerpc.xi: Old format
3320         big endian database file, for supporting bigendian.exp.
3321         * locate/testsuite/locate.gnu/littleendian.xo: Expected output from
3322         littleendian.exp test.
3323         * locate/testsuite/locate.gnu/locateddb.old.x86.xi: Old format
3324         little endian database file, for supporting littleendian.exp.
3325         * locate/testsuite/Makefile.am: Distribute littleendian.exp,
3326         bigendian.exp and related .xi and .xo files.
3327
3328
3329         * doc/find.texi (Size Directives): Compare %b with %s/512, not
3330         %s/1024.  This fixes (again) Savannah bug #19596.
3331         * NEWS: mention the fix.
3332
3333         Avoid using the non-portable function putw().
3334         * locate/locatedb.h: Declare putword().
3335         * locate/frcode.c: Include <stdbool.h> as locatedb.h now requires
3336         it.
3337         * locate/code.c (main): Use putword() rather than putw(), because
3338         the latter was removed from SUSv3. This fixes Savannah bug #19980.
3339         Also include <stdbool.h> as locatedb.h now requires this.
3340         * locate/word_io.c (putword): Define the new function putword.
3341
3342         Ensure that <config.h> is included before any system header
3343         * find/defs.h: Do not include <config.h> from "defs.h".  Instead
3344         just complain if it was not already included, since it needs  to
3345         be included first of all, even before system headers (in case
3346         gnulib had replaced a system header).  Check
3347         ALREADY_INCLUDED_CONFIG_H to determine this.
3348         * configure.in: Always define ALREADY_INCLUDED_CONFIG_H in
3349         config.h.
3350         * find/find.c: Include config.h before defs.h.
3351         * find/finddata.c: ditto.
3352         * find/fstfind.c: ditto.
3353         * find/parser.c: ditto.
3354         * find/pred.c: ditto.
3355         * find/util.c: ditto
3356         * find/tree.c: ditto (fixing Savannah bug #20128).
3357
3358         * m4/noreturn.m4 (jy_AC_ATTRIBUTE_NORETURN): Use AC_LANG_PROGRAM
3359         inside AC_COMPILE_IFELSE.
3360
3361         * doc/find.texi (Security Considerations for locate): Discuss in
3362         detail the buffer overrun when reading old-format locate
3363         databases.  This is CVE reference CVE-2007-2452.
3364
3365 2007-06-05  James Youngman  <jay@gnu.org>
3366
3367         Guess the byte-order of old-format locate databases.
3368         * locate/word_io.c (getword): Make the endian_state_flag parameter
3369         an enum rather than an int.  If we are in the initial ("don't
3370         know") byte-order guessing state and the swapped value is out of
3371         range, use this as evidence that the byte order is native.
3372         * locate/locatedb.h: Declare getword accordingly.
3373         * locate/locate.c (struct process_data): Added endian_state
3374         member, which remembers for us what the big/little endian order
3375         guessing state is when we read an old-format database.
3376         (visit_old_format): Use the procdata.endian_state rather than a
3377         local variable, so that the information can persist across calls.
3378         (i_am_little_endian): Locate figures out if we needed to byteswap
3379         the words in an old-format database, but that is an implementation
3380         detail.  Therefore we figure out our own byte order so that we can
3381         produce a more relevant message for --statistics.  The
3382         i_am_little_endian() returns nonzero if the current host has
3383         little-endian byte order.
3384         (search_one_database): Report the byte-order of old-format
3385         databases.
3386
3387 2007-06-04  James Youngman  <jay@gnu.org>
3388
3389         * locate/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
3390         Added old_prefix.exp and old_prefix.xo, a new test case for long
3391         shared rpefixes with the old database format.
3392
3393         * locate/locate.c (visit_old_format): Use getword() from word_io.c
3394         instead of getw(), because getw() is not in POSIX.
3395         * locate/word_io.c: New file, providing replacement for getw().
3396         * locate/locatedb.h: Declare getword()
3397         * locate/Makefile.am (locate_SOURCES): Added word_io.c
3398
3399         * locate/testsuite/config/unix.exp (locate_start): Make the
3400         failure messages slightly more explicit; indicate what went wrong
3401         when a test fails.
3402
3403 2007-06-03  James Youngman  <jay@gnu.org>
3404
3405         * locate/locate.c (visit_old_format, extend, toolong): Extend the
3406         buffer used to build the current pathname when reading an
3407         old-format database.  The new function extend is called to do
3408         this.  The new function toolong is called to report a fatal error
3409         when the buffer size would otherwise exceed SIZE_MAX.  This fixes
3410         Savannah bug #20014, which is a security-related problem with the
3411         CVE identifier CVE-2007-2452.
3412
3413         * configure.in: Determine if the setgroups function is available,
3414         and set HAVE_SETGROUPS if so.
3415         * locate/locate.c (drop_privs): Call setgroups() only if
3416         HAVE_SETGROUPS indicates that it is available.  This fixes
3417         Savannah bug #19981.
3418
3419         * po/vi.po: Updated Vietnamese translation
3420
3421 2007-05-31  James Youngman  <jay@gnu.org>
3422
3423         * find/parser.c (parse_time): Once we have determined the
3424         comparison type, restore the original time argument since
3425         get_relative_timestamp() also wants to see it.  This fixes
3426         Savannah bug #20005.
3427
3428         * po/findutils.pot, ga.po, pt.po, tr.po, pl.po: updated from the TP
3429         website.
3430
3431 2007-05-31  Jakub Bogusz <qboosh@pld-linux.org>  (tiny change)
3432
3433         * find/parser.c (parse_group): Correct typo in error message.
3434         (check_path_safety): same
3435
3436 2007-05-27  James Youngman  <jay@gnu.org>
3437
3438         * import-gnulib.config (modules): Import sys_stat.
3439         (gnulib_version): Update to 2007-05-26.  This fixes a compilation
3440         error in stdlib.h with the DEC C compiler.  This fixes Savannah
3441         bug# 19983.
3442
3443         * find/parser.c (safe_atoi): New function, like atoi, but which
3444         calls error(1, ...) when the argument is invalid or out of range.
3445         (parse_group): Use safe_atoi.
3446         (insert_depthspec): Use safe_atoi
3447         (parse_user): Use safe_atoi
3448
3449         * configure.in: Check for fabs in libm (fixing a compilation error
3450         on Solaris).
3451
3452         * import-gnulib.config (modules): Import the wcwidth module to
3453         provide it on those systems (such as BeOS) which lack it.
3454
3455         * find/pred.c (file_sparseness): If st_blocks is not present in
3456         struct stat, the file has a sparseness of 1.0.
3457
3458         * doc/find.texi (Size Directives): Document the %S format
3459         directive for -printf.
3460
3461         * find/pred.c (mode_to_filetype): Don't use S_IFSOCK on systems
3462         which lack that macro.  POSIX systems are allowed to lack
3463         sockets (it's an XSI extension).
3464         (file_sparseness): If struct stat lacks st_blocks, assume all
3465         files have a spearseness of 1.0.
3466
3467         * import-gnulib.config (modules): Import fchdir inorder to fix an
3468         undefined-symbol error for fchdir on BeOS.
3469
3470 2007-05-26  James Youngman  <jay@gnu.org>
3471
3472         Code refactoring in locate.
3473         * locate/locate.c (visit): New function, into which we factor out
3474         the traversal of the inspector list.
3475         (process_simple): Use visit().
3476         (process_or): Use visit().
3477         (process_and): Use visit().
3478
3479         Speed improvements in locate for unibyte locales.
3480         * locate/locate.c (visit_substring_match_nocasefold_wide): Renamed
3481         from visit_substring_match_nocasefold.
3482         (visit_substring_match_casefold_wide): Renamed from
3483         visit_substring_match_casefold.
3484         (visit_substring_match_casefold_narrow): Special case of
3485         visit_substring_match_casefold_wide which we use for unibyte
3486         locales; we use strcasestr() rather than mbscasestr().
3487         (visit_substring_match_nocasefold_narrow): Ditto, using strstr()
3488         instead of mbsstr().
3489
3490         * find/parser.c (parse_gid): Return an explicit boolean constant
3491         rather than automatically converting from a pointer, because the
3492         gnulib substitute for bool (or _Bool) in c89 environments lacking
3493         bool does not support that conversion.  One affected system is Sun
3494         WorkShop Compilers 5.0 98/12/15 C 5.0 on Solaris 7.  This is
3495         Savannah bug #19970, reported by Nelson Beebe.
3496         (parse_inum): Ditto.
3497         (parse_links): Ditto.
3498         (parse_uid): Ditto.
3499         (check_path_safety): declarations need to go before code, not
3500         interspersed.  Move declaration of char* s.
3501
3502         * xargs/testsuite/xargs.posix/rc-125.exp: Explain Savannah bug
3503         #19969.   This bug is not yet fixed.
3504
3505         * find/defs.h: #include <stdint_.h>, for uintmax_t.  This should
3506         fix a compilation error on DEC C V5.9-005 on Digital UNIX V4.0F
3507         (Rev. 1229).  This is Savannah bug #19965, reported by Nelson
3508         Beebe.
3509
3510         * find/defs.h: Don't include <errno.h>, since it is not needed in
3511         the header file itself.  The "extern int errno;" declaration is
3512         now obsolete.
3513         * find/parser.c: Include <errno.h>
3514         * find/pred.c: Dito
3515         * find/util.c: Ditto
3516
3517 2007-05-24  James Youngman  <jay@gnu.org>
3518
3519         * find/util.c (check_nofollow): If O_NOFOLLOW is defined but 0,
3520         act as if it is undefined.  This should prevent a runtime
3521         assertion failure on IRIX 6.5.  This fixes Savannah bug #19948,
3522         reported by Nelson Beebe.
3523
3524         * m4/noreturn.m4: New file, testing for support of __attribute__
3525         ((__noreturn__)).  Defines jy_AC_ATTRIBUTE_NORETURN and sets
3526         HAVE_ATTRIBUTE_NORETURN.
3527         * configure.in: Call jy_AC_ATTRIBUTE_NORETURN.
3528         * find/defs.h (ATTRIBUTE_NORETURN): Define to nothing if
3529         HAVE_ATTRIBUTE_NORETURN is not set in config.h.  This should fix a
3530         compilation error with non-GCC compilers.   This is Savannah bug
3531         #19967, reported by Nelson Beebe.
3532
3533         * configure.in (FINDLIBS): Update FINDLIBS to link against -lm for
3534         modf.   This fixed a link error on HP-UX.   This fixes Savannah
3535         bug #19966, reported by Nelson Beebe.
3536         * find/Makefile.am (LDADD): Use @FINDLIBS@
3537
3538 2007-05-21  James Youngman  <jay@gnu.org>
3539
3540         Release 4.3.6.
3541
3542         * build-aux/Makefile.am (EXTRA_DIST): Added man-lint.sh.
3543
3544         * locate/locate.c (drop_privs): pass the correct list of groups to
3545         setgroups().  Previously, if root invoked locate, their group ID
3546         would have been set to a random value.  The same bug also caused
3547         an array overrun past the end of the local array groups[].  The
3548         variable which gets overwritten by the buffer overrun on x86 is
3549         'what'.  The value of that variable is always changed before it is
3550         used, and so I believe that this buffer overrun will not cause a
3551         crash.  The only effect of the bug therefore would be for locate
3552         to change group to a random group ID since groups[0] is
3553         uninitialised.  On my test system this random group ID is 0
3554         anyway.  The effect does not depend on any externally-controllable
3555         information, so it is unlikely this is exploitable.   This bug is
3556         detailed as bug# 19923.
3557
3558 2007-05-19  James Youngman  <jay@gnu.org>
3559
3560         * find/find.1: Spurious .R directives (.R is not a directive)
3561         should be .B.   This fixes Savannah bug #19871.
3562         * build-aux/man-lint.sh: New file; verifies that the specified
3563         manual pages do not provoke error messages from troff.  This is
3564         used to detect further occurrences of Savannah bug #19871.
3565         * find/Makefile.am (dist-hook): Run findutils-check-manpages,
3566         which invokes man-lint.sh.
3567         * locate/Makefile.am (dist-hook): ditto
3568         * xargs/Makefile.am (dist-hook): ditto
3569
3570         * .cvsignore: Ignore ylwrap, which automake-1.10 wants us to have
3571         a copy of for some reason
3572
3573         * import-gnulib.sh (main): New option -a which just runs the
3574         autotools without reimporting gnulib.
3575
3576         * Makefile.am (jy-regex-fix): The previous explanatory comment
3577         refers to the jy-regex-fix target, not to dist-hook, so it has
3578         been moved.
3579
3580 2007-05-08  James Youngman  <jay@gnu.org>
3581
3582         * find/defs.h (struct predicate.args): str is now const.
3583
3584         * find/parser.c (get_comp_type): get_comp_type now takes a const
3585         char* parameter.
3586         (get_num): ditto
3587         (get_relative_timestamp): ditto.  Also use collect_arg().
3588         (collect_arg_stat_info): New function; collects a command-line
3589         argument and returns its xstat information, in one go.
3590         error(1,...)  is called if the stat fails.
3591         (parse_anewer): Use collect_arg().
3592         (parse_cnewer): ditto
3593         (parse_fprint): ditto
3594         (parse_fstype): ditto
3595         (parse_group): ditto
3596         (parse_ilname): ditto
3597         (parse_iname): ditto
3598         (parse_iwholename): ditto
3599         (parse_lname): ditto
3600         (insert_depthspec): ditto
3601         (parse_name): ditto
3602         (parse_newer): ditto
3603         (parse_wholename): ditto
3604         (parse_perm): ditto
3605         (parse_regextype): ditto
3606         (insert_regex): ditto
3607         (parse_samefile): ditto
3608         (parse_used): ditto
3609         (parse_user): ditto
3610         (insert_type): ditto
3611         (parse_time): ditto
3612         (parse_size): When the size argument is invalid but consists only
3613         of a valid suffix char, avoid issuing an error message about a
3614         blank argument.  Append the suffix letter again.
3615         (parse_xdev, parse_ignore_race, parse_noignore_race, parse_warn,
3616         parse_xtype): Remove casts to void for some function parameters
3617         that were, in fact, used.
3618
3619         * find/testsuite/find.gnu/fprint-unwritable.exp: new test
3620         * find/testsuite/find.gnu/fprint0_stdout.exp: new test
3621         * find/testsuite/find.gnu/fprint0_stdout.xo: new test
3622         * find/testsuite/find.gnu/mindepth-arg.exp: new test
3623         * find/testsuite/find.gnu/mindepth-arg.xo: new test
3624         * find/testsuite/find.gnu/mindepth-badarg.exp: new test
3625         * find/testsuite/find.gnu/print_stdout.exp: new test
3626         * find/testsuite/find.gnu/print_stdout.xo: new test
3627         * find/testsuite/find.gnu/samefile-missing.exp: new test
3628         * find/testsuite/find.gnu/samefile-p-brokenlink.exp: new test
3629         * find/testsuite/find.gnu/samefile-p-brokenlink.xo: new test
3630         * find/testsuite/find.gnu/used-invarg.exp: new test
3631         * find/testsuite/find.gnu/used-missing.exp: new test
3632         * find/testsuite/find.gnu/user-invalid.exp: new test
3633         * find/testsuite/find.posix/group-empty.exp: new test
3634         * find/testsuite/find.posix/group-missing.exp: new test
3635         * find/testsuite/find.posix/name-missing.exp: new test
3636         * find/testsuite/find.posix/size-invalid.exp: new test
3637         * find/testsuite/find.posix/size-missing.exp: new test
3638         * find/testsuite/find.posix/typearg.exp: new test
3639         * find/testsuite/find.posix/user-empty.exp: new test
3640         * find/testsuite/find.posix/user-missing.exp: new test
3641
3642 2007-05-06  James Youngman  <jay@gnu.org>
3643
3644         * find/tree.c: (costlookup): Added pred_fls to the optimiser's
3645         predicate cost lookup table.
3646
3647         * lib/printquoted.c (print_quoted): Change return value from void
3648         to int, to allow the caller to detect failures.
3649         * lib/printquoted.h (print_quoted): Change declaration
3650         accordingly.
3651
3652         * find/defs.h (struct format_val): Incldue a 'filename' member so
3653         that we can provide more useful error messages (e.g. when we fail
3654         to flush or close an output file).
3655         (nonfatal_file_error): declare new function.
3656
3657         * find/util.c (traverse_tree): Utility function which calls a
3658         callback on every node of the parse tree.
3659         (flush_and_close_output_files): Flush all output streams.  Close
3660         all output files.  Report any errors.
3661         (cleanup): Use traverse_tree() to invoke
3662         complete_pending_execdirs().
3663         (report_file_err): refactored error reporting function, extracted
3664         from fatal_file_error.
3665         (nonfatal_file_error): New function.
3666
3667         * find/pred.c (checked_fprintf): New function, which performa an
3668         fprinf(), and checkes the result.  If the operation resulted in an
3669         error, a nonfatal error message is issued.
3670         (checked_print_quoted): Ditto, for print_quoted rather than
3671         fprintf.
3672         (checked_fwrite): Ditto for fwrite instead of fprintf.
3673         (checked_fflush): Ditto for fflush
3674         (do_fprintf): Use the checked_*() functions rather than their
3675         direct counterparts, to ensure that I/O errors are detected.  This
3676         fixes Savannah bug #19416.
3677         (pred_fls): Use args.printf_vec instead of args.stream, which has
3678         now been removed.
3679         (pred_ls): just call pred_fls.
3680         (pred_fprint0): use args.printf_vec, instead of the now removed
3681         args.stream.
3682         (pred_print0): just call pred_fprint0
3683
3684         * find/parser.c: (insert_fprintf): Make the caller collect the
3685         format argument from the argument list.
3686         (open_output_file): Enhance to set up defaults in
3687         our_pred->args.printf_vec as well as opening the output file.
3688         Also record the filename for possible later use in an error
3689         message.
3690         (collect_arg): Convenience function for collecting an argument
3691         from the argument list.
3692         (insert_fls): Refactored the body of parse_fls out so that
3693         parse_ls can use it.
3694         (parse_fls): call insert_fls.
3695         (parse_ls): ditto
3696         (parse_fprint): Instead of setting up our_pred->args.printf_vec
3697         manually, call open_output_file() to do it.
3698         (parse_print): Same, but by calling open_stdout().
3699         (insert_fprint): Make the caller collect the filename argument,
3700         and delegate the setup of our_pred->args.printf_vec to either
3701         open_output_file() (for parse_fprint and parse_fprint0) or
3702         open_stdout (parse_print0).
3703         (parse_fprint0): Use collect_arg().
3704         (parse_print0): Use insert_fprint(), just like parse_fprint0.
3705         (parse_printf): Use collect_arg().
3706         (parse_fprintf): Use collect_arg().
3707
3708 2007-05-05  James Youngman  <jay@gnu.org>
3709
3710         Release 4.3.5.
3711
3712         * find/parser.c (parse_samefile): Hold a file descriptor open on
3713         the reference file in order to prevent pred_samefile getting
3714         fooled by inode reuse.  Pay attention to race conditions on
3715         systems lacking O_NOFOLLOW when the -P option is in force.  This
3716         fixes Savannah bug #19806.
3717
3718         * find/defs.h (struct samefile_file_id): New struct, like dir_id
3719         but including a file descriptor on the reference file.
3720
3721         * find/pred.c (pred_type): -type should return false if the file
3722         has mode 00000, as opposed to having an assertion failure.   This
3723         fixes Savannah bug #16378.
3724
3725         * find/ftsfind.c (consider_visiting): Issue a warning message if
3726         none of the mode bits are set for a file (i.e. st_mode==00000).
3727         * find/util.c (get_statinfo): ditto
3728         * find/util.c (hook_fstatat): Introduced debug code (normally
3729         disabled) for testing Savannah bug #16378.
3730
3731 2007-05-01  James Youngman  <jay@gnu.org>
3732
3733         * find/find.c (wd_sanity_check): corrected the type of %ld fprintf
3734         arguments in error messages.
3735         * find/fstype.c: include "error.h" for the declaratio of error().
3736         * find/ftsfind.c: include "error.h" for the declaratio of
3737         error().  Include dircallback.h for the correct declararion of
3738         run_in_dir().
3739         * find/parser.c: include getdate.h (for declaration of getdate)
3740         and error.h (for the declaration of error).
3741         (find_parser): Removed unused variable p.
3742         * find/pred.c (pred_timewindow): Removed unused variable delta.
3743         (do_fprintf): Removed unused variable cc.
3744         * find/tree.c: Include error.h (for the declaration of error()).
3745         (build_expression_tree): removed sourious extra arguments in call
3746         to error().
3747         * find/util.c: include error.h.
3748         * lib/buildcmd.h (get_line_max): Comment out unused function.
3749         * lib/listfile.c: Include dircallback.h.
3750         * locate/code.c: Include errno.h, erorr.h, progname.h and
3751         xlloc.h.
3752         (inerr): New function for reporting read errors.
3753         (outerr): New function for reporting output errors.
3754         (main): Call inerror when fgets fails.  Call outerr when fwrite
3755         or putc or putw fails.
3756         * locate/frcode.c (put_short): Return boolean value indicating
3757         success.
3758         (outerr): New function for reporting write errors.
3759         (main): Call outerr if call to putc() or puts() or put_short()
3760         fails.
3761         * locate/locate.c (search_one_database): diagnose corruption if a
3762         traditional-style database is too short to include a complete
3763         bigram table.
3764
3765 2007-04-30  James Youngman  <jay@gnu.org>
3766
3767         * find/defs.h: Change all predicate functions to take a const
3768         char* argument as the pathname, not a char*.  Modify the parser
3769         table definition accordingly.
3770         * find/parser.c: Ditto
3771         * find/pred.c: Ditto
3772         * find/pred.c (do_fprintf): copy the pathname string for the %H
3773         and %h cases, since we can no longer modify the string in place.
3774         * lib/listfile.c (print_name, list_file,
3775         print_name_without_quoting, print_name_with_quoting): Use const
3776         char * param for pathname.
3777         * lib/listfile.h (list_file): Use const char * param for
3778         pathname.
3779
3780 2007-04-29  James Youngman  <jay@gnu.org>
3781
3782         * find/defs.h: Declare fatal_file_error(), a function for
3783         reporting immediately-fatal file errors, which appropriately
3784         quotes the file name.  The function does not return.  Also define
3785         ATTRIBUTE_NORETURN.  Record the currently-required quoting style
3786         in struct options.
3787
3788         * find/find.c, find/ftsfind.c, find/parser.c, find/pred.c,
3789         find/util.c: Call fatal_file_error() for fatal file errors.  Use
3790         quotearg_n_style() to quote filenames which are used in error
3791         message that aren't fatal.  Use options.err_quoting_style as the
3792         quoting style.  This fixes Savannah bug #18203.
3793         * locate/locate.c: ditto
3794         * xargs/xargs.c: ditto
3795
3796         * lib/listfile.c: To use alloca, just #include <alloca.h>.  Gnulib
3797         handles the rest.  Also these days, <stdlib.h> and <string.h> can
3798         just be included unconditionally.
3799         * lib/qmark.c: Fixed comment on first line describing the module.
3800
3801 2007-04-29  Michael Haubenwallner <michael.haubenwallner@salomon.at> (tiny change)
3802
3803         * find/defs.h (pred_open) Rename to pred_openparen to avoid
3804         problems with the macrtos which build the parser tabnles on
3805         platforms where 'open' is in fact a macro whcih expands to
3806         open64.   The problem was that token pasting put pred_open64 into
3807         the parser table, but the function was still defined as
3808         parse_open.   This fixes Savannah bug #19371.
3809         (pred_close): ditto
3810         * find/parser.c (parse_open, parse_close): ditto.  Also change
3811         repferences to pred_open and pred_close similarly.
3812         * find/parser.c (parse_openparen, parse_closeparen): ditto
3813
3814 2007-04-28  James Youngman  <jay@gnu.org>
3815
3816         * find/testsuite/find.gnu/deletedir.exp,
3817         find/testsuite/find.gnu/deletedir.xo: New test.
3818         * find/testsuite/find.gnu/deletefile.exp,
3819         find/testsuite/find.gnu/deletefile.xo: New test.
3820         * find/testsuite/Makefile.am: Distribute the new tests
3821         deletefile.exp and deletedir,exp, with their expected-output (.xo)
3822         files too.
3823         * find/testsuite/config/unix.exp (find_start): Add a new "setup"
3824         parameter called just before each time find is invoked.  This
3825         allows last-minute tasks to be performed.  This feature is
3826         essential for find commands that modify the filesystem, since
3827         otherwise we cannot use our strategy of invoking both binaries at
3828         each optimisation level.
3829
3830         * find/util.c (optionh_stat, optionp_stat, optionl_stat): Assert
3831         that state.cwd_dir_fd is valid.
3832
3833         * find/parser.c (parse_delete): Set need_stat to false, since we
3834         don't need the stat information in pred_delete.
3835         * find/pred.c (pred_delete): If unlinkat() with a zero flags
3836         parameter fails with errno==EISDIR, just try again with
3837         flags=AT_REMOVEDIR.  That way we normally avoid the cost of a
3838         stat.  If we happen to have the stat information to hand anyway,
3839         we make sure we get it right the first time.
3840
3841         * lib/buildcmd.c (bc_init_controlinfo): Eliminate confusing extra
3842         variable arg_max.  Add return value
3843         BC_INIT_CANNOT_ACCOMODATE_HEADROOM for the case where the
3844         environment itself is not too large, but the required headroom
3845         cannot also be accomodated.  The caller now passes in the amount
3846         of headroom required.
3847         (bc_use_sensible_arg_max): Use the environment size consistently;
3848         this is accounted for already in posix_arg_size_max, so there is
3849         no need to re-measure the size of the environment.
3850         * lib/buildcmd.h: Define BC_INIT_CANNOT_ACCOMODATE_HEADROOM and
3851         add the headroom parameter to the prototype of bc_init_controlinfo().
3852         * xargs/xargs.c (main): Define XARGS_POSIX_HEADROOM as 2048 and
3853         use that symbolic value.  Pass XARGS_POSIX_HEADROOM to
3854         bc_init_controlinfo().  Handle the case where
3855         BC_INIT_CANNOT_ACCOMODATE_HEADROOM is returned by
3856         bc_init_controlinfo().
3857         * find/parser.c (new_insert_exec_ok): Pass the required headroom to
3858         bc_init_controlinfo() and handle the error return
3859         BC_INIT_CANNOT_ACCOMODATE_HEADROOM.
3860
3861         * xargs/xargs.1: Correct the description of the default value and
3862         maximum value for the -s option of xargs.
3863
3864         * xargs/xargs.c (main): Modify the assertions not to assume that
3865         bc_ctl.arg_max is 2KiB less than ARG_MAX, since sysconfig() may
3866         have returned a value for _SC_ARG_MAX which is greater.  For
3867         example, AIX 5.3 can do this.  This should fix Savannah bug
3868         #19391.
3869
3870 2007-04-25  James Youngman  <jay@gnu.org>
3871
3872         * find/tree.c (predlist_dump, predlist_merge_nosort): These
3873         functions were unused and commented out.  Removed.
3874         (mark_stat) No longer used.  Removed.
3875         (mark_type) No longer used.  Removed.
3876
3877         * find/parser.c (new_insert_exec_ok): When checking for {} in the
3878         arguments to -exec..., use mbsstr() rather than strstr() in order
3879         to cope bettwe with multibyte locales.
3880
3881         * lib/buildcmd.c: Don't define mbsstr() locally.  Instead, call
3882         gnulib's mbsstr().
3883
3884 2007-04-24  James Youngman  <jay@gnu.org>
3885
3886         * lib/buildcmd.c: Added some comments outlining how we might
3887         change the implementation to support figuring out the real ARG_MAX
3888         limit.
3889
3890 2007-04-23  James Youngman  <jay@gnu.org>
3891
3892         * find/defs.h (struct predicate_performance_info): New data
3893         structure for holding perofmance statistics.
3894         (struct predicate: include predicate_performance_info
3895         (apply_predicate): change from macro to function
3896         (pred_is): new macro, for predicate identity testing
3897         (enum DebugOption): Added DebugSuccessRates
3898         * find/find.1: Document option "-D rates" which turns on
3899         DebugSuccessRates.
3900         * doc/find.texi: ditto
3901         * find.c (main): Call show_success_rates() before exiting.
3902         (apply_predicate): remove the macro defintion, declare equivalent
3903         function in defs.h.
3904         * find/ftsfind.c (main): Call show_success_rates() before
3905         exiting.  Use apply_predicate().
3906         (show_outstanding_execdirs): use pred_is().
3907
3908
3909
3910 2007-04-22  Eric Blake  <ebb9@byu.net>
3911
3912         * xargs/xargs.c (main): Don't assume LINE_MAX exists (i.e. is
3913         #defined).
3914
3915         * locate/updatedb.sh (PRUNEPATHS): Exclude /proc by default.
3916
3917 2007-04-22  James Youngman  <jay@gnu.org>
3918
3919         * doc/Makefile.am: When cross-compiling, 'make clean' should not
3920         delete doc/regexprops.texi, becaue we can't regenerate it.  Fixes
3921         Savannah bug #19658.
3922
3923         * locate/Makefile.am (BUILT_SOURCES): Automatically generate
3924         dblocation.texi, which records the default database location.
3925         * doc/find.texi: Collect the default database location from
3926         ../locate/dblocation.texi, and use LOCATE_DB in various places.
3927         Document the fact that updatedb can generate slocate-compatible
3928         databases.  Document the --dbformat option of updatedb.
3929         * locate/frcode.c (main): Implemented the -S option which allows the
3930         generation of an slocate secure database.
3931         * locate/updatedb.sh: New option --dbformat which selects which
3932         database format to use.
3933         * locate/updatedb.1 (--dbformat): Document the new option.
3934
3935
3936         * find/testsuite/find.gnu/access.exp: fixed a typo which prevented
3937         the test correctly being skipped when run as root.   This re-fixes
3938         Savannah bug# 18414, I hope.
3939
3940 2007-04-21  James Youngman  <jay@gnu.org>
3941
3942         Release 4.3.4.
3943
3944         * find/locate/locatedb.5: Clarifications to the description of the
3945         LOCATE02 format.  Organised the material under a number of
3946         headings.  Documented the slocate database format.
3947
3948 2007-04-21  James Youngman  <jay@gnu.org>
3949
3950         * find/testuite/Makefile.am (EXTRA_DIST_EXP): added
3951         find/testsuite/find.posix/sv-bug-19617.exp
3952
3953 2007-04-20  Maxim V. Dziumanenko <dziumanenko@gmail.com>
3954
3955         * po/uk.po: New Ukranian translation.
3956         * configure.in: Added "uk" for Ukranian.
3957
3958 2007-04-19  Peter Breitenlohner <peb@mppmu.mpg.de> (tiny change)
3959
3960         * locate/bigram.c (main): Set the initial pathname to the empty
3961         string, to avoid decompression problems if the initial pathname
3962         begins with a space.  This fixes Savannah bug #19484.
3963         * locate/code.c (main): ditto
3964
3965 2007-04-19  James Youngman  <jay@gnu.org>
3966
3967         * locate/updatedb.1 (--help): Option name should be bold, not
3968         italic.
3969
3970         * find/testsuite/find.gnu/execdir-hier.exp: Avoid running
3971         -execdir based tests if "." is on $PATH.  Fixes Savannah bug
3972         #19634.
3973         * find/testsuite/find.gnu/execdir-in-unreadable.exp: ditto
3974
3975         * find/testsuite/config/unix.exp (touch): New procedure touch,
3976         replacing "exec touch" for greater efficiency.
3977         * find/testsuite/find.posix/depth1.exp: Change "exec touch" to
3978         "touch".
3979         * find/testsuite/find.posix/files-not-expressions1.exp: ditto
3980         * find/testsuite/find.posix/files-not-expressions2.exp: ditto
3981         * find/testsuite/find.posix/files-not-expressions3.exp: ditto
3982         * find/testsuite/find.posix/links.exp: ditto
3983         * find/testsuite/find.posix/perm-vanilla.exp: ditto
3984         * find/testsuite/find.posix/sv-bug-15235.exp: ditto
3985         * /find/testsuite/find.posix/sv-bug-19613.exp: ditto
3986
3987         * find/testsuite/find.gnu/access.exp: Fix savannah bug #18414 by
3988         skipping the test if the user can read any file (e.g. is root or
3989         is an Admin user under Cygwin).
3990
3991 2007-04-17  James Youngman  <jay@gnu.org>
3992
3993         * import-gnulib.config (gnulib_version): Use the 2007-04-17
3994         version of gnulib to fix a compilation error on Cygwin.  This
3995         fixes Savannah bug #19619.
3996
3997         * find/testsuite/find.posix/sv-bug-19605.exp: New test, for
3998         Savannah bug #19605.
3999         * find/testsuite/find.posix/sv-bug-19617.exp: New test, for
4000         Savannah bug #19617.
4001         * find/ftsfind.c (consider_visiting): if fts_read() returns
4002         enf->fts_info==FTS_NS, check for and diagnose a symbolic link
4003         loop.  This fixes Savannah bugs #19605 and #19617.
4004
4005         * find/find.c (process_path): collect the stat information for
4006         directories even if we already have the mode information, because
4007         we need to use the members st_nlink and st_rdev in for the leaf
4008         optimisation and loop detection, respectively.  This fixes
4009         Savannah bug #19616.
4010
4011         * find/ftsfind.c (is_fts_enabled): Return a copy of ftsoptions,
4012         not a copy of the (uninitialised) input argument.  This fixes
4013         Savannah bug #19615.
4014
4015         * find/ftsfind.c (consider_visiting): If fts_read() returned
4016         FTS_NS, then remember that the stat information is not valid, and
4017         therefore don't set state.have_type or state.have_stat.  This
4018         fixes Savannah bug #19613.
4019
4020         * find/testsuite/find.posix/sv-bug-91613.exp,
4021         * find/testsuite/find.posix/sv-bug-91613.xo: New test for Savannah
4022         bug 19613 (assertion failure on symbolic link loop).
4023
4024         * find/testsuite/config/unix.exp: Correctly diagnose a test case
4025         which fails because find was expected to fail and instead
4026         succeeded.
4027         * find/testsuite/find.gnu/exec-many-rtn-failure.exp: The child
4028         process in this test should return non-zero, not zero.  Therefore
4029         run "false" instead of "true".
4030
4031 2007-04-15  James Youngman  <jay@gnu.org>
4032
4033         Release 4.3.3.
4034
4035         * find/find.1: "-printf %b": blocks are 512 bytes.   Fixes
4036         Savannah bug #19596.
4037
4038         * doc/Makefile.am (regexprops.texi): Do not use $(RM) because many
4039         versions od make do not set it, and so it expands to nothing.
4040         This avoids suprious emission of the regexprops.texi file to stdout.
4041
4042         * find/find.c (main, safely_chdir_lstat, safely_chdir_nofollow):
4043         Only use O_LARGEFILE if it is #defined (NetBSD-3.1 does not define
4044         it).
4045         * find/ftsfind.c (main): ditto
4046         * find/pred.c (pred_empty, prep_child_for_exec): ditto
4047
4048
4049         * import-gnulib.config: Update to gnuliv 2007-04-14.
4050
4051         * lib/Makefile.am, import-gnulib.sh: Create lib/gnulib-version.c
4052         in import-gnulib.sh, not in lib/Makefile.
4053
4054         * build-aux/Makefile.am: New file; distribute check-tstfiles.sh.
4055
4056         * locate/Makefile.am: mkinstalldirs is now in build-aux.
4057
4058         * doc/Makefile.am: We also need getdate.texi.
4059
4060 2007-04-14  James Youngman  <jay@gnu.org>
4061
4062         * doc/.cvsignore: Ignore getdate.texi
4063
4064         * find/defs.h: #include "buildcmd.h" near the top of the file, not
4065         in the middle.
4066
4067         * all: Pass O_LARGEFILE when opening directories.
4068
4069         * all: Changes to allow us to use the FTS_CWDFD mode of fts().
4070         These are quite extensive changes, and are detailed below.
4071
4072         * find/defs.h (struct exec_val): New member dirfd, the directory
4073         in which the exec should take place.
4074         (is_fts_enabled): Tell the caller which flags are passed to
4075         fts_open().
4076         (get_start_dirfd): New function.  Returns value of start_desc.
4077         (get_current_dirfd): New function.  Returns the fd of the
4078         directory fts is currently traversing.  If this is the current
4079         directory, AT_FDCWD is returned.
4080         (complete_pending_execdirs): takes a new argument, indicating
4081         where the exec is to take place.  Ugh.
4082         (get_info): the file name is taken from state.rel_pathname, so
4083         we don't need it as a function argument.
4084         (enum DebugOption): Added DebugExec ("-D exec").
4085         (struct state): Added cwd_dir_fd, the directory we are examining
4086         with fts().  If fts() is not in use, this is AT_FDCWD.  Also added
4087         execdirs_outstanding, which is a boolean which tells us if there
4088         are any not-yet-execed -execdir or -okdir actions (with +).  This
4089         is not really used yet.
4090         * find/ftsfind.c (set_close_on_exec): New function.
4091         (get_current_dirfd): Return an fd open on the directory that fts()
4092         is currently examining.
4093         (left_dir): Signal that our previous ides of which dirctory fts is
4094         searching is now out of date.
4095         (inside_dir): Indicate which directory fts is now searching.
4096         (complete_execdirs_cb): Callback for run_in_dir() to complete
4097         pending execdirs in this directory.
4098         (show_outstanding_execdirs): Supports "-D exec"
4099         consider_visiting(): Do not allow building-up of pending execdirs,
4100         as a workaround to Savannah bug #18466.
4101         (ftsoptions): Make this a static module variable.
4102         * find/parser.c (insert_exec_ok): New parameter describing which
4103         directory the exec should occur in.
4104         (parse_version): for FTS, add a list of options being used.
4105         * find/pred.c (pred_and, pred_comma): No need to pass the relative
4106         path name to get_info(), it can pull it from state.rel_pathname.
4107         (pred_delete): use unlinkat().
4108         (pred_empty): use openat().
4109         (new_impl_pred_exec): Accept an fd parameter describing where the
4110         exec is to take place.
4111         (pred_executable, pred_writable, pred_readable): Use run_in_dir()
4112         to ensure that access() is called in a working directory which is
4113         suitable for the pathname we pass in.
4114         (prep_child_for_exec): In the child process, change to the
4115         appropriate directory becore the exec().
4116         * find/util.c (debugassoc): Support "-D exec".
4117         (get_info): No longer need to pass the relative path to
4118         get_statinfo().
4119         (do_complete_pending_execdirs): Refactored body of what used to be
4120         complete_pending_execdirs().
4121         (complete_pending_execdirs): Pull body out into
4122         do_complete_pending_execdirs() and call that only if there is work
4123         to do.
4124         (fallback_stat, optionh_stat, optionp_stat, optionl_stat): Use fstatat().
4125         (get_start_dirfd): New access function for starting_desc.
4126         * find/testsuite/find.gnu/execdir-hier.exp: New test
4127         * find/testsuite/find.gnu/execdir-hier.xo: Expected outut for new test
4128         * lib/dircallback.c, lib/dircallback.h: New function,
4129         run_in_dir(), which runs a callback function in a specified
4130         directory.
4131         * lib/listfile.c: Use run_in_dir() to call readlink() in the right
4132         directory.
4133         (get_link_name_at): Call get_link_name_cb via run_in_dir.
4134         (get_link_name_cb): New callback function, wrappting
4135         get_link_name().
4136
4137         * find/testsuite/find.gnu/execdir-pwd.exp: Since we have disabled
4138         thebuilding-up of command lines for -execdir, Savannah bug #18466
4139         has been neutralised (but not fixed - we just don't allow the
4140         problem circumstance to occur).
4141
4142 2007-04-09  James Youngman  <jay@gnu.org>
4143
4144         * doc/find.texi: Change fully-specified @node directives to
4145         single-argument @node directives in order to accomodate the
4146         inclusion of getdate.texi.
4147
4148         * doc/find.texi: Document -newerXY.
4149
4150         * doc/find.texi (Security Considerations): updated to describe
4151         differences in the fts-based implementation.
4152
4153         * find/find.1: Indicate that testing the birth time where this is
4154         not supported produces a negative result for files where the birth
4155         time is not known (or a fatal error if the file of interest is a
4156         reference file).
4157
4158 2007-04-08  James Youngman  <jay@gnu.org>
4159
4160         * configure.in: Set @AUXDIR@ (to the location of the build-aux
4161         directory).
4162         * build-aux/check-testfiles.sh: New script, which checks that all
4163         the DejaGnu test files have been included in the distribution and
4164         (more helpfully) lists any that are missing.
4165         * Makefile.am (findutils-check-testfiles): Use
4166         build-aux/check-testfiles.sh.
4167         * locate/testsuite/Makefile.am (EXTRA_DIST_EXP): distribute
4168         locate/testsuite/locate.gnu/sv-bug-14535.exp.
4169
4170         * config.rpath, depcomp, missing: Moved into build-aux/.
4171         * configure.in(AC_CONFIG_AUX_DIR): Find aux files in $SRCDIR/build-aux,
4172         not in $SRCDIR.
4173
4174 2007-03-31  James Youngman  <jay@gnu.org>
4175
4176         * find/tree.c (build_expression_tree): Issue more specific error
4177         messages; distinguish the case where the predicate is invalid from
4178         the cases where a required argument is missing, and a supplied
4179         argument is invalid.
4180
4181         * import-gnulib.config (gnulib_version): Update to 2007-03-30
4182         version of gnulib.
4183
4184 2007-03-28  James Youngman  <jay@gnu.org>
4185
4186         * find/defs.h (set_stat_placeholders): utility function for
4187         initialising the sturct stat fields that NetBSD doesn't always set
4188         (like st_birthtime where the file is on a filesystem not
4189         supporting birthtime).
4190         * find/util.c: set_stat_placeholders(): new function
4191         (get_statinfo): Call set_stat_placeholders().
4192         (optionh_stat, optionl_stat, optionp_stat): ditto
4193         * find/find.c (main, wd_sanity_check, safely_chdir_lstat,
4194         process_dir): use set_stat_placeholders().
4195         * find/parser.c (parse_anewer, parse_cnewer, parse_newer,
4196         parse_newerXY): ditto.
4197         (get_stat_Ytime): Support birth time ('B').
4198         (parse_newerXY): Support st_birthtime.
4199         * find/fstype.c (set_fstype_devno): Use set_stat_placeholders().
4200         * find/pred.c (pred_xtype): Use set_stat_placeholders().
4201         (pred_newerXY): Support birth time.
4202         (pred_fprintf, format_date): ditto ("%Bx").
4203
4204 2007-03-25  James Youngman  <jay@gnu.org>
4205
4206         * xargs/xargs.c (main): For "xargs --show-limits" where stdin is a
4207         terminal, warn the user that the program specified (or /bin/echo)
4208         will be run at least once, if that is what will happen.
4209
4210 2007-03-24  James Youngman  <jay@gnu.org>
4211
4212         * import-gnulib.sh: Added option -d, allowing the user to use a
4213         local version of gnulib, perhaps because they have local changes.
4214
4215 2007-03-13  James Youngman  <jay@gnu.org>
4216
4217         * find/parser.c (parse_quit): Estimated success rate of -quit is
4218         100%.
4219
4220 2007-03-08  James Youngman  <jay@gnu.org>
4221
4222         * find/find.1 (TESTS): Document -newerXY, indicate that reference
4223         files are only examined once.
4224         (HISTORY): Indicate when various features were added
4225         (BUGS): Indicate that -ok ignores LC_COLLATE.
4226
4227 2007-03-07  James Youngman  <jay@gnu.org>
4228
4229         * import-gnulib.config: (gnulib_version): Use gnulib version
4230         2007-03-05
4231         (modules): Added getdate
4232
4233         * find/Makefile.am (LDADD): Added @LIB_CLOCK_GETTIME@ for
4234         clock_gettime(), if it is available.
4235
4236         * find/defs.h: (enum xval): New enumeration, representing the
4237         value of X used in the -newerXY test.  It is stored in the reftime
4238         member of 'union args'.
4239         (struct predicate): reftime is also used by -newerXY.
4240         (enum arg_type): Added ARG_SPECIAL_PARSE for -newerXY, because the
4241         parsing function needs to look at the name of the test.
4242         (struct options): start_time is now a struct timespec, not a
4243         time_t.
4244
4245         * find/parser.c: (parse_newerXY): New parsing function for
4246         -newerXY, a feature copied from FreeBSD (also present other BSD
4247         implementations too)
4248         (get_stat_Ytime): New function; returns st_atime, st_mtime or
4249         st_ctime from struct stat, as a timespec, as required according to
4250         the value of Y in -newerXY.
4251         (found_parser): Factored the tail out of find_parser.
4252         (find_parser): Moved tail into found_parser.  Add special handling
4253         for -newerXY.
4254         (do_parse_xmin): New argument xv, indicating the value to which
4255         predicate->reftime.xval should be set.
4256         (parse_amin): Pass XVAL_ATIME to do_parse_xmin.
4257         (parse_cmin): Pass XVAL_CTIME to do_parse_xmin.
4258         (parse_mmin): Pass XVAL_MTIME to do_parse_xmin.
4259         (parse_newer): Set args.reftime.xval to XVAL_MTIME.
4260
4261         * find/pred.c (pred_table): added pred_XY.
4262         (pred_fls): options.start_time is now a struct timespec, so just
4263         pass the tv_sec member to list_file.
4264         (pred_ls): ditto
4265         (pred_newerXY): New function, implementing -newerXY.
4266
4267         * find/tree.c (costlookup): pred_newerXY needs stat information.
4268         (build_expression_tree): For predicates of type ARG_SPECIAL_PARSE,
4269         pass them in the name of the predicate (that is, don't advance
4270         argc).
4271
4272         * find/util.c (now): New function for setting options.start_time.
4273         Use nanoseconds where it is available.
4274         (set_option_defaults): Use now() rather than time().
4275
4276 2007-03-03  James Youngman  <jay@gnu.org>
4277
4278         * import-gnulib.sh: Pass --with-tests to gnulib-tool so that relevant
4279         gnulib unit tests are built and are run for "make check".
4280
4281         * configure.in (AC_CONFIG_FILES): Add tests/Makefile (the makefile
4282         for the gnulib unit tests).
4283
4284         * Makefile.am: Add 'tests' to SUBDIRS.
4285
4286         * .cvsignore: Add 'tests'.
4287
4288         * import-gnulib.config (modules): Also use Gnulib modules
4289         mbscasestr and mbsstr in order to perform correct string searching
4290         in multibyte strings, in order to fix Savannah bug #14535.
4291
4292         * locate/testsuite/locate.gnu/sv-bug-14535.exp: new test case for
4293         Savannah bug #14535.
4294
4295         * locale/locate.c (visit_substring_match_nocasefold): Use mbsstr
4296         rather than strstr, in order to correctly support multibyte
4297         strings.
4298         (visit_substring_match_casefold): Use mbscasestr rather than
4299         strstr in order to correctly support case-folding in a multibyte
4300         environment (e.g. with UTF-8 characters outside the normal ASCII
4301         range).  This fixes Savannah bug #14535.
4302         (struct casefolder): No longer needed, removed
4303         (visit_casefold): No longer needed, removed.
4304         (lc_strcpy): No longer needed, removed.
4305         (search_one_database): Removed redundant variable need_fold and
4306         the code which used to set it.  It had controlled the adding of
4307         the visitor function visit_casefold, but that function itself is
4308         no longer required.  Also there is now no need to pass in a
4309         lower-case argument to visit_substring_match_casefold, so don't
4310         pass that in the context argument.
4311
4312         * locate/locate.c (usage): Fixed typo.
4313
4314 2007-03-01  James Youngman  <jay@gnu.org>
4315
4316         * doc/find.texi (Multiple Files): Document the construct
4317         -exec sh -c 'cmd "$@" final-args' {} + - fixing Savannah bug
4318         #18554.
4319
4320 2007-02-28  James Youngman  <jay@gnu.org>
4321
4322         * import-gnulib.config: New file.  Specifies which version of
4323         Gnulib we need to check out and build from.
4324
4325         * import-gnulib.sh: Use import-gnulib.config.
4326
4327         * README-CVS: Describe the new method of building from CVS.
4328
4329         * lib/gnulib-version.h, lib/gnulib-version.sh: New files; code for
4330         reporting which version of Gnulib we built findutils from.
4331
4332         * lib/Makefile.am: Build gnulib-version.c out of
4333         ./gnulib-version.config by using lib/gnulib-version.sh.
4334
4335         * Makefile.am: Ship import-gnulib.config and import-gnulib.sh.
4336
4337         * .cvsignore: Ignore gnulib-cvs
4338
4339         * lib/.cvsignore: Ignore gnulib-version.c
4340
4341         * find/parser.c, locate/code.c, locate/locate.c, xargs/xargs.c:
4342         Report which version of Gnulib we were built from.
4343
4344 2007-02-25  James Youngman  <jay@gnu.org>
4345
4346         * find/find.c (process_dir): Removed duplicated (shadow)
4347         declaration of did_stat.  Assert that we did not use subdirs_left
4348         if subdirs_unreliable is true.
4349
4350         * find/parser.c (parse_size): Removed unused variable rate.
4351         (parse_time): Removed unused variable num_days_approx.
4352         (get_num): Removed unused variables ok and suffixes.
4353
4354         * find/pred.c (do_fprintf): Indicate that the function needs a
4355         return value (referring to Savannah bug #19146).
4356
4357         * find/tree.c (predlist_dump): Commented out unused function
4358         (predlist_merge_nosort): Commented out unused function
4359         (getrate): Returns type is float, so return 1.0f not 1.0.
4360         (calculate_derived_rates): Removed unused variable rate.  Use a
4361         switch statement rater than ifs.
4362
4363         * find/util.c (usage): Removed unused variable i.
4364
4365         * lib/buildcmd.c (bc_do_insert): Removed unused variable
4366         need_prefix.
4367         (bc_init_controlinfo): annotate a line (with #warning) which is
4368         probably a bug.
4369
4370         * locate/locate.c: #include <grp.h> for the benefit of the
4371         setgroups() call in drop_privs.
4372         (slocate_db_pathname): Commented out unused variable.
4373         (set_max_db_age): error command has no format directive, so
4374         remove the unused extra argument.
4375         (looking_at_slocate_db): Removed unused variables magic and
4376         lenwanted.  Fix bug where result is indeterminate (due to falling
4377         off the end of the function) if the first character is a nondigit.
4378         (search_one_database): Eliminate (spurious) compiler warning
4379         rlating to possible use before initialisation of slocate_seclevel.
4380
4381         * xargs/xargs.c (get_char_oct_or_hex_escape): Eliminate spurious
4382         compiler warning on variable p.
4383         (main): Removed unused varible env_too_big
4384
4385
4386 2007-02-24  James Youngman  <jay@gnu.org>
4387
4388         * find/parser.c (pred_sanity_check): define this function even for
4389         _NDEBUG, but do nothing in that case.
4390         (estimate_timestamp_success_rate): correct (invert) the sense of
4391         the subtraction used to find the file's age.
4392
4393         * import-gnulib.sh (findutils_modules): Import Gnulib modules
4394         xstrtod and timespec.
4395
4396         * find/parser.c (get_comp_type): Refactored out of get_num.
4397         (get_num): call get_comp_type to find the comparison type.
4398         (get_relative_timestamp): new function replacing get_num_days.
4399         (get_num_days): Remove.
4400         (do_parse_xmin): Support fractional arguments and
4401         nanosecond timestamps.
4402         (parse_used): ditto
4403         (parse_time): ditto
4404
4405         * xargs/xargs.c (read_line): Give a warning message if a NUL is
4406         found in the input (this function is called only when -0 is not in
4407         effect).
4408
4409         * xargs/xargs.c (nullwarning_given): New variable indicating if
4410         the NULL character warning had already been issued.
4411
4412         * doc/find.texi (Multiple Files): Describe how trailing blanks are
4413         handled when -L is in effect.
4414
4415         * xargs/xargs.c (read_line): Use an enum rather than
4416         preprocessor macro values for the lexer state.
4417
4418         * lib/savedirinfo.c (free_dirinfo): Fixed memory leak (trivial
4419         patch from Supriya Kannery)
4420
4421 2007-01-22  James Youngman  <jay@gnu.org>
4422
4423         * .cvsignore (install-sh): Ignore, since the install-sh file is no
4424         longer held in the findutils CVS repository.
4425
4426         * find/testsuite/config/unix.exp (find_start): allow a test to be
4427         skipped for either the old or the new find executable.
4428         * find/testsuite/find.gnu/execdir-pwd.exp,
4429         find/testsuite/Makefile.am:
4430         New test, covering Savannah bug #18466.  This test currently fails
4431         for the ftsfind binary and passes for the oldfind binary.  Due to
4432         a limitation in  the way that we perform the test, we can't tell
4433         the test suite to expect a failure in the new binary but not the
4434         old.  Therefore we skip the test for the old binary.
4435
4436         * lib/regeprops.c (describe_regex_syntax): fixed a typo in the text
4437         * doc/find.texi (Multiple Files): fixed a typo
4438
4439 2007-01-16  James Youngman  <jay@gnu.org>
4440
4441         (ctime_format): format the time manually (rather than using ctime)
4442         in order to include the sub-second part of the time.
4443         (weekdays, months): new static variables used by ctime_format.
4444         (format_date): append a the sub-second part of the timestamp to
4445         the seconds part of date/time output.
4446
4447 2007-01-15  James Youngman  <jay@gnu.org>
4448
4449         * find/defs.h (time_val): define struct; use timespec to hold time
4450         in the 'reftime' member.
4451         (args): use struct timespec instead of time_t for predicates
4452         -newer, -anewer, -cnewer.  * find/parser.c (includes): include
4453         stat-time.h.
4454         (parse_anewer, parse_cnewer, parse_newer): use struct timespec to
4455         hold timestamps.  * find/pred.c (compare_ts): new function for
4456         comparing timestamps in struct timespec.
4457         (pred_anewer, pred_cnewer, pred_newer): use compare_ts() to
4458         compare timestamps (hence takinng acoung of sub-second
4459         granularity).
4460         * find/ftsfind.c: Various improvements to comments.
4461         (is_fts_enabled): Newline before function name to comply with GNU
4462         coding standard.
4463
4464 2007-01-13  James Youngman  <jay@gnu.org>
4465
4466         * lib/regexprops.c (describe_regex_syntax): fixed typo
4467
4468         * xargs/xargs.c (read_line): Fixed Savannah bug# 18714; VT and FF
4469         are not separators, according to POSIX (in the POSIX locale).
4470
4471         * xargs/testsuite/Makefile.am,
4472           xargs/testsuite/input/formfeeds.xi,
4473           xargs/testsuite/input/verticaltabs.xi,
4474           xargs/testsuite/xargs.posix/sv-bug-18714.exp,
4475           xargs/testsuite/xargs.posix/sv-bug-18714.xo,
4476           xargs/testsuite/xargs.posix/sv-bug-18714b.exp,
4477           xargs/testsuite/xargs.posix/sv-bug-18714b.xo: Tests for Savannah
4478           bug #18714.
4479
4480         * xargs/xargs.c (usage): Removed suprious "[" in --help output
4481         (fixes Savannah bug #18384).
4482
4483         * locate/locate.c: Implement the option --max-database-age.
4484         (main) Accept the option.
4485         (set_max_db_age): Parse the argument.
4486
4487         * locate/locate.c (dolocate): If the database is more than N days
4488         old, indicate its actual age in the warning message we produce.
4489
4490         * locate/locate.1, docs/find.texi: Document --max-database-age
4491
4492         * THANKS: Thank Dean Gaudet for the idea of -sparse.
4493
4494         * po/findutils.pot: Updated from Translation Project
4495
4496         * po/ga.po, po/pl.po, po/nl.po, po/tr.po, po/hu.po: Updated from
4497         the Translation Project
4498
4499 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4500
4501         * doc/find.texi: Fix some typos. (tiny change)
4502
4503 2007-01-07  James Youngman  <jay@gnu.org>
4504
4505         * find/parser.c (parse_perm), find/testsuite/find.gnu/perm000.exp,
4506           find/testsuite/find.gnu/perm000.xo: -perm /000 is now quivalent
4507           to -perm -000, as dscussed in Savannah bug #14748.  The warning
4508           message we issue when the user does this now explains that the
4509           defintion changed as we promised it would in 2005.
4510
4511         * xargs/xargs.c (read_line): Correctly handle quoted empty
4512         arguments occurring first or last on a line (by adding an empty
4513         argument to the output).  Fixes Savannah bug #18713.
4514
4515         * xargs/testsuite/xargs.sysv/sv-bug-18713.exp,
4516         xargs/testsuite/xargs.sysv/sv-bug-18713.xo,
4517         xargs/testsuite/input/empty.xi: Test case for Savannah bug #18713.
4518
4519
4520 2006-12-29  James Youngman  <jay@gnu.org>
4521
4522         * find/testsuite/config/unix.exp:
4523         Verify that find_start is invoked with wither a p (pass) or an f
4524         (fail) argument.
4525
4526         * lib/listfile.c, lib/listfile.h:
4527         define find_blocksize() and provide a declaration for get_link_name()
4528
4529         * find/testsuite/config/unix.exp: Updated copyright years.
4530
4531         * 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:
4532         Avoid tests using -execdir if $PATH contains a relative directory
4533
4534         * find/parser.c:
4535         Also flag $PATH values containing relative directories as being dangerous.
4536
4537         * find/parser.c, find/defs.h, find/util.c:
4538         Instead of selecting the old or new exec handling code with the NEW_EXEC macro, just use the new code all the time
4539
4540         * locate/testsuite/config/unix.exp:
4541         Fixed Savannah bug #13252, test suite failure caused by the fact that 'file normalize' is not available in Tcl 8.3
4542
4543         * NEWS, find/pred.c:
4544         Fixed Savannah bug #18433, compilation failure with configure --enable-debug
4545
4546 2006-12-28  James Youngman  <jay@gnu.org>
4547
4548         * NEWS: Document addition of %S.
4549
4550         * find/defs.h, find/find.1, find/parser.c, find/pred.c:
4551         Implemented %S (sparseness) printf format, and general refactoring and cleanup of printf predicate
4552
4553 2006-12-01  James Youngman  <jay@gnu.org>
4554
4555         * NEWS, configure.in: Begin work on findutils 4.2.30
4556
4557         * find/find.c:
4558         Fix compilation error for oldfind if --enable-debug was passed to configure
4559
4560         * NEWS, configure.in: Prepare for work on findutils-4.3.3
4561
4562 2006-11-25  James Youngman  <jay@gnu.org>
4563
4564         Release 4.3.2.
4565
4566         * find/testsuite/Makefile.am: Added test case for Savannah bug #17782
4567
4568         * doc/textinfo.tex: Removed; we now use the version supplied
4569         by automake.
4570
4571         * m4/mkinstalldirs.m4: Added this file.  It's an excerpt from an
4572         old version of gnulib's m4/nls.po file.  The current version of
4573         gnulib does not expand MKINSTALLDIRS, but gettext-0.14.6's version
4574         of po/Makefile.in.in expects it to be expanded.  This m4 file
4575         fills the gap.
4576
4577 2006-11-20  James Youngman  <jay@gnu.org>
4578
4579         * po/et.po, po/bg.po, po/pl.po, po/nl.po, po/tr.po: Updated
4580         translations for Bulgarian, Estonian, Dutch, Polish and Turkish.
4581
4582 2006-11-08  James Youngman <jay@gnu.org>
4583
4584         * find/testsuite/Makefile.am:
4585         Oops, indicate the right directory for the new test files
4586
4587         * 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:
4588         Savannah bug#18222 - test case
4589
4590         * ChangeLog, lib/buildcmd.c:
4591         Fixed Svannah bug #17782 ('./' prefix added at start of arg while it should be added at the start of the expansion of {})
4592
4593         * find/ftsfind.c (process_all_startpoints): Set
4594         state.starting_path_length for every pathname argument.
4595         This fixes Savannah bug #18222.
4596
4597         * find/pred.c (pred_prune): -prune should have an effect only if we are
4598          currently considering a directory (Savannah bug #15531).
4599
4600 2006-10-15  James Youngman <jay@gnu.org>
4601
4602         * lib/buildcmd.c: Fixed Savannah bug #17782, in which "find
4603         -execdir echo "foo {}" runs 'echo ./foo filename' instead of the
4604         correct command 'echo foo ./filename'.
4605
4606         * po/hu.po, po/sl.po: Updated Hungarian and Slovenian po files
4607
4608 2006-08-21  James Youngman <jay@gnu.org>
4609
4610         * find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.gnu/sv-bug-17490.exp:
4611         Fixed Savannah bug #17490, which was a coiredump when -regex ZZZ was the final test on the command line
4612
4613 2006-08-20  James Youngman <jay@gnu.org>
4614
4615         * find/parser.c: Merged the fix for the trailing % in "find -printf".
4616
4617 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
4618
4619         Port recent fixes for symbolic modes involving X from gnulib,
4620         and clarify the documentation in this area.
4621         * doc/find.texi: Use "file mode bits" when talking about
4622         all the file mode bits (including setuid, setgid, and sticky),
4623         and "permissions" when talking only about permissions bits
4624         (read, write, execute/search).  Use "execute/search" to
4625         talk about the x bit, since it means both.  You do not need
4626         permission to the linked-to file to follow a symlink for
4627         syscalls like "stat", but you do need search permission for
4628         the directories you traverse.  Clarify the explanation of
4629         -perm.  Use "that" instead of "which" when "which" isn't
4630         quite correct English.
4631         (Mode Bits): Renamed from Permissions.  All uses changed.
4632         * doc/perm.texi: Sync from coreutils 6.0.
4633         * find/defs.h (struct perm_val.val): Now an array of two items,
4634         one for non-directories, and one for directories.  This is
4635         to handle symbolic modes like +X correctly.
4636         * find/parser.c (parse_perm): Likewise.  Also, adjust to
4637         latest gnulib interface for mode_adjust.
4638         * find/pred.c (pred_perm): Likewise.
4639         * find/testsuite/Makefile.am (EXTRA_DIST_XO): Add find.posix/perm-X.xo.
4640         (EXTRA_DIST_EXP): Add find.posix/perm-X.exp.
4641         * find/testsuite/find.posix/perm-X.exp: New file.
4642         * find/testsuite/find.posix/perm-X.so: New file.
4643
4644 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
4645
4646         Port to latest gnulib, and simplify the bootstrapping procedure.
4647         * intl: Remove this directory and everything in it.
4648         * depcomp, install-sh, missing, mkinstalldirs, doc/texinfo.tex:
4649         Remove these files from CVS, as they are now gotten from gnulib.
4650         * README-CVS: Don't recommend "autoreconf -i", as it doesn't work
4651         for us.
4652         * import-gnulib.sh (findutils_files): New var.  Grab this stuff
4653         from gnulib.
4654         (findutils_modules): Add fopen-safer; remove stdio-safer.  This
4655         adjusts to latest gnulib.
4656         (modules): Remove obsolete reference to intl_modules.
4657         * .cvsignore: Remove stamp-h; add stamp-h1.
4658         * doc/.cvsignore: Add regexprops.texi.
4659         * find/.cvsignore: Add oldfind.
4660         * lib/.cvsignore: Add .deps, regexprops.
4661         * m4/.cvsignore: Add Makefile.
4662         * po/.cvsignore: Add stamp-po.
4663
4664 2006-08-19  James Youngman <jay@gnu.org>
4665
4666         * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/bigprefix1.exp:
4667         Explicit checks for parefixes which are within range of a short, but outside the one-byte range
4668
4669         * locate/testsuite/locate.gnu/bigprefix1.exp, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
4670         New file.
4671
4672         * locate/testsuite/Makefile.am, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
4673         Patch from Tavis Ormandy; check frcode handles initial space end encodes paths with more than 2^16 characters in the common prefix (tiny change)
4674
4675         * locate/frcode.c: Changes to avoid overflows
4676
4677 2006-08-11  James Youngman <jay@gnu.org>
4678
4679         * locate/frcode.c:
4680         Avoid producing an invalid database if the first item begins with a space
4681
4682 2006-08-10  James Youngman <jay@gnu.org>
4683
4684         * find/pred.c, import-gnulib.sh, lib/listfile.c:
4685         Updated callers of the gnnulib filemode module so that they work with the 2006-07-09 version of gnulib
4686
4687         * config.rpath: Updated config.rpath from autotools
4688
4689 2006-08-08  James Youngman <jay@gnu.org>
4690
4691         * locate/locatedb.h:
4692         Automatically verify (at compile time) that the frcode datastream
4693         cannot get desynchronised.
4694
4695         * find/ftsfind.c:
4696         Fixed Savannah bug #10494 (-maxdepth does not yield the same stat savinf in ftsfind as oldfind)
4697
4698         * find/ftsfind.c: display fts_level for find -D search
4699
4700         * find/util.c: Support find -D search
4701
4702         * locate/locate.c:
4703         If the user specified -E but the database is an slocate database, do
4704         not produce a list of files they cannot stat.  Issue an error message
4705         explaining the problem.
4706
4707         * locate/locate.c:
4708         Issue states messages in a way which indicates more clearly what's
4709         happening when the numbers are reduced because not every filename
4710         matched the pattern.
4711
4712         * locate/locate.c: Better error checking in drop_privs().
4713
4714 2006-08-07  James Youngman <jay@gnu.org>
4715
4716         * NEWS, locate/locate.c, locate/locatedb.h:
4717         Added support for slocate database format
4718
4719         * xargs/xargs.c:
4720         Removed unused code (tivial patch from Miloslav Trmac).
4721
4722         * xargs/xargs.c: Removed unused code.
4723
4724         * doc/find.texi:
4725         Clarify that the output format for locate -S differs from BSD's.
4726
4727         * NEWS, find/find.1:
4728         Savannah bug #15360: explain global vs. positional options more clearly in the manual page
4729
4730         * NEWS: Typo in subsection header (* should be **).
4731
4732         * NEWS, find/find.1:
4733         Savannah bug #15360: explain global vs. positional options more clearly in the manual page
4734
4735         * doc/find.texi: Fixed some clumsy phrasing
4736
4737         * NEWS, configure.in:
4738         Now diverging again from the released tarball, so change once more to -CVS version number suffixes
4739
4740 2006-08-06  James Youngman <jay@gnu.org>
4741
4742         * locate/locate.c: Fixed a typo in a comment.
4743
4744         * NEWS, configure.in: Moving on towards 4.3.2...
4745
4746         Release 4.3.1.
4747
4748         * find/testsuite/config/unix.exp:
4749         Check that we can see the find.o file in the right position relative
4750         to $base_dir to ensure that we are indeed testing the program we just built.
4751
4752         * find/testsuite/config/unix.exp:
4753         Be more paranoid about whether we're really checking the right version
4754         of find.
4755
4756         * NEWS, configure.in: Prepare for release of 4.3.1
4757
4758         * doc/find.texi: Document the -O and -D options
4759
4760         * find/defs.h, find/find.1, find/util.c:
4761         'find -D help' now explains the available debugging options
4762
4763         * 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:
4764         Make dist changed all the po files again
4765
4766 2006-08-05  James Youngman <jay@gnu.org>
4767
4768         * NEWS: Described more changes in 4.3.1.
4769
4770         * locate/testsuite/config/unix.exp:
4771         Set the  environment variable so that updatedb knows where to find it; it's not in BINDIR yet during 'make check'
4772
4773         * 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:
4774         Make dist changed all the po files again :)
4775
4776         * po/et.po, po/vi.po: UPdated the Estonian and Vietnamese translations
4777
4778         * NEWS, configure.in: Prepare for release of findutils-4.2.28
4779
4780         * 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:
4781         Make dist changed all the po files again :)
4782
4783         * configure.in: Added Bulgarian translation.
4784
4785         * po/bg.po: Include Bulgarian translation
4786
4787         * configure.in: Added Bulgarian translation.
4788
4789         * po/et.po, po/vi.po: Updated Estonian and Vietnamese translations
4790
4791         * NEWS: Removed spurious comma.
4792
4793         * NEWS: Listed the updated translations.
4794
4795         * find/parser.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
4796         Fixed Savannah bug#16738, find does not subtract environment size in find .. -exec {} +
4797
4798         * NEWS: Updated the list of bugfixes etc.
4799
4800 2006-06-15  James Youngman <jay@gnu.org>
4801
4802         * NEWS: Described recent changes
4803
4804         * configure.in: fix to how we invoke the gnulib regex module
4805
4806         * find/find.1:
4807         Savannah bug #16269: avoid confusion over what type of quotes to use
4808         in an example.
4809
4810         * find/parser.c: Option -nowarn should not itself produce a warning
4811
4812         * find/defs.h: Remoevd useless declaration of last_pred
4813
4814 2006-06-14  James Youngman <jay@gnu.org>
4815
4816         * 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:
4817         Updated translation files ga pl sv tr nl ca vi bg fr
4818
4819         * locate/updatedb.sh:
4820         Fixed Savannah bug #16579 (su false should be su -c false)
4821
4822 2006-04-01  James Youngman <jay@gnu.org>
4823
4824         * find/find.c:
4825         Fixed Savannah bug #15800: "Hard link count is wrong" reports wrong
4826         directory name.
4827
4828 2006-03-31  James Youngman <jay@gnu.org>
4829
4830         * po/hu.po: Updated Hungarian translation
4831
4832 2006-01-04  James Youngman <jay@gnu.org>
4833
4834         * find/testsuite/find.posix/sizetype.exp, find/testsuite/find.posix/sizetype.xo, find/testsuite/find.posix/typesize.exp, find/testsuite/find.posix/typesize.xo:
4835         Additional tests for -type -size and -size -type
4836
4837         * 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:
4838         Initial implementation of a cost-based optimiser
4839
4840 2005-12-23  James Youngman <jay@gnu.org>
4841
4842         * find/parser.c: Refactor of parse_[acm]time
4843
4844         * find/defs.h, find/find.c, find/finddata.c, find/ftsfind.c, find/tree.c, find/util.c:
4845         last_pred can be a static in tree.c rather than a global variable
4846
4847         * find/tree.c, find/finddata.c:
4848         Moved some global data out of finddata.o and into static variables in tree.c
4849
4850         * 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:
4851         Fixed many compilation warnings
4852
4853         * find/find.c, find/ftsfind.c, find/util.c:
4854         Evaluating the predicates can change the contents of the data structure (for example to add another exec item)
4855
4856         * find/defs.h, find/find.c, find/ftsfind.c, find/tree.c, find/util.c:
4857         Re-factored a lot of common expression-handling code out of find.c and ftsfind.c, mainly into tree.c
4858
4859         * find/find.c, find/ftsfind.c, find/tree.c:
4860         Savannah bug #15271: more helpful error messages for cases where there is a missing expression
4861
4862 2005-12-20  James Youngman <jay@gnu.org>
4863
4864         * 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:
4865         Savannah bug #15195: more helpful error messages for 'find . ( )' or 'find . \!'
4866
4867         * ChangeLog: Added entries for recent changes.
4868
4869         * find/defs.h, find/find.c, find/ftsfind.c, find/testsuite/find.posix/bracket-depth.exp, find/util.c:
4870         Further fix to bug# 15235: a leading comma is a filename not an expression
4871
4872         * find/defs.h, find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.posix/empty-parens.exp, find/tree.c:
4873         Accept 'find ( -depth )' but reject 'find ( )'
4874
4875         * 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:
4876         did make dist
4877
4878         * find/testsuite/find.gnu/delete.exp:
4879         Use the new find program, and the new way of locating it (/ instead of )
4880
4881         * find/testsuite/Makefile.am: Added bracket-depth.exp.
4882
4883         * NEWS, configure.in: We have moved on from 4.3.0
4884
4885         * 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:
4886         Avoid getting confused by filename arguments of which the first
4887         character looks like a predicate, for example ',x' or '!x' or
4888         '(x' (Savannah bug #15235).
4889
4890 2005-12-20  James Youngman <jay@gnu.org>
4891
4892         * find/defs.h, find/find.c, find/ftsfind.c,
4893         find/testsuite/find.posix/bracket-depth.exp, find/util.c: Further
4894         fix to bug# 15235: a leading comma is a filename not an expression
4895
4896         * find/defs.h, find/parser.c, find/testsuite/Makefile.am,
4897         find/testsuite/find.posix/empty-parens.exp, find/tree.c: Accept
4898         'find ( -depth )' but reject 'find ( )'
4899
4900         * find/testsuite/find.gnu/delete.exp: Use the new find program,
4901         and the new way of locating it ($OLDFIND/$FTSFIND instead of $FIND)
4902
4903         * find/testsuite/Makefile.am: Added bracket-depth.exp.
4904
4905         * NEWS, configure.in: We have moved on from 4.3.0
4906
4907         * find/defs.h, find/find.c, find/ftsfind.c,
4908         find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
4909         find/testsuite/find.posix/files-not-expressions1.exp,
4910         find/testsuite/find.posix/files-not-expressions1.xo,
4911         find/testsuite/find.posix/files-not-expressions2.exp,
4912         find/testsuite/find.posix/files-not-expressions2.xo,
4913         find/testsuite/find.posix/files-not-expressions3.exp,
4914         find/testsuite/find.posix/files-not-expressions3.xo, find/util.c:
4915         Avoid getting confused by filename arguments of which the first
4916         character looks like a predicate, for example ',x' or '!x' or '(x'
4917         (Savannah bug #15235).
4918
4919 2005-12-19  James Youngman <jay@gnu.org>
4920
4921         * find/testsuite/config/unix.exp:
4922         Run every test twice, once with the old (non-fts) binary and once with
4923         the new (fts-enabled) binary.
4924
4925 2005-12-19  Eric Blake <ebb9@byu.net>
4926
4927         * find/testsuite/Makefile.am,
4928         find/testsuite/find.posix/sv-bug-15235.xo,
4929         find/testsuite/find.posix/sv-bug-15235.exp: New tests for Savannah
4930         bug 15235.
4931
4932         * NEWS, find/find.1, doc/find.texi (Invoking find): Document bug
4933         fix for Savannah bug 15235.
4934
4935 2005-12-16  James Youngman <jay@gnu.org>
4936
4937         * xargs/xargs.1, xargs/xargs.c: Fixed bug# 15211, that xargs
4938         --show-limits is not documented in the manpage or in the usage
4939         message
4940
4941 2005-12-12  James Youngman <jay@gnu.org>
4942
4943         Release 4.3.0.
4944
4945         * find/testsuite/find.gnu/access.exp:
4946         Don't leave junk files lying around the place
4947
4948         * README-CVS: Update the the instructions for getting gnulib; the
4949         CVS arrangements at Savannah have changed.
4950
4951         * ChangeLog, NEWS, doc/find.texi, doc/perm.texi, find/defs.h, find/parser.c:
4952         Merged changes from 4.2.x branch again
4953
4954         * NEWS, doc/find.texi, find/defs.h, find/find.c, find/ftsfind.c,
4955         find/parser.c, find/pred.c, find/util.c, lib/listfile.c,
4956         lib/listfile.h: Initial code to allow control over how -ls quote
4957         (or does not quote) control characters; not enabled yet
4958
4959 2005-12-11  James Youngman <jay@gnu.org>
4960
4961         * ChangeLog, THANKS, xargs/xargs.c:
4962         Fixed spelling errors in Bob Proulx's name.  Sorry, Bob.
4963
4964 2005-12-10  James Youngman <jay@gnu.org>
4965
4966         * doc/perm.texi:
4967         Aaron Hawley: Updated perm.texi from the coreutils distribution
4968
4969         * find/parser.c:
4970         Avoid using entries which have the same name as POSIX library
4971         functions (fprintf, printf, exec) as the implementation is allowed to
4972         #define these.  That generates hard-to-grok compilation errors.
4973
4974 2005-12-10  Andreas Metzler <gnu@downhill.at.eu.org>
4975
4976         * ChangeLog, NEWS, configure.in, find/defs.h, find/parser.c:
4977         Applied patch from Andreas Metzler fixing Savannah bug #15181:
4978         implicit declaration of parse_openparen
4979
4980 2005-12-08  James Youngman  <jay@gnu.org>
4981
4982         * doc/find.texi: Typo and spelling corrections from Aaron Hawley
4983
4984 2005-12-05  James Youngman  <jay@gnu.org>
4985
4986         * Released findutils-4.2.27
4987
4988 2005-12-05  James Youngman  <jay@gnu.org>
4989
4990         * doc/find.texi, find/find.1, locate/locate.1, xargs/xargs.1:
4991         Savannah patch #3775 from Aaron Hawley: reconciling man pages
4992         differences; did not apply the patch, but resolved all the
4993         remaining issues manually by updating the documentation (mostly
4994         the Texinfo documentation, which was missing a number of specific
4995         technical statements about the behaviour of various options)
4996
4997 2005-12-04  James Youngman  <jay@gnu.org>
4998
4999         * doc/find.texi: Document --show-limits
5000
5001         * xargs/xargs.c:
5002         Correctly display the size of the argument buffer we really allocated.
5003
5004         * doc/find.texi, find/find.1, find/parser.c, find/pred.c, NEWS:
5005         Savannah bug #14748 (which this change does NOT fix): issue
5006         warning of future changes in the behaviour of -perm /000
5007
5008 2005-11-30  James Youngman  <jay@gnu.org>
5009
5010         * xargs/xargs.c:
5011         Typo correction from Benno Schulenberg <benno@nietvergeten.nl>
5012         (tiny change)
5013
5014 2005-11-29  James Youngman  <jay@gnu.org>
5015
5016         * xargs/xargs.c:
5017         Typo "Ilegal"; change to "Invalid" since this is not really illegal!
5018         Bug report by Primoz Peterlin.
5019
5020         * lib/regexprops.c, xargs/xargs.c:
5021         Prefer the word 'Invalid' or the phrase 'not allowed' over
5022         'Illegal', as per the GNU coding standards, and as per the
5023         suggestion from Benno Schulenberg
5024
5025 2005-11-24  James Youngman  <jay@gnu.org>
5026
5027         * NEWS, lib/buildcmd.c, lib/buildcmd.h: Merge to trunk from 4.2.x fixes
5028
5029         * lib/buildcmd.h:
5030         Deleted inaccurate comment about the default value of ctl->args_per_exec.
5031
5032         * NEWS, lib/buildcmd.c, lib/buildcmd.h:
5033         Be more conservative about the total number of arguments we will
5034         allow (to avoid exec limits on Linux/PPC)
5035
5036 2005-11-23  James Youngman  <jay@gnu.org>
5037
5038         * NEWS: Bug #14921 has been fixed.
5039
5040         * find/fstype.c:
5041         Savannah bug #14921: when a Linux bind filesystem is in use, find
5042         would expand '-printf %F' to 'none' if a bind mount targetted the same
5043         filesystem as the one containing the file to be described.
5044
5045         * NEWS: Updated to describe recent changes
5046
5047         * doc/find.texi, find/find.1: Documented find -printf %M
5048
5049         * lib/buildcmd.c, xargs/testsuite/Makefile.am,
5050         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
5051         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
5052         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
5053         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo:
5054         Ensure that the test suite still passes even if the current
5055         system's value of ARG_MAX is different from the development/test
5056         system
5057
5058         * lib/buildcmd.c: reindent and untabify
5059
5060         * configure.in: The CVS code is moving on from the previous release.
5061
5062 2005-11-22  James Youngman  <jay@gnu.org>
5063
5064         * ChangeLog: Updated with recent changes.
5065
5066 2005-11-21  James Youngman  <jay@gnu.org>
5067
5068         * locate/testsuite/config/unix.exp:
5069         Even if we expect locate to return a nonzero status, the test should
5070         still fail if updatedb fails!
5071
5072         * locate/testsuite/locate.gnu/ignore_case2.exp:
5073         Set the current directory for updatedb.  This test case is supposed to
5074         fail because the filename is not matched, not because updatedb fails!
5075
5076         * locate/updatedb.sh:
5077         Check the binaries actually exist in the place we expect.
5078
5079 2005-11-20  James Youngman  <jay@gnu.org>
5080
5081         * locate/locate.1, xargs/xargs.1: Escape '-' as '\-' where appropriate.
5082
5083         * find/find.1:
5084         Escape '-' as '\-' where appropriate.   Fixes last part of bug #14556.
5085
5086 2005-11-19  James Youngman  <jay@gnu.org>
5087
5088         * doc/find.texi, find/find.1:
5089         Applied edited form of Andreas Metzler's -perm /mode documentation
5090         patch resolving Savannah bug #14619.
5091
5092         * lib/extendbuf.c:
5093         In the success case, extendbuf() should preserve the previous value of
5094         errno.  Fixes Savannah bug #14842.
5095
5096         * xargs/testsuite/Makefile.am: Added new test files
5097
5098         * find/find.1:
5099         Correctly indicate the default regular expression syntax (fixes
5100         Savannah bug #14836).
5101
5102         * NEWS, configure.in: Released findutils-4.2.26
5103
5104         * ChangeLog, NEWS, lib/buildcmd.c,
5105         xargs/testsuite/inputs/16383-ys.xi,
5106         xargs/testsuite/inputs/32767-ys.xi,
5107         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
5108         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
5109         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
5110         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: Applied
5111         bugfix from Jim Meyering (tiny change), where many short arguments
5112         would cause xargs (and probably find -exec .. {} +) to fail
5113         because execve() returns E2BIG, which we should avoid
5114
5115         * xargs/testsuite/inputs/16383-ys.xi,
5116         xargs/testsuite/inputs/32767-ys.xi,
5117         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
5118         xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
5119         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
5120         xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: New file.
5121
5122         * po/be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
5123         findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
5124         ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
5125         ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po,
5126         zh_TW.po: Updated Portuguese .po file and did update-po
5127
5128 2005-11-18  Jim Meyering  <jim@meyering.net> (tiny change)
5129
5130         * lib/buildcmd.c (bc_push_arg): When exec'ing, don't exceed
5131         Linux's limit on the maximum number of command line arguments.
5132
5133 2005-11-11  James Youngman  <jay@gnu.org>
5134
5135         * NEWS, find/find.c, find/fstype.c: Savannah bug #14922: if we need the
5136         list of mounted filesystems but it is not available, exit fatally
5137         with a message.  If it is not available but we don't need it,
5138         there is no need for an error.
5139
5140         * po/ro.po, ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po,
5141         zh_CN.po, zh_TW.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po,
5142         pt_BR.po, be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po,
5143         fi.po, findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po,
5144         it.po, ja.po: Updated Polish translation
5145
5146 2005-10-31  James Youngman  <jay@gnu.org>
5147
5148         * doc/find.texi:
5149         Removed redundant additional description of "--regextype".
5150
5151 2005-10-08  James Youngman  <jay@gnu.org>
5152
5153         * find/find.c, lib/regextype.c: Fixed Savannah bug #14616, which
5154         was that c99 code had crept in and it didn't compile on c89
5155         compilers
5156
5157         * doc/find.texi: Savannah patch #4371 from Andreas Metzler; the
5158         argument of -I is mandatory
5159
5160 2005-09-21  James Youngman  <jay@gnu.org>
5161
5162         * xargs/xargs.1, xargs/xargs.c: Clarified the -E option
5163
5164 2005-09-20  James Youngman  <jay@gnu.org>
5165
5166         * NEWS, configure.in, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
5167         Documentation clarification: -L and -I take a mandatory argument;
5168         -l and -i do not
5169
5170 2005-09-17  James Youngman  <jay@gnu.org>
5171
5172         * xargs/xargs.c:
5173         Fixed Savannah bug #14550 - if environment is too large to allow
5174         exec() to work, we cannot even use "xargs --help".
5175
5176         * find/find.1:
5177         Avoid the use of -perm +mode, using -perm /mode instead.  From comment
5178         by Andreas Metzler (though I didn't read the patch).
5179
5180         * ChangeLog, doc/find.texi, find/find.1, xargs/xargs.1:
5181         Typo fix from A Costa (tiny change)
5182
5183         * NEWS: Corrections for find manual page - symbolic permissions.
5184
5185         * find/find.1:
5186         Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
5187         'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
5188
5189 2005-09-17  A Costa <agcosta@gis.net>  (tiny change)
5190
5191         docs/find.texi: Fixed typo
5192         find/find.1: Fixed typo
5193         xargs/xargs.1: Fixed typo
5194
5195 2005-09-17  James Youngman  <jay@gnu.org>
5196
5197         * NEWS: Corrections for find manual page - symbolic permissions.
5198
5199         * find/find.1:
5200         Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
5201         'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
5202
5203 2005-09-06  James Youngman  <jay@gnu.org>
5204
5205         * xargs/xargs.c: Typo in "IEEE" in a comment.
5206
5207 2005-09-04  James Youngman  <jay@gnu.org>
5208
5209         * find/defs.h, find/find.c, find/parser.c, find/pred.c,
5210         Work around compilation failure with GCC 4 and AIX 5.1, in which
5211         open is #defined to open64
5212
5213         * po/be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
5214         findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
5215         ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
5216         ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po,
5217         zh_TW.po: Work around compilation failure with GCC 4 and AIX 5.1,
5218         in which open is #defined to open64
5219
5220 2005-09-03  James Youngman  <jay@gnu.org>
5221
5222         * find/testsuite/find.gnu/quit.exp: Fixed Savannah bug#14390, by
5223         avoiding an accidental assumption in quit.exp that directory
5224         entries are returned by readir() in any particular order
5225
5226         * NEWS, configure.in, doc/find.texi, xargs/testsuite/Makefile.am,
5227         xargs/testsuite/inputs/helloworld.xi,
5228         xargs/testsuite/xargs.gnu/delim-o.exp,
5229         xargs/testsuite/xargs.gnu/delim-o.xo, xargs/xargs.1,
5230         xargs/xargs.c: Added the --delimiter option to xargs, resolving
5231         Savannah support request sr #102914
5232
5233         * ChangeLog, NEWS, configure.in: Released findutils-4.2.25
5234
5235         * po/sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po, sl.po, be.po,
5236         ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
5237         findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
5238         ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
5239         ru.po, rw.po, sk.po: Did update-po
5240
5241 2005-09-02  James Youngman  <jay@gnu.org>
5242
5243         * doc/find.texi, find/find.1:
5244         Improved documentation in response to Savannah bug #14376
5245
5246 2005-09-01  James Youngman  <jay@gnu.org>
5247
5248         * po/ChangeLog, ChangeLog: Updated with recent changes.
5249
5250         * locate/locate.c: Removed unused struct stringbuf.soffs.
5251
5252         * doc/find.texi: Typo fix from Jim Meyering (tiny change)
5253
5254 2005-09-01  Jim Meyering  <jim@meyering.net>
5255
5256         * locate/locate.c (struct stringbuf) [soffs]: Remove unused member.
5257         (locate): Remove initialization, too.
5258
5259 2005-09-01  James Youngman  <jay@gnu.org>
5260
5261         * doc/find.texi: Typo fix from Jim Meyering (tiny change)
5262
5263 2005-08-30  James Youngman  <jay@gnu.org>
5264
5265         * find/defs.h, find/find.c, find/fstype.c, find/pred.c:
5266         Attempted fix for compilation when AFS is #defined
5267
5268 2005-08-24  James Youngman  <jay@gnu.org>
5269
5270         * po/sl.po: Updated from Translation Project
5271
5272 2005-08-13  James Youngman  <jay@gnu.org>
5273
5274         * find/find.1: Remind the user to quote the pattern argument to -iname.
5275
5276 2005-08-12  James Youngman  <jay@gnu.org>
5277
5278         * NEWS: Corrected typo.
5279
5280 2005-08-11  James Youngman  <jay@gnu.org>
5281
5282         * po/fr.po: Updated French translation and added new PO file zh_TW.po
5283         for Chinese (traditional)
5284
5285 2005-08-09  James Youngman  <jay@gnu.org>
5286
5287         * NEWS: Indicate that regexprops.texi is built on Cygin now that
5288         Savannah bug #14025 has been fixed.
5289
5290         * lib/Makefile.am, lib/regexprops.c: Fixed compilation failure on
5291         Cygwin - Savannah Bug #14025 (tiny change, three lines), reported
5292         and fixed by Eric Blake
5293
5294         * find/testsuite/Makefile.am,
5295         find/testsuite/find.posix/sv-bug-14070.exp,
5296         find/testsuite/find.posix/sv-bug-14070.xo: Added new test case for
5297         SourceForge bug #14070
5298
5299         * find/testsuite/find.posix/sv-bug-14070.exp,
5300         find/testsuite/find.posix/sv-bug-14070.xo: New file.
5301
5302         * find/defs.h, find/ftsfind.c, find/pred.c, find/util.c:
5303         Ensure we can still build with --enable-debug
5304
5305         * find/testsuite/config/unix.exp,
5306         find/testsuite/find.gnu/execdir-one.exp,
5307         find/testsuite/find.gnu/execdir-root-only.exp,
5308         find/testsuite/find.gnu/sv-bug-12230.exp: If . is on $PATH,
5309         indicate that the -execdir tests cannot be carried out, as opposed
5310         to indicating that those tests fail
5311
5312 2005-08-07  James Youngman  <jay@gnu.org>
5313
5314         * NEWS: Indicated that some test suite files have been renamed.
5315
5316         * xargs/testsuite/Makefile.am, xargs/testsuite/inputs/eof.xi,
5317         xargs/testsuite/inputs/eof1.xi,
5318         xargs/testsuite/xargs.sysv/eof.exp,
5319         xargs/testsuite/xargs.sysv/eof.xo,
5320         xargs/testsuite/xargs.sysv/eof1.exp,
5321         xargs/testsuite/xargs.sysv/eof1.xo,
5322         xargs/testsuite/xargs.posix/lc_l2.exp,
5323         xargs/testsuite/xargs.posix/lc_l2.xo,
5324         xargs/testsuite/xargs.sysv/l2.exp,
5325         xargs/testsuite/xargs.sysv/l2.xo,
5326         xargs/testsuite/xargs.sysv/lc_l2.exp,
5327         xargs/testsuite/xargs.sysv/lc_l2.xo,
5328         xargs/testsuite/xargs.posix/L2.exp,
5329         xargs/testsuite/xargs.posix/l2.exp,
5330         xargs/testsuite/xargs.posix/L2.xo,
5331         xargs/testsuite/xargs.posix/l2.xo,
5332         xargs/testsuite/xargs.posix/uc_L2.exp,
5333         xargs/testsuite/xargs.posix/uc_L2.xo: Work around problems with
5334         CVS clients on case-insentitive operating systems
5335
5336         * debian/Changelog: Removed Changelog file since changelog is the
5337         one we should be using and having both files upsets Cygwin
5338         systems which cannot tell the dirrerence between changelog and
5339         Changelog
5340
5341         * find/ftsfind.c:
5342         If DEBUG is defined, show the symbolic names fro fts_info values.
5343
5344         * find/ftsfind.c: Added additional diagnostics.
5345
5346 2005-08-02  James Youngman  <jay@gnu.org>
5347
5348         * po/tr.po, vi.po:
5349         Updated Vietnamese and Turkish translations from Translation Project
5350
5351         * po/sl.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, fi.po, findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po, ja.po, ko.po, lg.po, ms.po, pl.po, pt.po, pt_BR.po, ru.po, rw.po:
5352         Did update-po
5353
5354         * po/et.po, sk.po, ro.po:
5355         Updated Romanian, Slovak and Estonian translations from Translation Project
5356
5357 2005-08-01  James Youngman  <jay@gnu.org>
5358
5359         * ABOUT-NLS, INSTALL, Makefile.am, configure.in, depcomp,
5360         doc/texinfo.tex, install-sh, missing, mkinstalldirs: By adding the
5361         missing AM_GNU_GETTEXT_VERSION call, allowed autopoint to update
5362         those files of which it has updated copies.
5363
5364         * po/Makevars.template, po/Makefile.in.in, po/findutils.pot:
5365         Using AM_GNU_GETTEXT_VERSION, allowed gettext to update the infrastructure
5366
5367         * po/Rules-quot, po/boldquot.sed, po/en@boldquot.header, po/en@quot.header, po/insert-header.sin, po/quot.sed:
5368         Files added by autopoint now that we are using AM_GNU_GETTEXT_VERSION
5369
5370         * find/testsuite/Makefile.am: Added find.gnu./perm-slash.{exp,xo}.
5371
5372         * po/nl.po: Updated Dutch translation from Translation Project
5373
5374         * po/ga.po: Updated Irish translation from the Translation Project
5375
5376         * po/da.po: Updated Danish translation from the Translation Project
5377
5378         * po/ca.po: Updated Catalan translation from Translation Project
5379
5380 2005-07-31  James Youngman  <jay@gnu.org>
5381
5382         * find/testsuite/excuses.txt: We now have tests for -perm.
5383
5384         * NEWS, configure.in, find/parser.c,
5385         find/testsuite/find.gnu/perm-slash.exp,
5386         find/testsuite/find.gnu/perm-slash.xo: Fixed bug which caused find
5387         -perm /440 to be treated the same as find -perm 440
5388
5389         * find/testsuite/Makefile.am:
5390         Generic tests for -perm -NNN and -perm NNN
5391
5392         * find/testsuite/excuses.txt: New file - list of test cases that
5393         still need to be written, along with excuses why they haven't been
5394         done yet
5395
5396         * find/testsuite/find.posix/perm-vanilla.exp,
5397         find/testsuite/find.posix/perm-vanilla.xo: Generic tests for -perm
5398         -NNN and -perm NNN
5399
5400         * find/testsuite/find.gnu/inum.exp:
5401         Ensure that the test would fail if -inum just always returned true
5402
5403         * find/testsuite/Makefile.am, find/testsuite/find.gnu/ilname.exp,
5404         find/testsuite/find.gnu/ilname.xo,
5405         find/testsuite/find.gnu/inum.exp, find/testsuite/find.gnu/inum.xo,
5406         find/testsuite/find.gnu/lname.exp,
5407         find/testsuite/find.gnu/lname.xo,
5408         find/testsuite/find.gnu/xtype.exp,
5409         find/testsuite/find.gnu/xtype.xo,
5410         find/testsuite/find.posix/links.exp,
5411         find/testsuite/find.posix/links.xo: New test cases for -ilname,
5412         -inum, -lname, -xtype
5413
5414         * find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
5415         find/testsuite/find.gnu/delete.xo,
5416         find/testsuite/find.gnu/iregex1.exp,
5417         find/testsuite/find.gnu/iregex1.xo,
5418         find/testsuite/find.gnu/regex1.exp,
5419         find/testsuite/find.gnu/regex1.xo,
5420         find/testsuite/find.gnu/regex2.exp,
5421         find/testsuite/find.gnu/regex2.xo,
5422         find/testsuite/find.gnu/samefile-copy.exp,
5423         find/testsuite/find.gnu/samefile-copy.xo,
5424         find/testsuite/find.gnu/samefile-link.exp,
5425         find/testsuite/find.gnu/samefile-link.xo,
5426         find/testsuite/find.gnu/samefile-same.exp,
5427         find/testsuite/find.gnu/samefile-same.xo,
5428         find/testsuite/find.gnu/samefile-symlink.exp,
5429         find/testsuite/find.gnu/samefile-symlink.xo: Further test cases
5430
5431         * find/find.1: Indicate that -delete implies -depth (find.texi
5432         already mentioned this).
5433
5434         * find/testsuite/Makefile.am:
5435         Brought the list of .exp and .xo files in Makefile.am into sync with
5436         the actual contents of the CVS repository.
5437
5438         * find/testsuite/Makefile.am, find/testsuite/find.gnu/depth-d.exp,
5439         find/testsuite/find.gnu/depth-d.xo,
5440         find/testsuite/find.gnu/empty.exp,
5441         find/testsuite/find.gnu/empty.xo,
5442         find/testsuite/find.gnu/execdir-one.exp,
5443         find/testsuite/find.gnu/execdir-one.xo,
5444         find/testsuite/find.gnu/false.exp,
5445         find/testsuite/find.gnu/false.xo,
5446         find/testsuite/find.gnu/follow-basic.exp,
5447         find/testsuite/find.gnu/follow-basic.xo,
5448         find/testsuite/find.gnu/gnu-or.exp,
5449         find/testsuite/find.gnu/gnu-or.xo,
5450         find/testsuite/find.gnu/gnuand.exp,
5451         find/testsuite/find.gnu/gnuand.xo,
5452         find/testsuite/find.gnu/gnunot.exp,
5453         find/testsuite/find.gnu/gnunot.xo,
5454         find/testsuite/find.gnu/iname.exp,
5455         find/testsuite/find.gnu/iname.xo,
5456         find/testsuite/find.gnu/ipath.exp,
5457         find/testsuite/find.gnu/ipath.xo,
5458         find/testsuite/find.gnu/iwholename.exp,
5459         find/testsuite/find.gnu/iwholename.xo,
5460         find/testsuite/find.gnu/path.exp, find/testsuite/find.gnu/path.xo,
5461         find/testsuite/find.gnu/print0.exp,
5462         find/testsuite/find.gnu/print0.xo,
5463         find/testsuite/find.gnu/quit.exp, find/testsuite/find.gnu/quit.xo,
5464         find/testsuite/find.gnu/true.exp, find/testsuite/find.gnu/true.xo,
5465         find/testsuite/find.gnu/wholename.exp,
5466         find/testsuite/find.gnu/wholename.xo,
5467         find/testsuite/find.posix/and.exp,
5468         find/testsuite/find.posix/and.xo,
5469         find/testsuite/find.posix/exec-one.exp,
5470         find/testsuite/find.posix/exec-one.xo,
5471         find/testsuite/find.posix/grouping.exp,
5472         find/testsuite/find.posix/grouping.xo,
5473         find/testsuite/find.posix/name.exp,
5474         find/testsuite/find.posix/name.xo,
5475         find/testsuite/find.posix/posixnot.exp,
5476         find/testsuite/find.posix/posixnot.xo,
5477         find/testsuite/find.posix/prune.exp,
5478         find/testsuite/find.posix/prune.xo: Added new test cases for many
5479         of the actions and tests of find
5480
5481         * find/find.c (default_prints):
5482         not a static function, so do not declare it as one.
5483
5484         * m4/withfts.m4: Fixed underquoted definition of FIND_WITH_FTS.
5485         [this change is currently on a branch only]
5486
5487 2005-07-30  James Youngman  <jay@gnu.org>
5488
5489         * find/finddata.c, find/ftsfind.c, find/parser.c, find/pred.c,
5490         find/util.c, m4/Makefile.am, m4/withfts.m4: Initial attempt to
5491         convert find to use gnulib's fts()
5492         [this change is currently on a branch only]
5493
5494         * find/finddata.c, find/ftsfind.c, m4/withfts.m4: New file.
5495         [this change is currently on a branch only]
5496
5497         * NEWS, configure.in, find/Makefile.am, find/defs.h, find/find.c,
5498         import-gnulib.sh: Initial attempt to convert find to use gnulib's
5499         fts() [this change is currently on a branch only]
5500
5501 2005-07-29  James Youngman  <jay@gnu.org>
5502
5503         * NEWS, configure.in
5504         Prepared for the release of findutils-4.2.24
5505
5506         * ChangeLog: Updated with recent changes.
5507
5508         * NEWS, find/find.1, doc/find.texi:
5509         Indicate that -ok and -okdir redirect stdin from /dev/null.
5510
5511         * NEWS: Explain the directory link count change more throroughly.
5512
5513         * NEWS: Fixed bug #13973.
5514
5515         * find/pred.c (pred_fprintf): Fix Savannah bug #13973: Modify the
5516         handling of -printf %Y so that it no longer modifies stat_buf
5517
5518         * find/testsuite/find.gnu/printf-symlink.exp,
5519         find/testsuite/find.gnu/printf-symlink.xo: Detect Savannah bug
5520         #13973: pollution of stat_buf by the %Y directive (trivial change
5521         from Andreas Metzler)
5522
5523         * INSTALL, depcomp, doc/texinfo.tex, install-sh, missing, mkinstalldirs:
5524         Updated auxilliary files from the automake-1.9 distribution
5525
5526         * configure.in:
5527         Introduce new Automake conditional, CROSS_COMPILING, true when we are corss compiling
5528
5529         * find/find.c:
5530         If we decline to follow a symbolic link due to the safety check, issue a more self-explanatory warning message
5531
5532         * lib/Makefile.am: Don't build regexprops if we are cross compiling
5533
5534         * doc/Makefile.am:
5535         Depend on the regex.h file rather than the 'regexprops' binary,
5536         because the header file will always exist even if we are doing "make
5537         dist".  Otherwise "make distcheck" fails because it tries to rebuild
5538         find.info while the source-directory is read-only.
5539
5540 2005-07-28  James Youngman  <jay@gnu.org>
5541
5542         * find/find.1:
5543         Say "other users" rather than "rest of the world" when talking about
5544         Unix permissions.  Fixes Savannah bug #4246.
5545
5546 2005-07-27  James Youngman  <jay@gnu.org>
5547
5548         * xargs/testsuite/Makefile.am: Added new test case 'childfail.exp'.
5549
5550         * doc/find.texi:
5551         Updated the description of the safe-dir-change operation to reflect
5552         what find now does on systems that lack O_NOFOLLOW.
5553
5554         * NEWS, find/parser.c: Indicate in the output of find --version if
5555         the leaf optimisation is enabled or not
5556
5557         * find/find.c: Fixed typo.
5558
5559         * find/find.c: If the link count of a directory starts off less
5560         than two, disable the leaf optimisation for this directory.
5561
5562 2005-07-26  James Youngman  <jay@gnu.org>
5563
5564         * lib/regexprops.c: Further small corrections from Karl.
5565
5566         * doc/find.texi:
5567         Reordered the sections in the manual to put the "Common Tasks" and
5568         "Worked Examples" chapters together.
5569
5570         * configure.in, find/find.c: Allow the leaf optimisation to be
5571         disabled by default with the configure option
5572         --disable-leaf-optimisation
5573
5574         * find/find.c: Removed old code for antuqie version of savedir().
5575
5576         * lib/regextype.c: Put the syntaxes in alphabetical order.
5577
5578         * lib/regexprops.c: Karl made some more readability suggestions.
5579
5580 2005-07-24  James Youngman  <jay@gnu.org>
5581
5582         * doc/Makefile.am: If the regexprops program has changed we should
5583         re-run it, since it will probably now produce different output
5584
5585         * lib/regextype.h:
5586         Allow the caller to detect if one regex type is identical to another.
5587
5588         * configure.in:
5589         Define the preprocessor macro FINDUTILS for that code int he lib/
5590         directory can be slightly more reusable.
5591
5592         * lib/regextype.c:
5593         Allow the caller to detect if one regex type is identical to another.
5594
5595         * lib/regexprops.c:
5596         Made Texinfo style corrections suggested by Karl Berry.
5597
5598 2005-07-22  James Youngman  <jay@gnu.org>
5599
5600         * xargs/testsuite/xargs.posix/childfail.exp, xargs/xargs.c: Fix
5601         Savannah bug #13878, in which xargs deals incorrectly with child
5602         failure, returning 0 when it should return 123
5603
5604 2005-07-17  James Youngman  <jay@gnu.org>
5605
5606         * find/find.1: (tiny change) Corrections by Greg Wooledge
5607
5608 2005-07-16  James Youngman  <jay@gnu.org>
5609
5610         * doc/find.texi: Updates following comments by Dave Gilbert.
5611
5612         * NEWS: Corrected a typo.
5613
5614         * doc/find.texi:
5615         Added in the example about updating an aggregate timestamp file.
5616
5617 2005-07-15  James Youngman  <jay@gnu.org>
5618
5619         * po/da.po: Updated Danish translation from translation project
5620
5621 2005-07-14  James Youngman  <jay@gnu.org>
5622
5623         * NEWS, doc/Makefile.am, doc/find.texi, lib/Makefile.am,
5624         lib/regexprops.c, lib/regextype.c, lib/regextype.h: Added
5625         --regextype and -regextype options to locate and find
5626         respectively, and documented these
5627
5628         * doc/find.texi: We use GNU Emacs regexps by default now.
5629
5630         * doc/find.texi:
5631         We require GNU sort in order for locate to handle newlines correctly,
5632         not just GNU find.
5633
5634 2005-07-10  James Youngman  <jay@gnu.org>
5635
5636         * doc/find.texi:
5637         Applied several documentation improvement patches from Aaron Hawley
5638
5639         * ChangeLog, NEWS: Updated with recent changes.
5640
5641         * NEWS: Recent gnulib changed have fixed -iregex
5642
5643         * doc/find.texi, xargs/xargs.1:
5644         Tiny patch from Andreas Metzler: xargs -I is like xargs -i, but the latter is deprecated
5645
5646 2005-07-06  James Youngman  <jay@gnu.org>
5647
5648         * find/defs.h, find/find.c, find/parser.c, find/pred.c:
5649         Fixed Savannah bug #13650; programs run by -exec cannot read stdin
5650
5651 2005-07-04  James Youngman  <jay@gnu.org>
5652
5653         * NEWS: *** empty log message ***
5654
5655         * doc/find.texi:
5656         Added a "Worked Examples" section.   It currently only contains a
5657         (long) example about deleting files.
5658
5659         * .cvsignore: Some extra stuff to ignore.
5660
5661 2005-07-03  James Youngman  <jay@gnu.org>
5662
5663         * find/Makefile.am: Don't need regexprops.c really...
5664
5665         * lib/regextype.c, lib/regextype.h:
5666         New files for selecting regex type based on a keyword
5667
5668         * locate/locate.1: Documented the fact that we now use Emacs-style
5669         regexps, not POSIX EREs, for compatibility with find -regex.
5670
5671         * lib/Makefile.am, locate/locate.c, doc/find.texi,
5672         find/Makefile.am, find/defs.h, find/find.1, find/find.c,
5673         find/parser.c: Fixed Savannah bug #13495: find now uses
5674         Emacs-style regexps by default
5675
5676 2005-07-02  James Youngman  <jay@gnu.org>
5677
5678         * configure.in, find/defs.h, find/fstype.c, find/parser.c,
5679         intl/dcigettext.c, lib/buildcmd.c, lib/listfile.c,
5680         lib/savedirinfo.c, locate/locate.c, xargs/xargs.c: Assume unistd.h
5681         is present - avoid using HAVE_UNISTD_H
5682
5683 2005-07-01  Jim Meyering  <jim@meyering.net>
5684
5685         With `-fprint F' or `-fprintf F', don't write diagnostics
5686         to F when stderr is closed.
5687
5688         * find/parser.c: Include "stdio-safer.h".
5689         (open_output_file): Use fopen_safer, not fopen.
5690         * import-gnulib.sh (findutils_modules): Add stdio-safer.
5691
5692 2005-07-01  James Youngman  <jay@gnu.org>
5693
5694         * doc/find.texi:
5695         Aaron pointed out a potentially-confusing sentence.  I fixed it.
5696
5697         * find/defs.h, find/find.1, find/find.c, find/parser.c,
5698         find/pred.c, find/util.c: Allow consistency-checking of the
5699         predicates, checking for example that actions all have side
5700         effects
5701
5702 2005-06-29  James Youngman  <jay@gnu.org>
5703
5704         * doc/find.texi: Applied patch from Aaron Hawley (Savannah patch
5705         #3751: Typos and small suggestions to find.texi)
5706
5707 2005-06-27  James Youngman  <jay@gnu.org>
5708
5709         * ChangeLog, locate/locate.c: Applied patch from Bas Van Gompel to
5710         move match counting into a (new) visitor function
5711
5712         * NEWS, configure.in: No longer 4.2.23, as we're moving on now
5713
5714 2005-06-24  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
5715
5716         * locate/locate.c (visit_count, visit_limit): New functions.
5717         (locate): Use visit_limit or visit_count. Simplify main loop.
5718         (main) Bail out early when limit is reached.
5719
5720 2005-06-20  James Youngman  <jay@gnu.org>
5721
5722         * xargs/xargs.c:
5723         Removed some code which had already been disabled via the preprocessor.
5724
5725 2005-06-19  Dmitry V. Levin <ldv@altlinux.org>
5726
5727         * lib/savedirinfo.c: Fix two compilation warnings (which would
5728         prevent compilation if "-Wall -Werror" is in effect).
5729
5730 2005-06-19  James Youngman  <jay@gnu.org>
5731
5732         * ChangeLog: Indicate that we made (are making) a release.
5733
5734         * ChangeLog, NEWS, configure.in: Preparing to release 4.2.23
5735
5736         * doc/find.texi: Fixed Texinfo syntax error in previous change
5737
5738         * doc/find.texi, xargs/xargs.1:
5739         Document the fact that the -i and -L options are currently
5740         incompatible (Savannah bug 13041).
5741
5742         * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
5743         reject trailing slashes in updatedb's --prunepaths, bacsue these
5744         will never be matched
5745
5746         * NEWS: Released findutils-4.2.23.
5747
5748         * doc/find.texi, xargs/xargs.1:
5749         Document the fact that the -i and -L options are currently
5750         incompatible (Savannah bug 13041).
5751
5752         * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
5753         reject trailing slashes in updatedb's --prunepaths, because these
5754         will never be matched.
5755
5756 2005-06-18  James Youngman  <jay@gnu.org>
5757
5758         * po/ga.po, tr.po: Updated Irish and Turkish translations.
5759
5760         * po/pl.po: Did update-po
5761
5762         * po/pl.po:
5763         Updated Polish translation file from the Translation Project
5764
5765         * po/ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po, findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po, ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po, ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, be.po:
5766         Did update-po
5767
5768 2005-06-18  Martin Buchholz (tiny change)
5769
5770         * find/defs.h, find/find.c, find/parser.c, doc/find.texi: Fix
5771         typos/spelling errors (mostly in source code comments).
5772
5773 2005-06-18  Dmitry V. Levin  <ldv@altlinux.org>
5774
5775         Additional documentation tweaks for -execdir/-okdir actions.
5776         * find/parser.c (parse_help): Mention -execdir and -ordir options.
5777         * doc/find.texi, find/find.1: Additionally document new options.
5778
5779 2005-06-12  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
5780
5781         * locate/locate.c: Implement --all (-A).
5782
5783         * NEWS, doc/find.texi, locate/locate.1: Document locate --all (-A)
5784
5785 2005-06-12  James Youngman  <jay@gnu.org>
5786
5787         * find/find.c, NEWS:
5788         Savannah bug #13381 (Debian bug 313081): if we have O_NOFOLLOW,
5789         safely_chdir() does not need to call stat().  However, process_dir()
5790         used to rely on using that stat information.  To work around this
5791         problem, there is now an output parameter in safely_chdir() which
5792         indicates if the stat buffer is valid.
5793         This bug has possible security implications.
5794
5795         * find/find.1, doc/find.texi:
5796         Applied patch from Andreas Metzler, improving the wording for the
5797         documentation of the %k and %b format directives.  This patch does
5798         not require a copyright assignment as it consists of several
5799         copies of the same small wording change.
5800
5801 2005-06-11  James Youngman  <jay@gnu.org>
5802
5803         * find/find.1: Corrected spelling error 'writeable' to 'writable'.
5804
5805         * find/find.1, locate/locate.1:
5806         Fixed Savannah bug #13363, typos in manpages (tiny change)
5807
5808 2005-06-10  James Youngman  <jay@gnu.org>
5809
5810         * find/find.c, lib/savedirinfo.c, lib/savedirinfo.h: Switch to a
5811         new scheme for saving directory entry data which is extensible to
5812         allow additional data to be saved.
5813
5814 2005-06-09  James Youngman  <jay@gnu.org>
5815
5816         * locate/testsuite/config/unix.exp:
5817         Use the new normalize_dir procedure throughout.
5818
5819         * locate/testsuite/config/unix.exp: Move the normalisation into a
5820         procedure.  Don't rely on the "file normalize" command being
5821         available (it's new in Tcl 8.4).
5822
5823 2005-06-08  James Youngman  <jay@gnu.org>
5824
5825         * ChangeLog, NEWS, configure.in: Updated for recent changes
5826
5827         * doc/find.texi:
5828         Explain that you should put the argument of -name in quotes.
5829
5830         * find/find.1:
5831         Added a new "NON-BUGS" section pointing out things that look like bugs
5832         but are caused by mistakes or misunderstandings.
5833
5834         * doc/find.texi, locate/locate.1: Applied Bas van Gompel's patch
5835         which allows the database to be read from stdin.
5836
5837         * locate/locate.c:
5838         Read the database in by using the "visitor" pattern.  Modified file
5839         header comment to indicate that we no longer use the efficient
5840         algorith described in ;login:.  Emit an error message if the
5841         LOCATE_PATH variable implies that we should read stdin twice.
5842         Most of this code is from Bas van Gompel.
5843
5844         * AUTHORS: Credit Bas van Gompel for his work on locate.
5845
5846         * lib/printquoted.h: Appled patch from Bas - fixing compiler warning.
5847
5848 2005-06-07  James Youngman  <jay@gnu.org>
5849
5850         * ChangeLog, NEWS, configure.in: Updates prior to release
5851
5852         * config.rpath: Added file required for 'make dist'
5853
5854         * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
5855         po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
5856         po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
5857         po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
5858         po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po,
5859         po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po:
5860         updated the po files for release
5861
5862         * xargs/testsuite/Makefile.am:
5863         Added in all the test files from Dmitry V. Levin.
5864
5865 2005-06-08  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
5866
5867         * NEWS, locate/locate.1, doc/find.texi: Document usage of `-'
5868         to refer to stdin in database-path for locate.
5869         * locate/locate.c: Change prototype for visitors and processors
5870         throughout. Move reading the database and generating base_name
5871         into visitors. Allow `-' to refer to stdin in database-path.
5872
5873         * lib/printquoted.h: Include stdio.h.
5874
5875 2005-06-07  James Youngman  <jay@gnu.org>
5876
5877         * COPYING, debian/copyright, depcomp, doc/texinfo.tex,
5878         find/defs.h, find/find.c, find/fstype.c, find/parser.c,
5879         find/pred.c, find/testsuite/config/unix.exp, find/tree.c,
5880         find/util.c, import-gnulib.sh, intl/Makefile.in,
5881         intl/bindtextdom.c, intl/config.charset, intl/dcgettext.c,
5882         intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c,
5883         intl/dngettext.c, intl/explodename.c, intl/finddomain.c,
5884         intl/gettext.c, intl/gettext.h, intl/gettextP.h,
5885         intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
5886         intl/libgettext.h, intl/libgnuintl.h, intl/loadinfo.h,
5887         intl/loadmsgcat.c, intl/localcharset.c, intl/locale.alias,
5888         intl/localealias.c, intl/ngettext.c, intl/plural.c, intl/plural.y,
5889         intl/ref-add.sin, intl/ref-del.sin, intl/textdomain.c,
5890         lib/buildcmd.c, lib/buildcmd.h, lib/extendbuf.c, lib/extendbuf.h,
5891         lib/forcefindlib.c, lib/listfile.c, lib/listfile.h,
5892         lib/modetype.h, lib/nextelem.c, lib/nextelem.h, lib/printquoted.c,
5893         lib/printquoted.h, lib/qmark.c, lib/savedirinfo.c,
5894         lib/savedirinfo.h, lib/strspn.c, lib/wait.h, lib/waitpid.c,
5895         locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c,
5896         locate/locatedb.h, locate/testsuite/config/unix.exp,
5897         locate/updatedb.sh, missing, po/fetch-po-files,
5898         xargs/testsuite/config/unix.exp, xargs/xargs.c:
5899         Updated the FSF's postal address
5900
5901         * ChangeLog: Corrected Bas's email address.
5902
5903         * locate/locate.c: Updated copyright years.
5904
5905 2005-06-07  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
5906
5907          * locate/locate.c: Fold case once, only when needed.
5908
5909 2005-06-07  James Youngman  <jay@gnu.org>
5910
5911         * NEWS: Updated with recent changes.
5912
5913         * mdate-sh: Use the mdate-sh from automake
5914
5915         * find/parser.c, find/pred.c, find/tree.c, find/util.c,
5916         lib/Makefile.am, lib/forcefindlib.c, lib/listfile.c,
5917         lib/listfile.h, locate/code.c, locate/locate.c, find/defs.h,
5918         find/find.c: Fix Savannah bug #13324: Fix compiler warnings for
5919         GCC-3.4
5920
5921         * locate/locate.c:
5922         Fixed Savannah bug #13325: Quoting of output filenames in locate
5923         should match find.
5924
5925         * find/parser.c:
5926         Fixed Savannah bug #13319: C9X-ism in parser.c (declaration after
5927         statements).
5928
5929         * find/pred.c, lib/Makefile.am, lib/listfile.c, lib/nextelem.c,
5930         lib/printquoted.c, lib/printquoted.h, lib/qmark.c, NEWS,
5931         doc/find.texi, find/defs.h, find/find.1, find/parser.c: Fixed
5932         Savannah bug #13303, find should filter out non-printable
5933         characters if outputting to tty
5934
5935 2005-05-30  James Youngman  <jay@gnu.org>
5936
5937         * locate/locate.c: rename new_locate() to locate() since
5938           old_locate() has gone the way of the dodo.
5939
5940 2005-05-29  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
5941
5942         Add a ``--print'' (``-p'') option. (to cancel side-effects of -c/-S)
5943         Allow ``--statistics'' in combination with non-options.
5944         * doc/find.texi: Add documentation for locate --print (-p), and the
5945         use of non-options with --statistics.
5946         * locate/locate.1: ditto.
5947         * locate/locate.c: Read each database only once.
5948
5949 2005-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5950
5951         Adjust to recent gnulib changes.
5952         * import-gnulib.sh: Get config.rpath from gnulib/build-aux,
5953         not gnulib/config.
5954         * find/parser.c (parse_perm): Ignore umask when parsing
5955         symbolic permissions.  Adjust to new modechange API.
5956
5957 2005-05-16  James Youngman  <jay@gnu.org>
5958
5959         * find/find.c, find/parser.c, find/pred.c, find/tree.c:
5960         Trivial change: don't use i18n support for debug-only messages
5961
5962         * ChangeLog: Added ChangeLog entry crediting Dmitry
5963
5964 2005-05-09  James Youngman  <jay@gnu.org>
5965
5966         * find/parser.c:
5967         The previous change fixed Savannah bug #12999.  This change doesn't do
5968         anything, it's only intended to be a place to record the Savannah bug
5969         ID we've just fixed.
5970
5971         * find/parser.c:
5972         Oops.  Initialise the variable which indicates which regex syntax to
5973         use.  We use POSIX basic regular expressions.
5974
5975         * find/parser.c:
5976         Suggestion by Ed Avis: point out that "-name foo/bar" will almost
5977         always evaluate to false.   Suggest to the user what alternatives they
5978         might find useful.
5979
5980 2005-05-02  James Youngman  <jay@gnu.org>
5981
5982         * AUTHORS:
5983         Added Dimitry (his new test suite contribution required a copyright
5984         assignment).
5985
5986 2005-05-03  Dmitry V. Levin
5987
5988         * Added xargs test suite tests by Dmitry V. Levin, together with
5989           bugfixes which ensure that the tests pass.
5990
5991 2005-04-18  James Youngman  <jay@gnu.org>
5992
5993         * Added test suite tests for Bas van Gompel's changes.
5994
5995 2005-04-18  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
5996
5997         * doc/find.texi: Document locate --non-existing (-E).
5998         * locate/locate.1: Ditto.
5999         * locate/locate.c: Implement --non-existing (-E).
6000
6001 2005-04-04  James Youngman  <jay@gnu.org>
6002
6003         * configure.in, import-gnulib.sh:
6004         We no longer need gnulib/m4/Makefile.am
6005
6006         * po/vi.po: Updated Vietnamese translation
6007
6008         * locate/updatedb.sh:
6009         Savannah bug #12491: Only use the "-s" option to "su" if it is
6010         supported.
6011
6012 2005-04-01  James Youngman  <jay@gnu.org>
6013
6014         * locate/locate.1, locate/updatedb.1, xargs/xargs.1: Trivial
6015         change from A Costa <agcosta@gis.net>, fixing typos in manual
6016         pages for xargs, locate and updatedb; fixes Savannah bug #12500,
6017         Debian bug #301934
6018
6019 2005-03-22  James Youngman  <jay@gnu.org>
6020
6021         * import-gnulib.sh: Include the new gnulib module stat-macros
6022
6023         * configure.in:
6024         CVS code is (will shortly be) no longer identical to the 4.2.20 release
6025
6026 2005-03-17  James Youngman  <jay@gnu.org>
6027
6028         * configure.in: Preprare for release of 4.2.20.
6029
6030         * NEWS: Updated prior to release of 4.2.20.
6031
6032         * ChangeLog: Updated with recent changes.
6033
6034         * THANKS: Thank Bas van Gompel, but only once.
6035
6036         * THANKS: Thank Bas van Gompel and Aaron S. Hawley.
6037
6038         * po/vi.po: Updated Vietnamese PO file
6039
6040 2005-03-10  James Youngman  <jay@gnu.org>
6041
6042         * po/nl.po: Updated Dutch PO file
6043
6044 2005-03-08  Bas van Gompel  <patch-findutils.buzz@bavag.tmfweb.nl>
6045
6046         * import-gnulib.sh: Re-enable creation of gnulib/m4/Makefile.am.
6047
6048 2005-03-07  James Youngman  <jay@gnu.org>
6049
6050         * Released findutils-4.2.19.
6051
6052         * find/testsuite/find.posix/sizes.exp:
6053         Use 2>/dev/null instead of 2>&1, because Tcl understands the former
6054         but not the latter.
6055
6056         * find/testsuite/Makefile.am: Also distribute sv-bug-12181.xo.
6057
6058         * find/testsuite/Makefile.am: Distribute sv-bug-12181.
6059
6060         * find/testsuite/Makefile.am: Distribute sv-bug-12230.
6061
6062         * NEWS: Updated with new news.
6063
6064         * ChangeLog: Brought up to date.
6065
6066         * lib/buildcmd.c, find/testsuite/find.gnu/sv-bug-12230.exp: Fixed
6067         Savannah bug #12230, in which '-exec echo == {} +' is always run,
6068         even if there were no matched files.
6069
6070 2005-03-06  James Youngman  <jay@gnu.org>
6071
6072         * ChangeLog: Added latest changes.
6073
6074         * po/pt.po, configure.in: Added Portuguese translation
6075
6076 2005-03-04  James Youngman  <jay@gnu.org>
6077
6078         * configure.in: Modernized the way we call AC_INIT and
6079         AM_INIT_AUTOMAKE
6080
6081         * locate/locate.c, find/pred.c, find/find.c:
6082         Eliminated some compiler warnings
6083
6084         * find/pred.c: Clarified the meaning of a comment.
6085
6086         * find/testsuite/Makefile.am: Added sizes.exp, sizes.xo.
6087
6088         * find/testsuite/find.posix/sizes.xo,
6089         find/testsuite/find.posix/sizes.exp: Added tests for -size
6090         predicate
6091
6092 2005-03-03  James Youngman  <jay@gnu.org>
6093
6094         * find/find.c:
6095         safely_chdir_lstat(): if we didn't end up in the right place, and then
6096         fchdir() fails, we can't return to the directory we started in.
6097         Therefore, issue a fatal error message and exit.
6098
6099 2005-03-01  James Youngman  <jay@gnu.org>
6100
6101         * find/find.c, find/testsuite/find.posix/sv-bug-12181.exp,
6102         find/testsuite/find.posix/sv-bug-12181.xo: Fixed SourceForge bug
6103         12181 (find -H symlink-to-dir reports 'Too many Symbolic links')
6104         and bug 12044 (find still hangs on dead NFS filesystems on
6105         Solaris)
6106
6107 2005-02-28  James Youngman  <jay@gnu.org>
6108
6109         * doc/find.texi: Typo: O_NOFOLLOW, not O_FOLLOW
6110
6111         * import-gnulib.sh:
6112         Suggestion from Martin Buchholz; unset CDPATH to prevent "cd" echoing
6113         the new directory.
6114
6115 2005-02-27  James Youngman  <jay@gnu.org>
6116
6117         * README: Indicate how the reader can verify the release.
6118
6119 2005-02-26  James Youngman  <jay@gnu.org>
6120
6121         * po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po,
6122         po/zh_CN.po, po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po,
6123         po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot,
6124         po/fr.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
6125         po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
6126         po/pt_BR.po, po/ro.po, po/ru.po: Added new Vietnamese translation
6127
6128         * configure.in: Added new Vietnamese translation.
6129
6130 2005-02-25  James Youngman  <jay@gnu.org>
6131
6132         * po/ga.po: Updated Irish po file
6133
6134 2005-02-23  James Youngman  <jay@gnu.org>
6135
6136         * Makefile.am: Fix Savannah bug #12064 - 'make distclean' deletes
6137         regex.c but should not.
6138
6139         * find/testsuite/Makefile.am,
6140         find/testsuite/find.gnu/printf-h.exp,
6141         find/testsuite/find.gnu/printf-h.xo: Added test case for Savannah
6142         bug #12085 (-printf %h).
6143
6144         * NEWS, doc/find.texi, find/find.1, find/pred.c:
6145         %h now expands to '.' instead of nothing.
6146
6147 2005-02-22  James Youngman  <jay@gnu.org>
6148
6149         * find/find.c:
6150         Fixed Savannah bug #12099 (misinterpretation of system versions
6151         leading to possible incorrect disabling of O_NOFOLLOW).  Reported by
6152         Dmitry V. Levin.
6153
6154         * find/pred.c:
6155         For the %h format, don't bail out early as the format might contain
6156         something else too.
6157
6158 2005-02-21  James Youngman  <jay@gnu.org>
6159
6160         * find/find.c: Fixed accidental C99 dependency.
6161
6162 2005-02-20  James Youngman  <jay@gnu.org>
6163
6164         * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
6165         po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
6166         po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
6167         po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
6168         po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sl.po, po/sr.po,
6169         po/sv.po, po/tr.po, po/zh_CN.po: Updated italian translation
6170
6171         * doc/find.texi: Corrected a typo.
6172
6173         * find/find.c:
6174         Read the mounted device list afer parsing the command line, so that
6175         for example "find --version" still works (in response to Savannah bug
6176         #12044).
6177
6178         * configure.in: We've moved on from findutils-4.2.18.
6179
6180 2005-02-19  James Youngman  <jay@gnu.org>
6181
6182         * NEWS: Corrected the summary of the "find -depth" bug.
6183
6184 2005-02-16  James Youngman  <jay@gnu.org>
6185
6186         * NEWS, configure.in: Prepared for release of 4.2.18.
6187
6188         * ChangeLog: Updated prior to release of 4.2.18.
6189
6190         * find/testsuite/Makefile.am:
6191         Distribute the test cases for the recent "find -depth" bug.
6192
6193         * find/testsuite/find.posix/depth1.exp, find/testsuite/find.posix/depth1.xo:
6194         Added test case for find -depth bug reported by Joseph S. Myers
6195
6196         * find/find.c:
6197         If -depth is in effect, processing of the subdirectories invalidates
6198         the information in 'state'.  Therefore once we get around to
6199         processing the predicates, restore the information that we keep in
6200         'state' and in 'stat_buf'.
6201
6202 2005-02-15  James Youngman  <jay@gnu.org>
6203
6204         * ChangeLog: Updated with recent changes
6205
6206         * find/find.1:
6207         Emphasise that -L causes find to recurse into subdirectories pointed
6208         to by symbolic links.
6209
6210         * find/find.1:
6211         Patch to find.1 from Aaron Hawley <Aaron.Hawley@uvm.edu>:
6212
6213         * Notes about -H actually apply to -L.
6214         * Said paragraph is duplicated two paragraphs later.
6215         * Typos: nno, ibmue, surrpounding
6216
6217 2005-02-15  Aaron Hawley  <Aaron.Hawley@uvm.edu>
6218
6219         * find/find.1: Notes about -H actually apply to -L.  Said
6220         paragraph is duplicated two paragraphs later.  Also typos: nno,
6221         ibmue, surrpounding
6222
6223 2005-02-13  James Youngman  <jay@gnu.org>
6224
6225         * find/find.1: Miscellaneous small clarifications and improvements.
6226
6227         * doc/find.texi: Added Info nodes and menus under "Changing the
6228         Current Working Directory" so that it doesn't generate such a huge
6229         Info page.
6230
6231         * find/find.c: Parenthesise #if defined(...).
6232
6233 2005-02-13  Dmitry V. Levin  <ldv@altlinux.org>
6234
6235         * find/find.c: remove test code snippet (time(NULL) was used to
6236         place a marker for spotting with strace(), but was not actually
6237         needed).
6238
6239         * find/find.c (safely_chdir_nofollow): must not fall back on
6240         safely_chdir_lstat() because that will expose it to race condition
6241         exploits, making it pointless.
6242
6243         * find/find.c (safely_chdir_lstat): Move
6244         complete_pending_execdirs() up into safely_chdir(), because we
6245         need to do that in either case.
6246
6247 2005-02-12  James Youngman  <jay@gnu.org>
6248
6249         * configure.in, doc/find.texi, find/defs.h, find/find.c,
6250         find/parser.c: Fix for Savannah bug #11879, that
6251         init_mounted_dev_list() causes find to hang on systems which are
6252         clients to dead NFS servers
6253
6254 2005-02-10  James Youngman  <jay@gnu.org>
6255
6256         * doc/find.texi: Talk about the problem where find will not work
6257         if you have a filesystem mounted from an unresponsive NFS server.
6258
6259 2005-02-09  James Youngman  <jay@gnu.org>
6260
6261         * find/find.1: Indicate that $TZ affects from printf-format
6262         results, and add extra cross-references in the SEE ALSO section.
6263
6264 2005-02-08  James Youngman  <jay@gnu.org>
6265
6266         * xargs/testsuite/Makefile.am: Distribute the .xe files also.
6267
6268         * Makefile.am: Check that we have the right number of .xe files in
6269         the distribution also.
6270
6271         * ChangeLog, NEWS, configure.in
6272         Preparing to release findutils-4.2.17
6273
6274 2005-02-07  James Youngman  <jay@gnu.org>
6275
6276         * find/testsuite/config/unix.exp: Re-sort the .xo file using the
6277         calling user's locale, because our 'pre-sorted' .so output file
6278         may not be sorted with the same collating order as 'sort' used to
6279         order the output of "find.  Bug spotted by Vin Shelton and Dimitry
6280         V. Levin.
6281
6282         * find/testsuite/Makefile.am:
6283         New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
6284
6285         * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
6286         find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
6287         Fix for starting point /foo/bar/baz where bar is a symlink but baz
6288         is not - we should chdir into bar there even if it is a symbolic
6289         link
6290
6291 2005-02-07  James Youngman  <jay@gnu.org>
6292
6293         * find/testsuite/Makefile.am:
6294         New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
6295
6296         * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
6297         find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
6298         Fix for starting point /foo/bar/baz where bar is a symlink but baz
6299         is not - we should chdir into bar there even if it is a symbolic
6300         link
6301
6302 2005-02-06  James Youngman  <jay@gnu.org>
6303
6304         * doc/find.texi:
6305         -size: Clarification - -size gives a result consistent with 'wc -c'
6306          for example.
6307
6308         * Makefile.am, find/testsuite/Makefile.am,
6309         find/testsuite/find.gnu/execdir-root-only.exp,
6310         find/testsuite/find.gnu/execdir-root-only.xo,
6311         locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
6312         dist-hook: Ensure that we distribute all the .po files and all the
6313         testsuite files
6314
6315         * po/pl.po: Updated Polish translation from TP website
6316
6317 2005-02-05  Dmitry V. Levin  <ldv@altlinux.org>
6318
6319         * find/parser.c, find/pred.c: Additional tweaks for
6320         -execdir/-okdir actions.
6321
6322         * find/parser.c (new_insert_exec_ok): Disable ignore_readdir_race
6323         for -execdir/-okdir.
6324
6325         * find/pred.c (pred_execdir, pred_okdir): Use state.rel_pathname
6326         instead of basename(pathname).  Do not add "./" prefix for
6327         absolute pathnames.
6328
6329         * find/find.c (process_top_path): Treat "/" similarly to ".".
6330
6331         * xargs/testsuite/xargs.posix/savannah-11865.exp,
6332         xargs/testsuite/xargs.posix/savannah-11865.xo, xargs/xargs.c:
6333         Fixed Savannah bug #11866 (not resetting number of used chars in
6334         the command buffer) - reported by Dimitry V. Levin
6335
6336 2005-02-05  James Youngman  <jay@gnu.org>
6337
6338         * THANKS:
6339         Added thanks for Dimitry - has produced many patches, bugfixes and
6340         suggestions.
6341
6342         * find/pred.c:
6343         Fixed Savannah bug #11866: typo in pred_okdir() renders it useless
6344
6345         * find/pred.c:
6346         Savannah bug #11861: undefined symbol 'basename' on IRIX 5.3
6347
6348         * NEWS, configure.in, po/be.po, po/ca.po, po/el.po, po/eo.po,
6349         po/fi.po, po/ga.po, po/hr.po, po/hu.po, po/ja.po, po/lg.po,
6350         po/ms.po, po/ro.po, po/sl.po, po/sr.po, po/zh_CN.po: Added new
6351         translations
6352
6353         * ChangeLog: Updated from CVS prior to release of 4.2.16.
6354
6355         * po/ChangeLog: Updated from CVS.
6356
6357         * NEWS, configure.in: Preparing to release 4.2.16
6358
6359         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
6360         po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
6361         po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sl.po, po/sv.po,
6362         po/tr.po: make update-po prior to 'make distcheck'
6363
6364         * po/fetch-po-files: This is the first version we actually used.
6365
6366         * find/find.c: process_top_path() fixed compilation warning.
6367
6368         * find/find.c: process_top_path(): avoid processing this item if
6369         we can't chdir to the basename of the named file.
6370
6371         * lib/Makefile.am: Always build forcefindlib.c
6372
6373         * locate/locate.c: Say 'base name' rather than 'basename' in comments
6374
6375         * find/pred.c, find/find.c: process_top_path(): Proper bugfix for
6376         correct handling of items at depth 0 (i.e. specified on the
6377         command line) - do an extra chdir to ensure that we're in the
6378         directory containing the item before calling process_path().
6379         Hnece also undo the previous 'quick fix' for the same problem
6380
6381         * doc/find.texi:
6382         -execdir no longer has to treat anything as special, even at depth 0.
6383
6384 2005-02-03  James Youngman  <jay@gnu.org>
6385
6386         * doc/find.texi, find/pred.c: When state.curdepth is 0, our
6387         working directory is not the directory containing the file we are
6388         processing.
6389
6390 2005-02-02  James Youngman  <jay@gnu.org>
6391
6392         * find/pred.c:
6393         To allow compilation on cygwin, use base_name(), not basename().
6394
6395         * po/tr.po: Updated Turkish translation from TP
6396
6397         * po/ro.po: Updated Romanian translation from TP
6398
6399         * po/da.po, po/et.po: Updated translations from MT project website
6400
6401 2005-02-01  James Youngman  <jay@gnu.org>
6402
6403         * ChangeLog: Updated from CVS log.
6404
6405 2005-01-31  James Youngman  <jay@gnu.org>
6406
6407         * find/find.c, lib/nextelem.c, lib/nextelem.h, locate/code.c,
6408         locate/frcode.c, locate/testsuite/config/unix.exp,
6409         xargs/testsuite/config/unix.exp, xargs/xargs.c: Updated/corrected
6410         the email address for David MacKenzie, one of the original authors
6411         of findutils
6412
6413         * doc/Makefile.am: The HTML version of the manual generated for
6414         the GNU project website has each node in a separate file, not each
6415         chapter in a separate file; adjust filenames accordingly
6416
6417         * find/parser.c, find/pred.c, lib/savedirinfo.c:
6418         Removed some unused variables (patch from Dmitry V. Levin)
6419
6420         * find/find.c:
6421         Patch from Dmitry V. Levin <ldv@altlinux.org>: Add subfs to the list
6422         of filesystems which are likely to be automounted.
6423
6424         * m4/findlib.m4: Corrected typo (pointed out by Dmitry V. Levin).
6425
6426         * find/testsuite/config/unix.exp,
6427         find/testsuite/find.gnu/name-period.xo,
6428         find/testsuite/find.gnu/posix-dflt.xo,
6429         find/testsuite/find.gnu/posix-h.xo,
6430         find/testsuite/find.gnu/posix-l.xo,
6431         find/testsuite/find.gnu/printf.exp,
6432         find/testsuite/find.gnu/printf.xo: Systems differ in the order in
6433         which filenames are returned by readdir.  Hence sort the output of
6434         'find' before comparing against the expected-output file.  We
6435         therefore also have the lines in the .xo files ready-sorted.
6436
6437         * po/ca.po: Updated from Translation Project
6438
6439         * po/ChangeLog: Updated from CVS logs.
6440
6441         * po/de.po, es.po, et.po, fr.po, gl.po, id.po, it.po, ko.po, nl.po,
6442         pl.po, pt_BR.po, ru.po, sk.po, sv.po, tr.po, da.po: Ran update-po
6443
6444         * po/be.po, ca.po, el.po, eo.po, fi.po, hr.po, hu.po, ja.po, lg.po,
6445         ms.po, ro.po, sl.po, sr.po, zh_CN.po: Added new translation files
6446         from the Translation Project web site
6447
6448         * po/da.po, de.po, es.po, et.po, fr.po, ga.po, gl.po, id.po, it.po,
6449         ko.po, nl.po, pl.po, pt_BR.po, ru.po, sk.po, sv.po, tr.po: Updated
6450         .po files from the Translation Project site
6451
6452 2005-01-30  James Youngman  <jay@gnu.org>
6453
6454         * doc/Makefile.am:
6455         Added rules for extra targets that we buld to update the web site.
6456
6457 2005-01-29  James Youngman  <jay@gnu.org>
6458
6459         * configure.in: No longer version 4.2.15 - we've changed the manual.
6460
6461         * doc/find.texi:
6462         Clarified the txt about adding extra tests with post-processing via
6463         xargs, and recommend -execdir instead for security reasons.
6464
6465         * doc/find.texi: Patch from Karl Berry:
6466         - more entries for the dir file
6467         - use @copying so the copyright ends up in the HTML etc. output.
6468           (This is the only really important change.)
6469         - put @contents after the title page, for conventional toc location.
6470         - use @ifnottex to wrap the Top node instead of @ifinfo, for the sake of
6471           HTML output, etc.
6472
6473         * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
6474         po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
6475         po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
6476         po/sv.po, po/tr.po: Prepared to release findutils-4.2.15
6477
6478         * ChangeLog: Updated from CVS log.
6479
6480 2005-01-28  James Youngman  <jay@gnu.org>
6481
6482         * configure.in:
6483         Make --enable-d_type-optimization and --enable-d_type-optimisation
6484         both work.
6485
6486         * configure.in: Assume --enable-d_type-optimisation by default
6487
6488         * find/parser.c: Indicate which features are enabled/disabled
6489
6490         * locate/testsuite/config/unix.exp:
6491         Clean up the files left behind by the locate_textonly test
6492
6493 2005-01-27  James Youngman  <jay@gnu.org>
6494
6495         * doc/find.texi: Documented --regex.
6496
6497         * NEWS, locate/locate.1, locate/locate.c, locate/testsuite/Makefile.am, locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/regex1.exp:
6498         Implemented locate --regex - but needs documenting in Texinfo manual.
6499
6500 2005-01-25  James Youngman  <jay@gnu.org>
6501
6502         * configure.in: Bumped version no.
6503
6504         * doc/find.texi:
6505         Document --mmap and --stdio as being synonyms of -m and -s.
6506
6507         * locate/locate.1:
6508         Document --mmap and --stdio as synonyms of -m and -s.
6509
6510         * locate/locate.c:
6511         Document -m and -s (both no-ops) in the usage message.
6512
6513         * doc/find.texi, locate/locate.1: Document -m and -s as no-ops.
6514
6515         * ChangeLog: Updated for release of findutils-4.2.14.
6516
6517         * 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:
6518         Preparing to release findutils-4.2.14
6519
6520 2005-01-25  James Youngman  <jay@gnu.org>
6521
6522         * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
6523         po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
6524         po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
6525         po/sv.po, po/tr.po: Preparing to release findutils-4.2.14
6526
6527 2005-01-24  James Youngman  <jay@gnu.org>
6528
6529         * Makefile.am: Work around the fact that automake-1.7 actually
6530         works, and correctly distributes regex.c; hence dist-hook should
6531         only copy gnulib/lib/regex.c if this has not already been done.
6532
6533         * find/defs.h, find/find.c, find/pred.c,
6534         find/testsuite/Makefile.am,
6535         find/testsuite/find.gnu/printf-symlink.exp,
6536         find/testsuite/find.gnu/printf-symlink.xo,
6537         find/testsuite/find.gnu/xtype-symlink.exp,
6538         find/testsuite/find.gnu/xtype-symlink.xo: Fixes for -xtype and
6539         -printf %Y, which had been the wrong way around.
6540
6541         * NEWS: Avoid including the find.gnu subdirectory in the
6542         distributed file more than once
6543
6544         * locate/locate.c:
6545         Move the printing of the statistics into a new function, print_stats()
6546
6547         * find/testsuite/Makefile.am: Avoid including the find.gnu
6548         subdirectory in the distributed file more than once
6549
6550         * import-gnulib.sh:
6551         We need the regex module anyway, to allow compilation on Solaris
6552
6553 2005-01-23  James Youngman  <jay@gnu.org>
6554
6555         * configure.in:
6556         Invoke gl_INCLUDED_REGEX directly to ensure successful compilation on
6557         systems like Solaris, which lacks those functions in libc (fixes GNU
6558         Savannah bug #11710).
6559
6560         * locate/locate.1: -S is a synonym for --statistics
6561
6562         * doc/find.texi: Documented the new -H, -L and -P options.
6563
6564         * locate/locate.1, locate/locate.c: Implement options -L
6565         (default), -H and -P, which mean the same things as for find,
6566         except for the fact that the default is -L rather than -P
6567
6568         * find/find.1: Corrected definition of the exit status for -quit.
6569
6570         * find/find.c, find/pred.c: If DEBUG_STAT is set, issue a debug
6571         message when we call chdir() so that we can figure out what is
6572         actually being stat()ed
6573
6574         * locate/updatedb.sh:
6575         Removed spurious newline from help message (bug report from Karl
6576         Berry).
6577
6578         * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
6579         po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
6580         po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po,
6581         Makefile.am, NEWS, configure.in, find/defs.h, find/find.c,
6582         find/parser.c, find/pred.c, find/tree.c, find/util.c,
6583         import-gnulib.sh, lib/savedirinfo.c: Merged the d_type
6584         optimisation code; this is disabled by default, and can be enabled
6585         with 'configure --enable-d_type-optimisation'
6586
6587         * NEWS:
6588         Updated optimisation NEWS item to indicate the effect on runtime.
6589
6590 2005-01-22  James Youngman  <jay@gnu.org>
6591
6592         * NEWS, configure.in: Prepare for release of findutils-4.2.12
6593
6594         * ChangeLog: Brought up to date with recent changes.
6595
6596         * Makefile.am, import-gnulib.sh, po/Makefile.in.in, po/Makevars,
6597         po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
6598         po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
6599         po/pl.po, po/pt_BR.po, po/remove-potcdate.sin, po/ru.po, po/sk.po,
6600         po/sv.po, po/tr.po: Switch to using the gnulib gettext module, to
6601         ensure that 'make distcheck' works with current xgettext,
6602         autoconf, etc.
6603
6604         * find/testsuite/config/unix.exp:
6605         Oops, we do need to clean up after all.
6606
6607 2005-01-21  James Youngman  <jay@gnu.org>
6608
6609         * xargs/testsuite/Makefile.am: Added name of missing input file.
6610
6611         * find/testsuite/Makefile.am:
6612         Distribute a few files that we had forgotten about
6613
6614         * xargs/testsuite/Makefile.am: Added some missing files.
6615
6616         * lib/Makefile.am: Also need buildcmd.h.
6617
6618         * xargs/testsuite/Makefile.am: Fixed a typo.
6619
6620         * NEWS: Indicate the d_type performance improvement
6621
6622 2005-01-18  James Youngman  <jay@gnu.org>
6623
6624         * lib/savedirinfo.h: Added on d_type_optimisation also
6625
6626         * lib/savedirinfo.c: Added on branch d_type_optimisation also.
6627
6628         * find/pred.c: Added assert that we actually know the file type by
6629         the time pred_type() is called
6630
6631         * find/find.c: Always initialise state.have_stat = false when
6632         starting to work with a new file
6633
6634 2005-01-17  James Youngman  <jay@gnu.org>
6635
6636         * ChangeLog: Brought up to date with recent changes.
6637
6638         * NEWS: Documented the changes so far.
6639
6640         * find/testsuite/find.gnu/exec-many-rtn-success.xo:
6641         Expected output for exec-many-rtn-success.exp
6642
6643         * find/find.1:
6644         Indicate that -quit still ensures that pending commands are invoked
6645
6646         * doc/find.texi:
6647         Indicate that -quit still causes partial command lines to be invoked,
6648         but there are some types of fatal error which leave such commands
6649         uninvoked.
6650
6651         * find/defs.h, find/find.c, find/pred.c, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
6652         Fixed savannah bug  #11625 Wrong return status for -exec ... \; when command fails; also execute any pending commands when doing -quit
6653
6654         * 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:
6655         Various test cases for succeeding and failing forms of -exec \; and -exec {} +
6656
6657         * find/pred.c: "-exec ... {} +" always returns "true".
6658
6659         * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
6660         Implemented d_type optimisation but not working correctly, so currently disabled
6661
6662         * lib/savedirinfo.h, lib/savedirinfo.c:
6663         Initial implementation (temporarily disabled).
6664
6665         * lib/Makefile.am: Resolved merge conflict.
6666
6667         * lib/Makefile.am:
6668         Make sure nextelem.h is included in the list of sources.
6669
6670         * find/parser.c, lib/nextelem.c, lib/nextelem.h, locate/locate.c:
6671         Use prototypes for next_element() to make sure it is called correctly.
6672
6673 2005-01-16  James Youngman  <jay@gnu.org>
6674
6675         * find/find.c, find/pred.c:
6676         When completing incomplete multiple execs, use 'eval_tree' not 'predicates'
6677
6678         * lib/buildcmd.c:
6679         Oops, initialise state->cmd_initial_argv_chars to zero.
6680
6681         * find/find.1:
6682         Document the way that -execdir and -okdir will refuse to wqork if ">"
6683         is on $PATH.  Also document -okdir in the manpage.
6684
6685         * find/parser.c:
6686         -execdir and -okdir are insecure if $PATH includes the current
6687          directory, and so they refuse to work if the user has done that.
6688
6689         * find/pred.c:
6690         Oops; for -exec ... {} +, pass arguments to bc_push_arg() in the right
6691         order.   Problem spotted by Geoff Clare.
6692
6693         * TODO: Removed items which have now been done.
6694
6695         * lib/buildcmd.c: Tidied up formatting of arg list for bc_do_insert
6696
6697 2005-01-15  James Youngman  <jay@gnu.org>
6698
6699         * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo:
6700         Added extra tests for more printf formats; patch by Andreas Metzler
6701
6702         * locate/locate.c:
6703         Ensure that the new long options have a relevang short option too.
6704         Also bring usage message into line with the options actually
6705         supported.  Thanks to Bas van Gompel for noticing this defect.
6706
6707         * locate/locate.1:
6708         Escape "-" in SYNOPSIS.  Thanks to Bas van Gompel for noticing this
6709         defect.
6710
6711         * ChangeLog: Fixed typos.
6712
6713         * doc/find.texi:
6714         Documented -execdir, and the "+" variants of -exec and -execdir.
6715
6716         * find/find.1: Documented -execdir.
6717
6718         * xargs/xargs.c:
6719         Updated to bring into line with bc_*() interface changes
6720
6721         * ChangeLog: Updated with recent changes.
6722
6723         * find/defs.h, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h:
6724         Implemented -execdir and -okdir
6725
6726         * find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
6727         First working version of -exec ...+
6728
6729 2005-01-09  James Youngman  <jay@gnu.org>
6730
6731         * find/defs.h, find/find.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
6732         Initial implementation of -exec ..{} +, but currently disabled since not yet working
6733
6734 2005-01-08  James Youngman  <jay@gnu.org>
6735
6736         * find/find.c: Fixed typo in comment.
6737
6738         * find/defs.h, find/find.c, find/parser.c, find/pred.c:
6739         We now understand but do not implement -execdir (a *BSD invention, and a very useful security enhancement) and -okdir (the obvious companion to it)
6740
6741         * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
6742         The GNU coding standard requires a space between the function name and
6743         its parenthesised argument list.
6744
6745         * find/defs.h:
6746         Understand the -exec ... {} \+ construction (for multiple
6747         replacement).  No support yet.
6748
6749         * locate/locate.1:
6750         Indicate that empty elements in the dbpath are treated as synonyms for
6751         the default database.
6752
6753         * locate/locate.c:
6754         Support empty elements in the dbpath as synonyms for the default
6755         database.  These colons can be leading, trailing or in the middle of
6756         the string.  We no longer com,plain if the user does this.
6757
6758         * lib/nextelem.c:
6759         If curdir_ok is 0 and an element is empty, return "" instead of NULL
6760         so that the caller knows to keep calling us.
6761
6762         * find/find.c, find/pred.c, import-gnulib.sh, locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
6763         Savannah bug 11517: find, xargs, locate, etc. should not hide write failures; patch from Jim Meyering
6764
6765         * 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:
6766         changed .pot creation date
6767
6768         * THANKS, AUTHORS: Take into account the FSF copyright-assignments list
6769
6770         * doc/find.texi:
6771         If -quit is used, the exit value can be nonzero if errors have occurred.
6772
6773         * find/find.1:
6774         Removed incorrect comment about -H, -P and -follow in HISTORY.
6775
6776 2005-01-07  James Youngman  <jay@gnu.org>
6777
6778         * lib/Makefile.am, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
6779         Refactored xargs to use an external library function from the new file buildcmd.c
6780
6781         * configure.in: no longer the same as the released 4.2.11 version
6782
6783 2005-01-06  James Youngman  <jay@gnu.org>
6784
6785         * xargs/testsuite/inputs/lines.xi, xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/Makefile.am:
6786         Tests for the -L option
6787
6788         * xargs/testsuite/config/unix.exp: When a test fails, show the diffs
6789
6790         * xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/xargs.posix/l2.xo:
6791         tests for the -l option
6792
6793         * xargs/testsuite/Makefile.am: Added extra test files
6794
6795         * xargs/testsuite/xargs.sysv/trace.exp, xargs/testsuite/xargs.sysv/trace.xe, xargs/testsuite/xargs.sysv/trace.xo:
6796         Added tests for the -t option
6797
6798         * 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:
6799         Use a blanks-only input file for cases where there is supposed to be no output
6800
6801         * xargs/testsuite/inputs/blank.xi: Initial version.
6802
6803         * xargs/xargs.1:
6804         Corrected a typo; also indicate that it's impossible to use xargs
6805         securely due to the race condition.
6806
6807 2005-01-05  James Youngman  <jay@gnu.org>
6808
6809         * find/parser.c:
6810         Fixed Savannah bug 11495: fallthrough from -printf format processing
6811         from 'n' case to 'd' case.
6812
6813 2005-01-03  James Youngman  <jay@gnu.org>
6814
6815         * doc/find.texi:
6816         Oops.  Had duplicated an entire section.  Fortunately this was after
6817         @bye, so there was no adverse effect.
6818
6819         * NEWS: locate -b.
6820
6821         * doc/find.texi, locate/locate.1: document locate -S
6822
6823         * configure.in, doc/find.texi, locate/locate.1, locate/locate.c:
6824         Support locate -b as a synonym for locate --basename
6825
6826         * 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:
6827         distcheck
6828
6829         * find/testsuite/config/unix.exp:
6830         Clean up (delete) find.out at at the end of the test.
6831
6832         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c, find/pred.c:
6833         Implemented the -samefile test for find
6834
6835 2005-01-02  James Youngman  <jay@gnu.org>
6836
6837         * ChangeLog: Updated with recent changes.
6838
6839         * NEWS:
6840         Bas van Gompel: two-line patch to locate.c to make locate's -i and -w
6841         options work if -e is in use.
6842
6843         * THANKS: Added Bas van Gompel.
6844
6845         * locate/locate.c:
6846         Bas van Gompel: (visit_exists) when testing for the existence of the
6847         file, check the real filename [printname], not the case-converted
6848         filename [testname].  Really these argument names are badly chosen.
6849
6850         * find/find.1, doc/find.texi:
6851         Improved the documentation for -perm, with plenty of examples,
6852         following a comment by Dan Jacobson that the comment "Symbolic modes
6853         use mode 0 as a point of departure" is baffling and unhelpful.
6854
6855         * locate/locate.c:
6856         Suggestion and patch from Bas van Gompel: (new_locate): Fix display of
6857         negative compression ratios.
6858
6859 2004-12-31  James Youngman  <jay@gnu.org>
6860
6861         * NEWS: Brought up to date with recent changes
6862
6863         * doc/find.texi:
6864         Don't need to nest the "race conditions with..." sections so deeply.
6865
6866         * doc/find.texi: Corrected some spelling errors.
6867
6868         * doc/find.texi: Added new "Security Considerations" chapter.
6869
6870 2004-12-23  James Youngman  <jay@gnu.org>
6871
6872         * locate/locate.c:
6873         Applied bugfixes from Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>.
6874         (lc_strcpy): Zero-terminate result.
6875         (add_visitor): Update lastinspector.
6876         (visit_substring_match_casefold): fix off-by-one error.
6877         (new_locate): Move visit_exists down to improve performance.
6878         (new_locate): Don't fold case when getting stats.
6879
6880 2004-12-19  James Youngman  <jay@gnu.org>
6881
6882         * doc/find.texi:
6883         Indicate that "cd /; find tmp -wholename /tmp" will never match anything.
6884
6885         * doc/find.texi: Documented locate --statistics.
6886
6887         * locate/locate.1: Documented the --statistics option.
6888
6889         * locate/locate.c: Added support for the -S option.
6890
6891 2004-12-12  James Youngman  <jay@gnu.org>
6892
6893         * NEWS: Added a summary of the changes so far.
6894
6895         * find/tree.c: Made some of the error messages more self-explanatory
6896
6897         * find/pred.c: Print pointers with %p, not %x.
6898
6899         * find/find.c: Moved option data into struct options.
6900
6901         * find/find.1: clarifications
6902
6903         * find/testsuite/find.gnu/comma.exp:
6904         Limit the amount of searching with maxdepth.
6905
6906         * doc/find.texi: clearer description of how -prune works
6907
6908         * ChangeLog: Removed duplicate entry.
6909
6910         * configure.in, find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
6911         Separated ariables representing current state from variable representing option information
6912
6913 2004-12-11  James Youngman  <jay@gnu.org>
6914
6915         * find/parser.c: Readability improvement to the usage message.
6916
6917         * find/find.c: Oops.  Fixed unmatched #endif.
6918
6919         * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo, THANKS, configure.in, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
6920         Fixed Savannah bug #11280
6921
6922         * find/find.c:
6923         Remember to set path_length and curdepth in process_top_path().
6924
6925 2004-12-07  James Youngman  <jay@gnu.org>
6926
6927         * find/fstype.c: Use xstat() not stat() to examine things.
6928
6929         * find/find.c: Explain why #ifdef EOVERFLOW.
6930
6931         * find/find.c: EOVERFLOW is not defined on UNICOS.
6932
6933         * NEWS: Corrected typo.
6934
6935 2004-12-06  James Youngman  <jay@gnu.org>
6936
6937         * ChangeLog: Brought up to date.
6938
6939         * NEWS, configure.in: releasing 4.2.10
6940
6941         * 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:
6942         distcheck
6943
6944         * ChangeLog: Updated prior to release of finsutils-4.2.10.
6945
6946         * import-gnulib.sh, find/fstype.c:
6947         Use gnulib's mountlist module instead of grokking it ourselves.
6948
6949         * configure.in:
6950         Removed all the out-of-date cruft for grokking getmntent().
6951
6952         * xargs/xargs.c:
6953         Added the -I and -L options; also -E takes an argument which is not optional.
6954
6955 2004-12-05  James Youngman  <jay@gnu.org>
6956
6957         * README, configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c:
6958         Allow debug output to be turned on or off by saying --enable-debug on the configure command line
6959
6960         * README:
6961         Removed disparaging (it is now, it probably wasn't then) comment about
6962         the production-readiness of Automake.
6963
6964         * README: Qualify remarks about POSIX compliance.
6965
6966         * NEWS, configure.in: Preparation for release 4.2.9
6967
6968         * 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:
6969         distcheck
6970
6971         * ChangeLog: Brought up to date.
6972
6973         * find/find.c:
6974         Avoid duplicate error message when we cannot chdir() into a subdirectory.
6975
6976         * THANKS: Added recent thankees.
6977
6978         * NEWS:
6979         Brought up to date with respect to the current set of fixed bugs.
6980
6981         * NEWS, xargs/xargs.1, xargs/xargs.c:
6982         Implemented POSIX options -L, -I and -E
6983
6984 2004-12-03  James Youngman  <jay@gnu.org>
6985
6986         * find/parser.c:
6987         -xdev is an option, not a test.   Fixes Savannah bug 11192.
6988
6989         * find/find.1, xargs/xargs.1:
6990         Escape dashes with a backslash (for fix Savannah bug 11189).
6991
6992 2004-11-27  James Youngman  <jay@gnu.org>
6993
6994         * find/find.c:
6995         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.
6996
6997         * find/find.1: "necessary" only has one "C".
6998
6999         * find/find.1:
7000         If stat() fails with ELOOP, we issue a diagnostic message.
7001
7002 2004-11-26  James Youngman  <jay@gnu.org>
7003
7004         * find/find.c: Removed some unused code.
7005
7006         * Makefile.am: Don't do anything in the 'intl' subdirectory
7007
7008         * find/find.c:
7009         Enhanced safely_chdir() to the point where the test suite passes, and report infinite loops in the directory hierarchy
7010
7011         * find/defs.h:
7012         belt and braces; ensure that SYMLINK_NEVER_DEREF has value zero
7013
7014         * find/find.1:
7015         Describe our strategy for detecting and reporting infinite loops
7016
7017 2004-11-24  James Youngman  <jay@gnu.org>
7018
7019         * doc/find.texi:
7020         Updated the discussion of th error messages for findutils-4.2.8.
7021
7022         * configure.in: Next version will be 4.2.9...
7023
7024         * find/find.c:
7025         Don't issue a warning if we notice the mounting of a filesystem that's
7026         likely just to be an automounter.
7027
7028         * doc/find.texi, find/find.1:
7029         Explain how rounding is performed for -atime and friends.
7030
7031         * xargs/xargs.c:
7032         Once we collect enough arguments (for the value specified by the -n
7033         option) to do an exec(), do it immediaely instead of waiting for the
7034         next one to arrive.  This fixes Savannah bug #7340.
7035
7036         * ChangeLog, configure.in, NEWS: Prepare to release 4.2.8.
7037
7038         * NEWS: Updates for 4.2.8.
7039
7040         * configure.in: check for  sys/types.h
7041
7042         * find/find.c:
7043         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.
7044
7045         * find/defs.h:
7046         Declarations of xmalloc() and friends belong in xalloc.h, not in defs.h
7047
7048         * find/parser.c: avoid signed/unsigned warning, and #include xalloc.h
7049
7050         * find/fstype.c:
7051         Changed to alloc get_mounted_devices() to compile on Solaris
7052
7053         * README-CVS:
7054         Automake requires GNU m4, so point out that the reader needs that.
7055
7056         * find/defs.h, find/find.c, find/fstype.c:
7057         When wd_sanity_check() fails, enumerate the mounted devices, rather than the mounted filesystem names
7058
7059         * NEWS: prepare for 4.2.8
7060
7061         * configure.in:
7062         Look for some Solaris headers which are used by get_mounted_devices()
7063
7064         * lib/Makefile.am: don't build savedirtypes yet
7065
7066         * 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:
7067         updated po files
7068
7069         * m4/nullsort.m4:
7070         Avoid suprious output of the test data when the tests fail.
7071
7072 2004-11-21  James Youngman  <jay@gnu.org>
7073
7074         * 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:
7075         Messages changed again
7076
7077         * ChangeLog, configure.in: Preparing to release 4.2.7.
7078
7079         * NEWS: Updated for release of 4.2.7.
7080
7081         * import-gnulib.sh: Also need canonicalize module.
7082
7083         * find/find.c:
7084         When checking to see if a filesystem has changed state, use an
7085         absolute pathname.
7086
7087         * configure.in:
7088         No need to pause to allow James to view his handiwork, it (allegedly)
7089         works now.
7090
7091         * configure.in:
7092         Oops.  Check for setlocale() to re-enable the i18n support which was
7093         accidentally disabled in 4.2.5.
7094
7095         * find/find.c:
7096         Check to see if the new directory is a transitioned mount point by
7097         using its ABSOLUTE name, if we can figure it out.
7098
7099         * doc/find.texi:
7100         Added guidance on some of the error messages.  Not the most common
7101         ones, but the ones where the user might most benefit from some handy
7102         hints or an explanation of what is going on.
7103
7104         * find/pred.c:
7105         Actually emit an error message if we fail to stat a symlink (for
7106         reasons other than nonexistence of the link and infinite loop).
7107
7108         * doc/texinfo.tex: Updated texinfo.tex
7109
7110         * NEWS, configure.in, find/find.c, find/fstype.c:
7111         Enable the 'Warning: filesystem XXX has recently been mounted' check on Solaris, which prevents it exiting fatally when traversing an automount mount point
7112
7113         * 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:
7114         messages changed again
7115
7116         * NEWS: Implemented xargs --arg-file.
7117
7118         * doc/find.texi, xargs/xargs.1, xargs/xargs.c, NEWS:
7119         Implemented xargs --arg-file
7120
7121         * find/find.c:
7122         Where a filesystem was recently (un)mounted, try togive its full name
7123
7124         * configure.in:
7125         Try to avoid requesting -lsun if we don't seem to need it (e.g. on
7126         UNICOS where it is not present and trying to link against it produces
7127         a warning).
7128
7129         * find/defs.h, lib/modetype.h: Guard against multiple inclusion
7130
7131         * find/fstype.c:
7132         We now need <mntent.h> even if we are not using getmntent() to figure
7133         out the type of a filesystem, because wd_sanity_check() needs to
7134         enumerate the system mount points.
7135
7136         * configure.in: Next release will be 4.2.7.
7137
7138         * find/fstype.c:
7139         get_mounted_filesystems() should use getmntent() if that function is
7140         present, rather than just if configure didn't find anything better for
7141         filesystem_type_uncached() to use than that.
7142
7143         * find/parser.c:
7144         If -delete is the only action on a file, don't assume the default
7145         -print action too.
7146
7147         * 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:
7148         Preparation to release findutils-4.2.6.
7149
7150         * find/Makefile.am, xargs/Makefile.am:
7151         Enable checking of support for --version and --help
7152
7153         * locate/Makefile.am:
7154         Con't check command-line options for frcode, code or bigram
7155
7156         * locate/code.c: Support --version and --help.
7157
7158         * ChangeLog: *** empty log message ***
7159
7160         * find/defs.h, find/find.c, find/fstype.c, lib/Makefile.am, lib/extendbuf.c, lib/extendbuf.h, NEWS:
7161         Avoid fatal error if automount mounts a filesystem on a directory because we chdir()ed into it
7162
7163         * configure.in: Next release will be 4.2.6.
7164
7165         * find/find.1:
7166         Indicate that the '-' flag does work for most fields.   Also provide
7167         an example of using the comma operator to traverse the filesystem just
7168         once but search for more than one thing.
7169
7170         * doc/find.texi: Indicate that the '-' flag does work for most fields.
7171
7172 2004-11-19  James Youngman <jay@gnu.org>
7173
7174         * configure.in: releaseing findutils-4.2.5
7175
7176         * find/testsuite/Makefile.am, locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
7177         If a directory has no Makefile.am, omit it from the parent's DIST_SUBDIRS - automake-1.9 requires this
7178
7179         * 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:
7180         updated by make distcheck
7181
7182         * ChangeLog, NEWS: Updated for release 4.2.5.
7183
7184         * find/find.1, doc/find.texi:
7185         Tell the reader that format flags may not work as they expect.
7186
7187         * configure.in:
7188         Use the correct name for the macro gl_AC_TYPE_LONG_LONG (not
7189         jm_AC_TYPE_LONG_LONG).
7190
7191 2004-11-15  James Youngman <jay@gnu.org>
7192
7193         * import-gnulib.sh:
7194         Avoid test -e because not all systems are POSIX-compliant (bug
7195         #11005).  Also don't need regex module any more if we're not building
7196         in intl.
7197
7198         * Makefile.am, configure.in:
7199         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
7200
7201         * doc/find.texi:
7202         Use @ref not @xref for a reference at the beginning of a sentence.
7203
7204         * intl/Makefile.in:
7205         Make sure gnulib.lib is on the #include path (Savannah bug #11002)
7206
7207         * locate/locate.c:
7208         Use base_name instead of basename - fixes Savannah bug 11003.
7209
7210         * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, locate/bigram.c, locate/locate.c:
7211         Don't need banner to emphasise the location of the call to jy_SORTZ
7212
7213 2004-11-12  James Youngman <jay@gnu.org>
7214
7215         * 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:
7216         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]
7217
7218 2004-11-11  James Youngman <jay@gnu.org>
7219
7220         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c:
7221         Implemented -H and -L options.
7222
7223         * find/util.c: Added in the -H and -L options on the usage message.
7224
7225 2004-11-10  James Youngman <jay@gnu.org>
7226
7227         * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
7228         Implemented %M and %A+ format specifiers
7229
7230         * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
7231         Documented the fact that only %d and %m format specifiers honour the various formatting flags
7232
7233         * xargs/xargs.c:
7234         Get the right number of bytes in a Kilobyte (hint: it's not 1048; that
7235         was a typo, honest :)
7236
7237         * po/pl.po: Applied Polish translations
7238
7239 2004-11-08  James Youngman <jay@gnu.org>
7240
7241         * 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:
7242         distcheck changed the po files again
7243
7244         * locate/Makefile.am:
7245         Make install-data-hook honour the setting of DESTDIR so that "make
7246         DESTDIR=/tmp/foo install" works and puts localstater in the right
7247         place.
7248
7249         * configure.in: We're now working on findutils-4.2.5.
7250
7251         * doc/find.texi, xargs/xargs.1:
7252         Point out that xargs -i only splits input items at newlines
7253
7254         * ChangeLog: Indicate that we released 4.2.4.
7255
7256         * ChangeLog: Updated for release 4.2.4
7257
7258         * NEWS, configure.in: Prepare for release of 4.2.4.
7259
7260         * NEWS: Brought up to date with latest changes.
7261
7262         * 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:
7263         Turn warning messages off by default if stdin is not a tty; allow these to be controlled explicitly by options -warn and -nowarn
7264
7265         * po/et.po, po/it.po: Updated translation files
7266
7267         * po/sk.po: New translation file
7268
7269         * po/fr.po, po/nl.po, po/tr.po: Updated translation files
7270
7271         * configure.in: Added Slovak (sk) language.
7272
7273         * xargs/xargs.c:
7274         Enforcing a lower limit on the value specified by -s makes the test
7275         suite fail.  Removed that lower limit.
7276
7277         * locate/Makefile.am: Oops, multilocate doesn't exist yet.
7278
7279         * NEWS: *** empty log message ***
7280
7281         * doc/find.texi, locate/updatedb.1, locate/updatedb.sh:
7282         Added option --findoptions to updatedb
7283
7284         * locate/Makefile.am, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
7285         Fixed section numbers in manpage titles and cross-references
7286
7287         * NEWS, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
7288         Increased the default argument length and improved POSIX compliance of the handling of out-of-range values for the -s option
7289
7290 2004-11-07  James Youngman <jay@gnu.org>
7291
7292         * m4/Makefile.am:
7293         Added in the extra files we need to distribute, nullsort.m4
7294         order-bad.bin order-good.bin
7295
7296         * doc/find.texi: Documented locate's --limit option
7297
7298         * locate/locate.1, locate/locate.c:
7299         Implmented --limit and corrected the implementation of the -i option.
7300
7301 2004-11-06  James Youngman <jay@gnu.org>
7302
7303         * NEWS, doc/find.texi, locate/locate.1:
7304         Documented --wholename and --basename and updated the NEWS file
7305
7306         * README-CVS:
7307         Give the autogen commands in a form that you can usefully cut and paste into a shell
7308
7309         * NEWS: Options --null and --count) for locate
7310
7311         * lib/nextelem.c:
7312         Don't return '.' for an empty path element, because the path we are splitting may not be intended to contain directories
7313
7314         * configure.in: we're working on findutils-4.2.4 now
7315
7316         * locate/Makefile.am: Substitute @SORT_SUPPORTS_Z@
7317
7318         * doc/find.texi:
7319         Documented new locate option --null and newline handling
7320
7321         * locate/locate.1, locate/locate.c:
7322         New locate options --null, --wholename, --basename, --count
7323
7324         * locate/frcode.c, locate/updatedb.1, locate/updatedb.sh:
7325         correctly handle newlines in the file names
7326
7327         * configure.in: Determine if sort -z works
7328
7329         * m4/nullsort.m4, m4/order-bad.bin, m4/order-good.bin:
7330         jy_SORTZ: a macro to determine if the system has a sort command with a working -z option
7331
7332 2004-11-01  James Youngman <jay@gnu.org>
7333
7334         * NEWS: Fixed "find -printf '%H\n'".
7335
7336         * find/find.c:
7337         Avoid segfault if -printf %H is used where the matched file was the default, unspecified starting point, the current directory
7338
7339 2004-10-31  James Youngman <jay@gnu.org>
7340
7341         * find/find.1, find/parser.c: NetBSD also supports -d.
7342
7343         * find/find.1, doc/find.texi:
7344         Documented the behaviour of -daystart and -follow in more detail
7345
7346         * find/parser.c: Corrected the usage message.
7347
7348         * find/parser.c:
7349         When deciding whether to issue a warning about options following
7350         non-options, ignore any options whose position affects the tests
7351         (i.e. -daystart and -follow).
7352
7353         * find/parser.c: -daystart is a positional option like -follow.
7354
7355         * find/parser.c:
7356         Issue a warning message if an option is specified after a test or an
7357         action (because the user might have believed that the behaviour of the
7358         option is in some way conditional on the preceding tests).
7359
7360         * locate/updatedb.sh:
7361         Oops; removed some test code that I shouldn't have checked in.
7362
7363         * locate/updatedb.sh:
7364         Indicate that the old locate database format will shortly be unsupported.
7365
7366         * doc/find.texi:
7367         Use @direntry instead of hard-coding START-INFO-DIR-ENTRY inside @ifinfo.
7368
7369         * locate/updatedb.1: Updated default location of locatedb file.
7370
7371         * README-alpha:
7372         Updated to give correct FTP location and to not talk about "test"
7373         versions of automake, which are no longer required.
7374
7375         * locate/updatedb.sh:
7376         Incorporated the default list of filesystems to avoid from the Debian
7377         package.  Also added /afs and /sfs to the default pruned paths.
7378
7379         * configure.in: Released findutils 4.2.3
7380
7381         * 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:
7382         did make distcheck, which updates these files
7383
7384         * find/defs.h, find/fstype.c:
7385         Use const qualifier in arguments to filesystem_type() to allow callers with const variables to use them
7386
7387         * ChangeLog: Updated.
7388
7389         * NEWS: Added new news.
7390
7391         * find/find.c:
7392         Extra diagnositcs for the case where we have the error "%s changed
7393         during execution of %s" - that is when we chdir back to the parent
7394         directory only to find that it has changed.
7395
7396 2004-10-30  James Youngman <jay@gnu.org>
7397
7398         * .cvsignore, NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
7399         Implemented the -quit action
7400
7401         * NEWS, doc/find.texi, find/find.1, find/parser.c, find/pred.c:
7402         Refactored time handling routines in preparation for support of absolute timestamp comparison predicates
7403
7404         * locate/locate.c:
7405         Applied Savannah patch #2952 ("getline off-by-one bugfix").
7406
7407         * NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
7408         Added -delete action (Savannah patch #3454 with additions)
7409
7410         * locate/locate.c:
7411         Applied Savannah patch #2692 (allowing get_short to process negative integers).
7412
7413         * find/find.c:
7414         If we are iossuing an error message because $FIND_BLOCK_SIZE is set,
7415         ignore the setting of errno.
7416
7417         * find/parser.c: More fixes for pedantic compiler warnings
7418
7419         * NEWS, find/parser.c, find/tree.c: Eliminated some compiler warnings
7420
7421         * find/find.c, find/parser.c, find/pred.c:
7422         Various fixes for compiler warninga sbout unreachable code or unused function arguments
7423
7424         * intl/plural.y: Silence compiler warning about unused argument.
7425
7426         * locate/testsuite/Makefile.am:
7427         Subdirectory "inputs" does not exist, so remove it from DIST_SUBDIRS.
7428
7429         * locate/locate.c:
7430         Corrected the explanation of why we have to use no parentheses around
7431         the String argument to the N_ macro in its expansion.
7432
7433         * configure.in: Nextr release is 4.2.3.
7434
7435         * configure.in: IOndicate this is no longer the pristine release.
7436
7437         * NEWS:
7438         Oops, comments for release 4.2.0 should have said 20480 bytes, not 2480.
7439
7440         * lib/listfile.c:
7441         The -ls predicate should not truncate usernames.  Fixes Savannah bug #10800.
7442
7443         * find/fstype.c, locate/locate.c:
7444         Fixes for Savannah bug #3727 (Intel icc compilation errors).
7445
7446 2004-10-25  James Youngman <jay@gnu.org>
7447
7448         * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
7449         Support -printf %D, which prints the device number of the containing filesystem
7450
7451         * locate/updatedb.sh:
7452         Avoid confusion between James Woods and James Youngman, by using the
7453         disambiguating surname.
7454
7455         * find/parser.c: Use RE_ICASE instead of re->translate.
7456
7457         * configure.in, find/parser.c, find/pred.c, xargs/xargs.c:
7458         No need to #define _GNU_SOURCE if we use gl_INIT.
7459
7460 2004-10-24  James Youngman <jay@gnu.org>
7461
7462         * ChangeLog: Prepared to release findutils-4.2.2.
7463
7464         * 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:
7465         Updates prior to release of 4.2.2
7466
7467         * NEWS: Updated with news for findutils-4.2.2.
7468
7469         * 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:
7470         Corrected typo in the address of the FSF office
7471
7472         * lib/strspn.c: Updated FSF address.
7473
7474         * m4/.cvsignore: 'cvs status' should ignore Makefile.in
7475
7476         * 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:
7477         Use gnulib-tool --import to import the gnulib code, rather than the odd way we were doing it before
7478
7479         * 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:
7480         Work round an apparent compiler bug in HP-UX 11.23 for
7481         ia64
7482
7483         * locate/locate.c:
7484         Work around what appears to be a C compiler bug in HP-UX 11.23 for
7485         ia64.
7486
7487         * INSTALL, depcomp, install-sh, missing, mkinstalldirs:
7488         Updated from automake
7489
7490         * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c, find/find.c:
7491         Avoid use of exit() within main, to silence warnings about unreachable code
7492
7493 2004-10-22  James Youngman  <jay@gnu.org>
7494
7495         * doc/find.texi: Syntax corrections.
7496
7497         * doc/find.texi: Indicate that "-exec {}+" is not yet supported.
7498
7499         * find/find.1: Indicate that "{}+" is not yet supported.
7500
7501         * find/testsuite/find.gnu/name-period.xo, find/testsuite/find.gnu/name-period.exp, find/find.1, doc/find.texi:
7502         The -name predicate must allow '*' to match '.foo' as demanded by IEEE
7503         Std 1003.2-1992 Interpretation #126.
7504
7505         * find/pred.c:
7506         Remove use of FNM_PERIOD for -name as demanded by IEEE Std 1003.2-1992
7507         Interpretation #126
7508
7509         * find/parser.c: Fix for compilation (on AIX 4.3) with GCC 2.x.
7510
7511         * xargs/xargs.c:
7512         Changed the erorr message issued when there is an unmatched quote to
7513         point out that the user might have wanted to use the -0 option instead.
7514
7515 2004-10-17  James Youngman  <jay@gnu.org>
7516
7517         * configure.in:
7518         Define intmax_t if it is not already defined - allows parser.c to compile on AIX 4.3
7519
7520         * configure.in:
7521         Adjust version number to indicate that this s/w has moved on since the
7522         4.2.1 release.
7523
7524         * configure.in: preparing to release 4.2.1
7525
7526         * ChangeLog: updated with current changes
7527
7528         * README-CVS: Updated to go with newer version of gnulib.
7529
7530         * 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:
7531         preparation for release
7532
7533         * NEWS: Mention the changes to "trap".
7534
7535         * NEWS: Brought up to date.
7536
7537         * import-gnulib.sh:
7538         Use xalloc-die module from gnulib, since that has now been split out
7539
7540         * find/parser.c:
7541         Check fnmatch() when other predicates that rely on fnmatch() are used.
7542
7543         * find/parser.c: bug #10701: find needs fnmatch sanitycheck on startup
7544
7545 2004-10-16  James Youngman <jay@gnu.org>
7546
7547         * import-gnulib.sh:
7548         Switch to requirement for GNU fnmatch because it supports FNM_CASEFOLD.
7549
7550         * locate/updatedb.sh:
7551         Bug #9465: use of signal numbers for 'trap' is deprecated.  Should use
7552         names instead.  See
7553         http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html,
7554         which indicates that support for signal numbers is optional, while
7555         support for signal names is mandatory.
7556
7557         * configure.in:
7558         Indicate that this is the CVS version (once again) now that findutils
7559         4.2.0 has been released.
7560
7561         * 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:
7562         findutils 4.1.20 check-in for tagging
7563
7564 2004-10-02  James Youngman <jay@gnu.org>
7565
7566         * po/Makefile.in.in:
7567         Search in $(top_srcdir) for mkinstalldirs, since that's where we keep it.
7568
7569         * NEWS: Brought up to date, organised more clearly, and tidied up.
7570
7571         * NEWS: brought up to date with recent changes
7572
7573         * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/ignore_case1.exp, locate/testsuite/locate.gnu/ignore_case3.exp, locate/updatedb.sh:
7574         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
7575
7576         * find/pred.c:
7577         Fixed usage of human_readable() in '%k' format specifier to fix a bug
7578         reported by Dmitry V. Levin (arguments to human_readable() were
7579         specified in the wrong order, which resulted in a floating-point
7580         error).
7581
7582 2004-08-08  James Youngman <jay@gnu.org>
7583
7584         * locate/updatedb.sh:
7585         cd to / to avoid inability to examine the current directory if we're
7586         invoked via cron (and hence in root's home directory for example).
7587
7588         * doc/find.texi, find/find.1:
7589         Deprecate -path and -ipath in favour of -wholename and -iwholename
7590
7591         * find/parser.c:
7592         As per RMS's suggestion, deprecate -path and -ipath in favour of
7593         -wholename and -iwholename.
7594
7595         * locate/locate.c:
7596         Fixed Savannah bug #9923, in which get_short() returns large positive
7597         ints when it should be returning negative shorts.
7598
7599         * xargs/xargs.1:
7600         Applied documentation improvements suggested by Dan Jacobson
7601         <jidanni@jidanni.org>.
7602
7603         * xargs/xargs.c:
7604         Don't check size_of_environment against arg_max since that causes the
7605         test suite to fail.
7606
7607         * xargs/xargs.1, xargs/xargs.c: Better documentation for the -i option
7608
7609 2004-05-03  James Youngman <jay@gnu.org>
7610
7611         * find/find.1:
7612         document the various suffixes for -size and also the new
7613         option -ignore_readdir_race
7614
7615         * locate/locate.c:
7616         Fixes Savannah bug #8623 (failure to check consistency of data
7617         read from locate database)
7618
7619         * locate/updatedb.sh:
7620         Resolves Savannah bug 4380, that updatedb generates an empty
7621         database if one of the commands fails
7622
7623         * NEWS: Talk about -ignore_readdir_race
7624
7625         * doc/find.texi:
7626         Documented -ignore_readdir_race and -noignore_readdir_race
7627
7628         * find/find.c:
7629         -ignore_readdir_race should have no effect if the reason for the
7630          failure of stat(2) was anything other than ENOENT.
7631
7632         * find/defs.h, find/find.c, find/parser.c:
7633         Fixed Savannah bug 4391 (readdir race condition leading to
7634         spurious error messages)
7635
7636 2004-04-24  James Youngman <jay@gnu.org>
7637
7638         * README-CVS: Corrected the instructions for getting gnulib via CVS.
7639
7640 2004-04-13  James Youngman <jay@gnu.org>
7641
7642         * doc/find.texi:
7643         Actioned Savannah bug #8558 (find complains when it tries to recurse
7644         into directories that it had removed).
7645
7646 2004-03-13  James Youngman <jay@gnu.org>
7647
7648         * ChangeLog: Updated from checkin comments.
7649
7650         * find/find.c:
7651         Oops, there is no access to the predicate name table if DEBUG is
7652         not #defined.
7653
7654         * find/parser.c:
7655         Detect arithmetic overflow (poorly) in insert_time(), which diagnoses
7656         the failure to handle large arguments to -mtime.  The existing code
7657         does careful computation and then bungs the value into a time_t, which
7658         ruins all our careful effort.  The new code is not a great
7659         improvement.  We just check the result to detect overflow, rather than
7660         actually avoiding the overflow.
7661
7662         * find/find.c:
7663         Fixed Debian bug #185202 by checking for any trailing predicates after
7664         the top-level invocation of get_expr() has done its work.
7665
7666         * locate/locate.1, xargs/xargs.1:
7667         Fixed Debian bug 175372, inappropriate 'L' suffixes on manual
7668         page section indicators
7669
7670         * find/find.1:
7671         Removed "L" suffixes from manual page section indicators, to fix
7672         Debian bug 175372.
7673
7674         * debian/updatedb.conf:
7675         Updated with list of filesystems from current Debian release.  This
7676         includes devfs, for example.
7677
7678         * xargs/xargs.1:
7679         Modified documentation of "-s" option to take into account the fix for
7680         Debian bug #176201.
7681
7682         * xargs/xargs.c:
7683         Fixed Debian bug #176201, "xargs enviroment size limited to 20k", by
7684         reading a patch offered by Bob Proulx and implementing something
7685         substantially similar myself.
7686
7687 2004-01-03  James Youngman  <jay@gnu.org>
7688
7689         * xargs/xargs.c:
7690         Indicate that prep_child_for_exec() fixes Savannah bug #3992.
7691
7692         * xargs/xargs.c:
7693         Attach the stdin of xargs' child process to /dev/null so that if it
7694         tries to read from its stdin it doesn't consume any of the list of
7695         files that xargs is trying to use.
7696
7697         * find/find.1:
7698         Documented that the -regex option follows Gnulib's re_match()
7699         implementation.
7700
7701         * NEWS, locate/locate.c: Applied Savannah patch 2108
7702
7703         * xargs/xargs.c: Applied Savannah patch 1500
7704
7705         * find/find.1, doc/find.texi:
7706         Improved the documentation for the %k and %b format specifiers to
7707         -printf (Savannah bug #5034).  Also pointed out that this handling is
7708         different to that used by the "b" and "k" suffixes with "-size".
7709
7710         * find/find.1: Improved the documentation for %k (Savannah bug #5034).
7711
7712         * find/find.1:
7713         Improved the documentation for -print0 in the manpage, fixing Debian
7714         bug 111143.
7715
7716         * README-CVS, find/pred.c, lib/listfile.c:
7717         Brought up-to-date with change in gnulib's human.c - we no longer
7718         use human_readable_inexact(), because it is no longer provided.
7719
7720 2003-08-08  James Youngman  <jay@gnu.org>
7721
7722         * find/find.1:
7723         Documented the fact that -printf also supports the '\0' escape code.
7724         Added "STANDARDS CONFORMANCE" section.
7725
7726 2003-08-02  James Youngman  <jay@gnu.org>
7727
7728         * find/find.1:
7729         Explain that braces are not special when performing filename matching
7730         with -name.
7731
7732         * find/find.1:
7733         added example of the use of -exec to the EXAMPLES section
7734
7735         * find/fstype.c, locate/locate.c:
7736         Savannah bug #4295 - implicit declarations of ctype.h functions
7737
7738         * locate/locate.c:
7739         Savannah bug #4279 - missing newline on locate help message
7740
7741         * find/find.1, xargs/xargs.1:
7742         Improved discussion of the -print0 option of find and the -0 option of xargs
7743
7744 2003-06-26  James Youngman  <jay@gnu.org>
7745
7746         * import-gnulib.sh:
7747         Remove reference to nonexistent module "basename" ("dirname" exists
7748         and we already use that).
7749
7750 2003-06-21  James Youngman  <jay@gnu.org>
7751
7752         * doc/find.texi:
7753         Indicate that xargs stops immediately if a command exits with status 255
7754
7755         * xargs/xargs.1:
7756         Document the fact that xargs exits immediately with an error message
7757         if the command it executes exits with a status of 255.
7758
7759 2003-06-18  James Youngman  <jay@gnu.org>
7760
7761         * find/find.1:
7762         Indicate that -fls and friends always create their output file
7763
7764 2003-06-16  James Youngman  <jay@gnu.org>
7765
7766         * ChangeLog, find/find.1, locate/locate.1, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
7767         Added BUGS section to manual pages.   This section includes information about known bugs and how to report new bugs.
7768
7769         * AUTHORS: Identify the current maintainer.
7770
7771         * TODO: Removed the TODO items which have now been done.
7772
7773         * THANKS: Added Bruno Haible and Bob Proulx.
7774
7775         * xargs/xargs.c: xargs/xargs.c (DO_MULTIBYTE): New macro.
7776         (mbstrstr): New function.
7777         (do_insert): Use it instead of strstr.
7778
7779         * config.guess, config.sub:
7780         Use config.guess and config.sub from automake
7781
7782         * find/fstype.c:
7783         Bruno Haible: (fstype_to_string) Don't define this function if
7784         HAVE_F_FSTYPENAME_IN_STATFS is defined.
7785
7786         * configure.in:
7787         Bruno Haible: Prefer the 4.4BSD API (if present) to the 4.3BSD API,
7788         because some 4.4BSD systems have <mntent.h> but no /etc/mtab file.
7789
7790         * doc/find.texi, find/find.1:
7791         Applied patch 1498 (documenting the backslash escape sequence)
7792
7793         * locate/updatedb.sh: Applied (my own version of) Savannah patch 1601.
7794
7795         * doc/find.texi:
7796         Applied Savannah patch #1547 (document the fact that printf
7797         field-width specifiers are supported).
7798
7799         * xargs/xargs.c:
7800         Applied Savannah patch #1499 (adds final newline to usage message).
7801
7802 2003-06-14  James Youngman  <jay@gnu.org>
7803
7804         * NEWS, configure.in:
7805         Updated version number to 4.2.0-CVS [not ready for release yet]
7806
7807         * 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
7808         also need stpcpy (e.g. for Solaris)
7809
7810         * intl/dcigettext.c:
7811         plural_lookup: don't use a variable called "index", because we may
7812         have done "#define strchr index", in which case using a variable
7813         called index will prevent us calling strchr(p, ch) in the same scope.
7814
7815         * 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:
7816         Updated copyright years and the address of the FSF
7817
7818         * aclocal.m4, config.h.in, configure:
7819         Removed files that are generated from other files (e.g. configure)
7820
7821         * NEWS: Updated NEWS file for 4.1.20.
7822
7823         * 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:
7824         Updates to the i18n files to ensure that 'make dist' succeeds
7825
7826         * lib/posix/.cvsignore, lib/posix/Makefile.am,
7827         lib/posix/Makefile.in, lib/posix/regex.h, lib/strftime.c,
7828         lib/strncasecmp.c, lib/strspn.c, lib/strstr.c, lib/strtol.c,
7829         lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, lib/wait.h,
7830         lib/waitpid.c, lib/xalloc.h, lib/xgetcwd.c, lib/xmalloc.c,
7831         lib/xstat.in, lib/xstrdup.c, lib/xstrtol.c, lib/xstrtol.h,
7832         lib/xstrtoul.c, lib/xstrtoul.h, lib/xstrtoumax.c, lib/yesno.c,
7833         locate/Makefile.am, locate/Makefile.in, locate/locate.c,
7834         locate/testsuite/Makefile.in, m4/.cvsignore, m4/ChangeLog,
7835         m4/Makefile.am, m4/Makefile.am.in, m4/Makefile.in, m4/README,
7836         m4/afs.m4, m4/assert.m4, m4/c-bs-a.m4, m4/check-decl.m4,
7837         m4/codeset.m4, m4/d-ino.m4, m4/d-type.m4, m4/error.m4,
7838         m4/fnmatch.m4, m4/fnmatchcase.m4, m4/fstypename.m4, m4/getline.m4,
7839         m4/gettext.m4, m4/glibc.m4, m4/glibc21.m4, m4/iconv.m4,
7840         m4/inttypes_h.m4, m4/isc-posix.m4, m4/jm-glibc-io.m4,
7841         m4/jm-macros.m4, m4/jm-mktime.m4, m4/lcmessage.m4, m4/libintl.m4,
7842         m4/link-follow.m4, m4/ls-mntd-fs.m4, m4/lstat-slash.m4,
7843         m4/lstat.m4, m4/malloc.m4, m4/mbstate_t.m4, m4/memcmp.m4,
7844         m4/prereq.m4, m4/progtest.m4, m4/readdir.m4, m4/realloc.m4,
7845         m4/regex.m4, m4/st_dm_mode.m4, m4/st_mtim.m4, m4/stat.m4,
7846         m4/strerror_r.m4, m4/strftime.m4, m4/timespec.m4, m4/uintmax_t.m4,
7847         m4/ulonglong.m4, m4/xstrtoumax.m4, xargs/Makefile.am,
7848         xargs/Makefile.in, xargs/testsuite/Makefile.in,
7849         find/testsuite/Makefile.in, lib/.cvsignore, lib/Makefile.am,
7850         lib/Makefile.in, lib/alloca.c, lib/ansi2knr.1, lib/ansi2knr.c,
7851         lib/argmatch.c, lib/argmatch.h, lib/basename.c, lib/basename.h,
7852         lib/dirname.c, lib/dirname.h, lib/error.c, lib/error.h,
7853         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/fnmatch.c,
7854         lib/fnmatch.h, lib/getline.c, lib/getline.h, lib/getopt.c,
7855         lib/getopt.h, lib/getopt1.c, lib/human.c, lib/human.h,
7856         lib/idcache.c, lib/malloc.c, lib/memcmp.c, lib/memcpy.c,
7857         lib/memset.c, lib/mktime.c, lib/modechange.c, lib/modechange.h,
7858         lib/pathmax.h, lib/quotearg.c, lib/quotearg.h, lib/realloc.c,
7859         lib/regex.c, lib/regex.h, lib/rpmatch.c, lib/savedir.c,
7860         lib/savedir.h, lib/stpcpy.c, lib/strcasecmp.c, lib/strdup.c,
7861         find/Makefile.am, find/Makefile.in, find/find.c, find/pred.c:
7862         Updated to work with current version of gnulib
7863
7864         * import-gnulib.sh: New file.
7865
7866         * config.h.in, configure, configure.in, doc/Makefile.in, import-gnulib.sh:
7867         Updated to work with current version of gnulib
7868
7869         * README-CVS: New file.
7870
7871         * Makefile.am, Makefile.in, README-CVS, aclocal.m4:
7872         Updated to work with current version of gnulib
7873
7874 2003-05-26  James Youngman <jay@gnu.org>
7875
7876         * po/pl.po, pt_BR.po, ru.po, sv.po, tr.po, da.po, de.po, es.po,
7877         et.po, findutils.pot, fr.po, gl.po, id.po, it.po, ko.po, nl.po:
7878         Changes to allow compilation on non-GNU systems (i.e. for the
7879         macros that gnulib decides to #define to be effective)
7880
7881 2003-05-24  James Youngman <jay@gnu.org>
7882
7883         * po/da.po, de.po, es.po, et.po, findutils.pot, fr.po, gl.po,
7884         id.po, it.po, ko.po, nl.po, pl.po, pt_BR.po, ru.po, sv.po, tr.po:
7885         also need stpcpy (e.g. for Solaris)
7886
7887         * po/POTFILES.in, da.po, de.po, es.po, et.po, findutils.pot, fr.po,
7888         gl.po, id.po, it.po, ko.po, nl.po, pl.po, pt_BR.po, ru.po, sv.po,
7889         tr.po: Updates to the i18n files to ensure that 'make dist'
7890         succeeds
7891
7892 2001-06-09  Kevin Dalley  <kevin@seti.org>
7893
7894         * intl/plural.c:
7895         Changes the location of bison.simple after running bison on local
7896         machine
7897
7898         * ChangeLog: *** empty log message ***
7899
7900         * Makefile.in, aclocal.m4, config.h.in, configure,
7901         doc/Makefile.in, find/Makefile.in, find/testsuite/Makefile.in,
7902         lib/Makefile.in, lib/posix/Makefile.in, locate/Makefile.in,
7903         locate/testsuite/Makefile.in, m4/Makefile.in, xargs/Makefile.in,
7904         xargs/testsuite/Makefile.in: Updates mostly from gettext-0.10.38
7905
7906         * ABOUT-NLS: * ABOUT-NLS: updated from gettext-0.10.38.
7907
7908         * configure.in: * configure.in: add tr to ALL_LINGUAS.
7909
7910         * intl/config.charset, intl/dcigettext.c, intl/dcngettext.c,
7911         intl/dngettext.c, intl/libgnuintl.h, intl/localcharset.c,
7912         intl/locale.alias, intl/ngettext.c, intl/plural.y,
7913         intl/ref-add.sin, intl/ref-del.sin: updated from gettext-0.10.38
7914
7915         * intl/cat-compat.c, intl/linux-msg.sed, intl/po2tbl.sed.in,
7916         intl/xopen-msg.sed, m4/ChangeLog: *** empty log message ***
7917
7918         * m4/jm-macros.m4:
7919         * jm-macros.m4 (jm_MACROS): remove jm_ICONV, which is replaced by
7920         AM_ICONV, which is imported from gettext-0.10.38.  removed
7921         jm_GLIBC21, which is required in AM_GNU_GETTEXT, which is
7922         imported from gettext-0.10.38.
7923
7924         * po/stamp-cat-id:      * stamp-cat-id: Remove file.
7925
7926         * po/Makefile.in.in:    * Makefile.in.in: Upgrade to gettext-0.10.38.
7927
7928         * po/ChangeLog: * cat-id-tbl.c: Remove file.
7929
7930         * po/de.po, po/es.po, po/et.po, po/fr.po:
7931         * fr.po, et.po, es.po, de.po: updated translations to
7932         findutils-4.1.7.
7933
7934         * po/tr.po: * tr.po:  New Turkish translation.
7935
7936         * m4/ChangeLog: *** empty log message ***
7937
7938         * intl/dgettext.c, intl/explodename.c, intl/finddomain.c,
7939         intl/gettext.c, intl/gettext.h, intl/gettextP.h,
7940         intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
7941         intl/libgettext.h, intl/loadinfo.h, intl/loadmsgcat.c,
7942         intl/localealias.c, intl/plural.c, intl/textdomain.c,
7943         intl/ChangeLog, intl/Makefile.in, intl/VERSION,
7944         intl/bindtextdom.c, intl/dcgettext.c: Updated from gettext-0.10.38
7945
7946         * m4/Makefile.am:
7947         reflects addition of codeset.m4 from gettext-0.10.38, automatically
7948         generated.
7949
7950         * m4/codeset.m4, m4/gettext.m4, m4/glibc21.m4, m4/iconv.m4,
7951                 m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4: *
7952                 progtest.m4, lcmessage.m4, isc-posix.m4, iconv.m4,
7953                 glibc21.m4, gettext.m4, codeset.m4: updated from
7954                 gettext-0.10.38.
7955
7956         * ChangeLog: *** empty log message ***
7957
7958         * THANKS: added "Gerrit P. Haase" <gerrit.haase@t-online.de>
7959
7960         * m4/ChangeLog, locate/testsuite/.cvsignore,
7961         xargs/testsuite/.cvsignore, config.h.in, configure, aclocal.m4,
7962         doc/.cvsignore: *** empty log message ***
7963
7964         * m4/jm-macros.m4:      * jm-macros.m4 (jm_MACROS): add jm_FSTYPENAME
7965
7966         * doc/Makefile.in: *** empty log message ***
7967
7968         * doc/Makefile.am:
7969         * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
7970         created by dvips.  This should be taken care of by automake, but
7971         the code is commented out.
7972
7973 2001-06-09  Kevin Dalley  <kevin@seti.org>
7974
7975         * ABOUT-NLS: updated from gettext-0.10.38.
7976
7977         * configure.in: add tr to ALL_LINGUAS.
7978
7979         * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
7980         created by dvips.  This should be taken care of by automake, but
7981         the code is commented out.
7982
7983         * po/stamp-cat-id:      * stamp-cat-id: Remove file.
7984
7985         * po/Makefile.in.in:    * Makefile.in.in: Upgrade to gettext-0.10.38.
7986
7987         * po/ChangeLog: * cat-id-tbl.c: Remove file.
7988
7989         * po/de.po, es.po, et.po, fr.po:
7990         * po/fr.po, et.po, es.po, de.po: updated translations to
7991         findutils-4.1.7.
7992
7993         * po/tr.po: * tr.po:  New Turkish translation.
7994
7995 2001-06-05  Kevin Dalley  <kevin@seti.org>
7996
7997         * locate/updatedb.sh: replace "whoami" with "id -u" when testing
7998         for root.
7999
8000 2001-06-04  Kevin Dalley  <kevin@seti.org>
8001
8002         * locate/testsuite/Makefile.am (DIST_SUBDIRS): remove second
8003         instance of DIST_SUBDIRS.
8004
8005         * locate/Makefile.am (install-data-hook): changed install target
8006         to install-data-hook, which still installs other files.
8007
8008         * doc/Makefile.am (MOSTLYCLEANFILES): added find.cps, which should
8009         probably be handled by automake.
8010
8011         * doc/mdate-sh: removed file in doc directory.  It now exists only
8012         in top_srcdir, but this changed required a patch to automake.
8013
8014 2001-06-01  gettextize  <bug-gnu-utils@gnu.org>
8015
8016         * Makefile.in.in: Upgrade to gettext-0.10.38.
8017         * cat-id-tbl.c: Remove file.
8018         * stamp-cat-id: Remove file.
8019
8020 2001-05-20  Kevin Dalley  <kevin@seti.org>
8021
8022         * Version 4.1.7
8023
8024         * lib/Makefile.am (EXTRA_DIST): add strcasecmp.c
8025
8026         * find/testsuite/Makefile.am (EXTRA_DIST): new tests:
8027         find.gnu/name-opt.exp find.gnu/perm.exp find.gnu/perm.xo
8028         find.gnu/prune-default-print.exp find.gnu/prune-default-print.xo
8029
8030         * configure.in: update to 4.1.7
8031
8032         * config.sub, config.guess: upgraded to recent versions of
8033         config.sub and config.guess.
8034
8035         * locate/updatedb.sh: Add space to "#! /bin/sh"
8036
8037         * configure.in: Add id to ALL_LINGUAS
8038
8039         * lib/Makefile.am (EXTRA_DIST):  getline.[ch] added
8040         (libfind_a_SOURCES): getline.[ch] removed since getline.c is not
8041         always needed.
8042
8043         * po/da.po, de.po, es.po, et.po, fr.po, gl.po, id.po, it.po, ko.po,
8044         nl.po, pl.po, pt_BR.po, ru.po, sv.po: updated to reflect changes
8045         in source code.
8046
8047         * po/id.po: New translation for Indonesia.
8048
8049 2001-05-20  Lionel CONS <lionel.cons@cern.ch>
8050
8051         * find/find.c: Fixed security holes.  1.  There is a race
8052         condition between the lstat() to detect a symbolic link and the
8053         actual chdir().  2.  An attacker can move directories while find
8054         is _inside_ so that chdir(..) goes out of the intended file tree.
8055
8056         * lib/modetype.h: support for Solaris door files is added.
8057
8058         * lib/filemode.c: S_ISDOOR is undef'ed if STAT_MACROS_BROKEN
8059
8060         * find/pred.c (pred_type): -D option (for Solaris door files) is
8061         added.
8062
8063         * find/parser.c (insert_type):  -D option (for Solaris door files)
8064         is added.
8065
8066         * find/find.1: -D option (for Solaris door files) is documented
8067
8068         * doc/find.texi (Type): -D option (for Solaris door files) is
8069         documented
8070
8071 2001-05-02  Kevin Dalley  <kevin@seti.org>
8072
8073         * configure.in: Change AC_CHECK_MEMBERS to conform to new
8074         autoconf.  Add Danish.
8075
8076 2001-04-28  Kevin Dalley  <kevind@rahul.net>
8077
8078         * po/sv.po, ru.po, pt_BR.po, pl.po, nl.po, ko.po, it.po, gl.po,
8079         fr.po, et.po, es.po, de.po, findutils.pot:  new translations, and
8080         new source code to translate.
8081
8082         * po/da.po: new Danish translation.
8083
8084 2001-01-20  Kevin Dalley  <kevin@seti.org>
8085
8086         * doc/find.texi (Adding Tests): Place space in "#! /bin/sh".
8087
8088         * find/testsuite/find.gnu/prune-default-print.xo,
8089         find/testsuite/find.gnu/prune-default-print.exp: test for "find
8090         . -prune" which passes after changes.  Also see name-opt.exp.
8091
8092         * find/util.c (get_new_pred):
8093         * find/tree.c (set_new_parent):
8094         * find/parser.c (various parse functions):
8095         * find/find.c (main):
8096         (default_prints): new function
8097         * find/defs.h (struct predicate): added no_default_print
8098         side_effects are no separated from no_default_print.  predicates
8099         which cause side effects should not be reordered (optimized).
8100         predicates which cause printing should have printing turned off.
8101         Printing statements also cause side effects.
8102
8103 2000-10-29  Bruno Haible <haible@ilog.fr>
8104
8105         * locate/code.c (main), doc/find.texi: improve handling of
8106         non-ASCII characters used old format.
8107
8108 2000-10-21  Paul Eggert  <eggert@twinsun.com>
8109
8110         If open + fchdir fails, fall back on xgetcwd + chdir.
8111         The old code tested for this at compile-time,
8112         but SunOS 4.1.4 fchdir can fail at run-time.
8113
8114         * find/defs.h (fchdir): Define to -1 if not available.
8115         * find/defs.h (starting_dir, starting_desc):
8116         Always declare.  starting_dir now points to const.
8117         * find/find.c (starting_dir, starting_desc): Likewise.
8118         * find/find.c (starting_dir):
8119         Now "." if starting_desc is nonnegative, for benefit of diagnostics.
8120         (main, process_top_path, process_dir):
8121         If open + fchdir fails, fall back on xgetcwd + chdir.
8122         * find/pred.c (launch): Likewise.
8123
8124 2000-10-20  Kevin Dalley  <kevin@seti.org>
8125
8126         * xargs/xargs.c, locate/updatedb.sh, locate/locate.c (usage),
8127         find/parser.c (parse_help): add bug reporting address to help
8128
8129 2000-10-13  Kevin Dalley  <kevin@seti.org>
8130
8131         * depcomp, lib/depcomp: depcomp moved from lib to .
8132
8133         * po/sv.po, ru.po, pt_BR.po, pl.po, nl.po, ko.po, it.po, gl.po,
8134         fr.po, findutils.pot, et.po, es.po, de.po: updated after addition
8135         of lib/rpmatch.c
8136
8137 2000-10-11  Kevin Dalley  <kevind@rahul.net>
8138
8139         * Version 4.1.6
8140
8141         * locate/testsuite/config/unix.exp: set PRUNEFS to "" for the
8142         testsuite.
8143
8144 2000-10-10  Bruno Haible <haible@ilog.fr>
8145
8146         * lib/Makefile.am (libfind_a_SOURCES): added yesno.c
8147
8148         * lib/yesno.c, lib/rpmatch.c: new files.
8149
8150         * find/pred.c: use function yesno().
8151
8152 2000-10-10  Kevin Dalley  <kevind@rahul.net>
8153
8154         * locate/testsuite/Makefile.am: Added missing \ at end of
8155         EXTRA_DIST lines.
8156
8157         * locate/testsuite/locate.gnu/ignore_case3.xo,
8158         locate/testsuite/locate.gnu/ignore_case3.exp,
8159         locate/testsuite/locate.gnu/ignore_case2.exp,
8160         locate/testsuite/locate.gnu/ignore_case1.xo,
8161         locate/testsuite/locate.gnu/ignore_case1.exp: place locatedb
8162         inside tmp directory, add subdir directory under tmp.
8163
8164         * locate/testsuite/config/unix.exp: clean up tmp after test is
8165         finished.
8166
8167 2000-10-10  Kevin Dalley  <kevind@rahul.net>
8168
8169         * locate/testsuite/config/unix.exp (Repository):
8170
8171         * po/POTFILES.in: added lib/rpmatch.c
8172
8173 2000-10-09  Kevin Dalley  <kevind@rahul.net>
8174
8175         * lib/fnmatch.c, lib/fnmatch.h: reverted to older version of
8176         fnmatch which works with Solaris.
8177
8178         * locate/testsuite/config/unix.exp: dejagnu unix.exp
8179
8180         * xargs/testsuite/config/unix.exp: remove temporary file
8181
8182         * xargs/xargs.c: spelling correction
8183
8184         * m4/prereq.m4: updated and changed some macros
8185
8186         * m4/jm-macros.m4: replaced jm_FUNC_FNMATCH with
8187         kd_FUNC_FNMATCH_CASE_REPL
8188
8189         * m4/timespec.m4, m4/strerror_r.m4, m4/mbstate_t.m4,
8190         m4/largefile.m4, m4/gettext.m4, m4/fnmatchcase.m4, m4/d-type.m4,
8191         m4/d-ino.m4, m4/c-bs-a.m4: new m4 macros.
8192
8193         * m4/Makefile.am: add fnmatchcase.m4 and mbstate_t.m4
8194
8195         * locate/testsuite/locate.gnu/ignore_case3.xo,
8196         locate/testsuite/locate.gnu/ignore_case3.exp,
8197         locate/testsuite/locate.gnu/ignore_case2.xo,
8198         locate/testsuite/locate.gnu/ignore_case2.exp,
8199         locate/testsuite/locate.gnu/ignore_case1.xo,
8200         locate/testsuite/locate.gnu/ignore_case1.exp,
8201         locate/testsuite/config/unix.exp: tests related to "--ignore-case"
8202         option.
8203
8204         * locate/testsuite/locate.gnu: testsuite directory
8205
8206         * locate/testsuite/Makefile.am (Repository):
8207
8208         * locate/testsuite: add directory for locate testsuite
8209
8210         * po/findutils.pot: updated file
8211
8212         * po/sv.po, po/ru.po, po/pt_BR.po, po/pl.po, po/nl.po, po/ko.po,
8213         po/it.po, po/gl.po, po/fr.po, po/et.po, po/es.po, po/de.po:
8214         updated various po files.
8215
8216         * locate/updatedb.sh: export TMPDIR, which is used by child
8217         processes.
8218
8219         * locate/locate.1, locate/locate.c:  add "--ignore-case" option.
8220
8221         * locate/Makefile.am: add testsuite subdirectory
8222
8223         * find/testsuite/find.gnu/perm.xo,
8224         find/testsuite/find.gnu/perm.exp,
8225         find/testsuite/find.gnu/name-opt.xo,
8226         find/testsuite/find.gnu/name-opt.exp: added test suites
8227
8228         * configure.in: add locate/testsuite/Makefile
8229
8230         * doc/find.info*: removed from repository
8231
8232         * doc/find.texi: add documentation for "-i" option.
8233
8234         * aclocal.m4: removed from repository, as it is generated.
8235
8236         * find/pred.c: fixes problem with "find -perm -0100".
8237
8238         * lib/lstat.c, lib/stat.c: removed from repository.  These files
8239         are generated from lib/xstat.in.
8240
8241 2000-08-24  Kevin Dalley  <kevind@rahul.net>
8242
8243         * doc/find.texi (Invoking xargs): changed @var{-s} to @samp{-s}.
8244
8245 2000-05-13  Kevin Dalley  <kevind@rahul.net>
8246
8247         * find/tree.c (opt_expr): move iname and ipath to the front of the
8248         list of arguments.
8249
8250         * doc/find.texi (Directories): changed wording for "-prune".
8251
8252         * find/parser.c (parse_prune): set side_effects to true, to
8253         prevent prune from being moved in opt_expr.
8254
8255 2000-04-12  Kevin Dalley  <kevind@rahul.net>
8256
8257         * doc/find.texi, doc/permi.texi: fix spellings, add LocalWords.
8258
8259         * lib/Makefile.am: put getline.c back into libfind_a_SOURCES,
8260         since getstr is needed.
8261
8262         * Version 4.1.5
8263
8264         * po/POTFILES.in: updated list of files, updated po files.
8265
8266
8267 2000-04-02  Paul Eggert  <eggert@twinsun.com>
8268
8269         Add support for large files, and port to Solaris 8 and earlier
8270         versions.
8271
8272         * lib/human.c (getenv): Depend on NEED_GETENV_DECL, not
8273         HAVE_DECL_GETENV.
8274
8275         * lib/strftime.c (my_strftime): Make sure we call the system
8276         strftime, not ourselves, when invoking the underlying strftime.
8277
8278         * m4/check-decl.m4 (jm_CHECK_DECLS): Remove memchr, nanosleep.
8279
8280         * m4/jm-macros.m4 (jm_MACROS): Don't check for utime.h.  Do not
8281         require jm_BISON, jm_CHECK_TYPE_STRUCT_UTIMBUF, jm_FUNC_LCHOWN,
8282         jm_FUNC_CHOWN, jm_FUNC_NANOSLEEP, jm_FUNC_GROUP_MEMBER,
8283         jm_FUNC_PUTENV, jm_FUNC_GETGROUPS, AM_FUNC_GETLOADAVG,
8284         jm_SYS_PROC_UPTIME, jm_FUNC_FTRUNCATE, jm_FUNC_UTIME.  Do not
8285         replace strcasecmp, dup2, gethostname, getusershell, stime,
8286         strcspn, strpbrk, euidaccess, mkdir, rmdir, rpmatch, strndup,
8287         strverscmp, memchr, memmove.  Do not check for declaration of
8288         lchown.  Remove invocations of AM_FUNC_OBSTACK, AM_FUNC_STRTOD,
8289         POW_LIBM, jm_LANGINFO_CODESET, jm_ICONV.  Remove df tests.
8290         (jm_CHECK_ALL_TYPES): Include <sys/stat.h> when checking for
8291         struct stat.st_blksize.
8292
8293         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set environment variable
8294         in shell rather than using putenv, which isn't portable.
8295
8296         * COPYING, lib/alloca.c, lib/dirname.c, lib/error.c,
8297         lib/savedir.c, lib/strstr.c, m4/check-decl.m4, m4/d-ino.m4,
8298         m4/d-type.m4, m4/getline.m4, m4/jm-glibc-io.m4, m4/jm-macros.m4,
8299         m4/jm-mktime.m4, m4/ls-mntd-fs.m4, m4/memcmp.m4, m4/prereq.m4,
8300         m4/readdir.m4, m4/regex.m4, m4/strftime.m4, m4/uintmax_t.m4: Sync
8301         to latest version from sh-utils-2.0g.
8302
8303         * config.guess, config.sub, lib/argmatch.c, lib/argmatch.h,
8304         lib/human.c, lib/human.h, lib/memcpy.c, lib/quotearg.c,
8305         lib/quotearg.h, lib/strtoull.c, lib/strtoumax.c,
8306         lib/xstrtoumax.c, m4/c-bs-a.m4, m4/gettext.m4,
8307         m4/largefile.m4, m4/lcmessage.m4, m4/link-follow.m4,
8308         m4/progtest.m4, m4/strerror_r.m4, m4/timespec.m4,
8309         m4/xstrtoumax.m4: New files, taken from sh-utils-2.0g.
8310
8311         * lib/ansi2knr.1, lib/ansi2knr.c, lib/basename.c, lib/getopt.h,
8312         lib/fnmatch.c, lib/fnmatch.h, lib/modechange.c: Sync to latest
8313         unreleased version of GNU tar (between 1.13.17 and 1.13.18).
8314
8315         * lib/basename.h, lib/waitpid.c: New files, taken from same
8316         version of GNU tar.
8317
8318         * lib/regex.c, lib/regex.h: Sync to GNU grep 2.4.2.
8319
8320         * lib/posix/Makefile.am, lib/posix/regex.h: New files, taken from
8321         GNU grep 2.4.2.
8322
8323         * lib/strftime.c: Sync to textutils 2.0e.
8324
8325         * acconfig.h, depcomp, lib/strcasecmp.c, m4/check-type.m4,
8326         m4/const.m4, m4/decl.m4, m4/lfs.m4, m4/mktime.m4, m4/perl.m4,
8327         m4/putenv.m4, m4/uptime.m4, m4/utimbuf.m4, m4/utime.m4,
8328         m4/utimes.m4: Remove these files; no longer needed.
8329
8330         * configure.in (AC_CANONICAL_HOST, AC_SYS_LARGEFILE,
8331         jm_AC_TYPE_UINTMAX_T): Add.
8332         (CACHE_IDS, FSTYPE_STATVFS, FSTYPE_USG_STATFS, FSTYPE_AIX_STATFS,
8333         FSTYPE_MNTENT, FSTYPE_STATFS, FSTYPE_GETMNT): Add comment, so that
8334         we don't need acconfig.h.
8335         (AC_CHECK_TYPE): Add ssize_t.
8336         (AC_REPLACE_FUNCS): Add waitpid.
8337         (AC_CHECK_FUNCS): Remove basename.
8338         (AC_FUNC_MKTIME): Remove.
8339         (LIBOBJS): Add no-ops to work around automake 1.4 bug.
8340         (AC_OUTPUT): Add lib/posix/Makefile.
8341
8342         * find/defs.h: Include <config.h>, <sys/types.h>, <sys/stat.h>,
8343         <stdio.h>, <limits.h>, <inttypes.h>.  All includers changed to not
8344         include these files, and to include "defs.h" first (since config.h
8345         must be included first).
8346         (CHAR_BIT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
8347         S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, MOD_WXUSR,
8348         MODE_R, MODE_RW, MODE_RWX, MODE_ALL): New macros.
8349         (enum permissions_type): New enum.
8350         (struct long_val.negative): New member.
8351         (struct long_val.l_val): Now uintmax_t, not unsigned long.
8352         (struct size_val.size): Likewise.
8353         (struct perm_val): New type.
8354         (struct predicate.perm): Now struct perm_val, not unsigned long.
8355         (struct predicate.type): Now mode_t, not unsigned long.
8356         (list_file): New parameters current_time, output_block_size.
8357         All callers changed.
8358         (savedir, basename): Remove decls.
8359         (output_block_size, start_time): New extern vars.
8360
8361         * find/find.c: Include <human.h>, <savedir.h>.
8362         (output_block_size, start_time): New vars.
8363         (main): Initialize them.  No need to check for negative st_size,
8364         since savedir now does it for us.
8365
8366         * find/fstype.c: Include "dirname.h".
8367         (xatoi): Remove.
8368         (filesystem_type_uncached): Use xstrtoumax instead of xatoi.
8369
8370         * find/parser.c: Include "xstrtol.h".
8371         (get_num_days, get_num, parse_amin, parse_cmin, parse_mmin,
8372         parse_size, parse_used, insert_time, insert_num): Compute using
8373         uintmax_t, not unsigned long.
8374         (parse_amin, parse_cmin, parse_mmin, parse_used, insert_time):
8375         Keep track of whether time was negative before converting it to an
8376         unsigned type.
8377         (parse_daystart): Don't assume that localtime succeeds; e.g. it
8378         can fail with 64-bit time_t and 32-bit tm_year.
8379         (parse_perm, insert_type): Compute using mode_t, not unsigned
8380         long.
8381         (insert_type): Use symbolic constants like MODE_ALL instead of
8382         traditional ones like 07777.  Set new kind member to indicate
8383         permissions type, instead of using unportable magic numbers.
8384         (make_segment): We will use human_readable to convert most numeric
8385         values, so simplify the cases.
8386         (get_num_days): Write in terms of get_num, to avoid duplicated
8387         code.
8388         (insert_time, insert_num): When debugging, convert large values to
8389         uintmax_t and output with %ju.
8390         (get_num): Use xstrtoumax to do the real work.
8391
8392         * find/pred.c: Include "basename.h", "human.h".
8393         (DEV_BSIZE, ST_BLKSIZE, ST_NBLOCKSIZE): New macros, taken from
8394         fileutils.
8395         (ST_NBLOCKS): Replace with fileutils defn.
8396         (MAX): New macro.
8397         (ctime_format): New function.
8398         (pred_fprintf, format_date): Use human_readable to output large
8399         numbers portably.
8400         (pred_fprintf): Use ctime_format to output ctime-style dates.  Use
8401         base_name to compute the base name of a path.  With %m, output the
8402         mode portably using traditional numbers, even if the host uses
8403         some other numbering scheme.
8404         (pred_iname, pred_name): basename -> base_name.
8405         (pred_perm): Use new kind member to deduce permissions type,
8406         instead of relying on magic numbers.
8407         (pred_size): Compute using uintmax_t, not unsigned long.  Avoid
8408         overflow if file size is near the maximum.
8409         (pred_type): Compute using mode_t, not unsigned long.
8410         (launch): Use waitpid, not wait.  Check for EINTR.
8411         (format_date): Don't assume that localtime succeeds.
8412
8413         * find/util.c (basename): Remove; we now use base_name.
8414
8415         * lib/Makefile.am (SUBDIRS): New macro.
8416         (libfind_a_SOURCES): Add argmatch.h, argmatch.c, basename.h,
8417         basename.c, human.c, human.h, quotearg.c, quotearg.h, xstrtoumax.c.
8418         Remove error.h, error.c, getline.c.
8419         (EXTRA_DIST): Add mktime.c, regex.c.
8420
8421         * lib/listfile.c: Include "human.h".
8422         (alloca): Declare, or include appropriate files to declare.
8423         (DEV_BSIZE, ST_NBLKSIZE, ST_NBLOCKS, ST_NBLOCKSIZE): New macros.
8424         (convert_blocks): Remove.
8425         (list_file): New current_time and output_block_size args.
8426         Revamp quite a bit, to handle large numbers correctly
8427         and to match GNU ls behavior more closely.
8428
8429         * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4, gettext.m4,
8430         largefile.m4, lcmessage.m4, link-follow.m4, progtest.m4,
8431         strerror_r.m4, xstrtoumax.m4.  Remove check-type.m4, const.m4,
8432         decl.m4, lfs.m4, mktime.m4, perl.m4, putenv.m4, timespec.m4,
8433         uptime.m4, utimbuf.m4, utime.m4, utimes.m4.
8434
8435         * xargs/xargs.c (wait_for_proc): Retry wait if it fails with
8436         errno == EINTR.
8437
8438 2000-04-05  Kevin Dalley  <kevind@rahul.net>
8439
8440         * xargs/Makefile.am:  add ansi2knr
8441
8442         * xargs/xargs.c: add macros PARAMS rather than P_.  Add
8443         prototypes.
8444
8445         * po/POTFILES: new file listing all POFILES.
8446
8447         * m4/gl.po, m4/et.po: new files
8448
8449         * m4/Makefile.am.in:  updated file
8450
8451         * m4: update directory
8452
8453         * locate/Makefile.am: create updatedb from updatedb.sh
8454
8455         * locate/updatedb.sh, locate/updatedb.in: removed file.  Replaced
8456         by updatedb.sh
8457
8458         * locate/frcode.c, locate/code.c, locate/bigram.c: add macros
8459         PARAMS rather than P_.  Add prototypes.
8460
8461         * lib/xstat.in: new file
8462
8463         * lib/Makefile.am: update to latest versions of library files.
8464
8465         * find/testsuite/Makefile.am: add CLEANFILES
8466
8467         * find/util.c: remove definition of basename
8468
8469         * find/util.c, find/tree.c, find/pred.c, find/parser.c,
8470         find/fstype.c, find/find.c, find/defs.h: add macros PARAMS rather
8471         than P_, for consistency, change to prototypes
8472
8473         * find/Makefile.am: Add prototypes and ansi2knr
8474
8475         * configure.in: add Galition and Estonian languages.
8476         Miscellaneous other fixes.
8477
8478
8479 2000-03-11  Kevin Dalley  <kevind@rahul.net>
8480
8481         * lib/basename.c: Add file from libit.
8482         * lib/Makefile.am (libfind_a_SOURCES): add basename.c since it is
8483         no longer replaceable.
8484
8485         * find/util.c: Remove definition of basename, which is now in
8486         lib/basename.c (as base_name).
8487         * find/pred.c: Use base_name, not basename.
8488         * find/defs.h: Likewise.
8489
8490         * configure.in : Don't replace basename.  Now we use only
8491         base_name.
8492
8493 2000-02-26  Kevin Dalley  <kevind@rahul.net>
8494
8495         * Version 4.1.4
8496
8497         * lib/strtoul.c: added to distribution
8498
8499         * configure.in: added strtoul to AC_REPLACE_FUNCS
8500
8501         * configure.in: added jm_CHECK_ALL_TYPE
8502
8503 2000-02-23  Kevin Dalley  <kevind@rahul.net>
8504
8505         * po/ChangeLog: removed, merged with top-level ChangeLog.
8506
8507         * po/de.po: new version of German file.
8508
8509         * po/gl.po, po/et.po: new languages, Estonian and Galician.
8510
8511         * locate/updatedb.sh (PRUNEFS): enclose paths in quotes
8512
8513 2000-02-17  Kevin Dalley  <kevind@rahul.net>
8514
8515         * po/it.po: new version of Italian file.
8516
8517         * locate/updatedb.sh (prunefs_exp): have sed statement use '*'
8518         rather than the often unsupported '+'.
8519
8520 2000-02-13  Kevin Dalley  <kevind@rahul.net>
8521
8522         * configure.in: removed AC_ARG_PROGRAM, which is already in
8523         AM_INIT_AUTOMAKE.
8524
8525         * locate/Makefile.am (updatedb), locate/updatedb.sh: add
8526         transforms of find, frcode, bigram, and code back into
8527         updatedb.sh, which were accidentally removed.
8528
8529 2000-02-12  Kevin Dalley  <kevind@rahul.net>
8530
8531         * lib/wait.h: updated address.
8532
8533 2000-01-26  Kevin Dalley  <kevind@rahul.net>
8534
8535         * Version 4.1.3
8536
8537         * acconfig.h: added internationalization.
8538
8539         * intl/*: copied from tar-1.13.17.
8540
8541         * locate/Makefile.am, locate/locate.c, locate/code.c:
8542         internationalized file.
8543
8544         * locate/frcode.c, locate/bigram.c: include headers from ../lib
8545         directory.
8546
8547         * xargs/Makefile.am, xargs/xargs.c: internationalized directory.
8548
8549 2000-01-26  Kevin Dalley  <kevind@rahul.net>
8550
8551         * po/POTFILES.in: added list of files with translatable strings.
8552
8553         * de.po, es.po, fr.po, it.po, ko.po, nl.po, pl.po, pt_BR.po,
8554         ru.po, sv.po: New, slightly out of date, files imported from the
8555         Translation Project: http://www.iro.umontreal.ca/contrib/po/HTML/,
8556         German, Spanish, French, Italian, Korean, Dutch, Polish, Brazilian
8557         Portuguese.
8558
8559
8560 2000-01-24  Kevin Dalley  <kevind@rahul.net>
8561
8562         * lib/xmalloc.c, lib/regex.c, lib/getopt.c: internationalization
8563         works with current version of gettext.
8564
8565         * lib/getline.h : added declaration of getstr.
8566         * lib/Makefile.am (libfind_a_SOURCES): added getline.[ch] to
8567         standard compilation. Added internationalization.
8568         * find/Makefile.am (INCLUDES): corrected -I options for building
8569         in other directories.
8570         (LDADD): changes for internationalization.
8571
8572         * configure.in (ALL_LINGUAS): added internationalization.
8573         getline.c is always compiled and linked, because of getstr.
8574         AM_GNU_GETTEXT
8575
8576         * Makefile.am:
8577         (DISTCLEANFILES): added intl/libintl.h
8578         (AUTOMAKE_OPTIONS): added gnits to AUTOMAKE_OPTIONS
8579         (SUBDIRS): added intl and po
8580
8581         * acconfig.h: added internationalization values
8582
8583         * THANKS: added thanks file for gnits compatibility.
8584
8585 2000-01-22  Kevin Dalley  <kevind@rahul.net>
8586
8587         * added intl directory.
8588         * created po directory and added existing po files from
8589         http://www.iro.umontreal.ca/contrib/po/HTML
8590
8591         * Added internationalization, only with slightly out of date po
8592         files for many locales.
8593
8594 2000-01-18  Kevin Dalley  <kevind@rahul.net>
8595
8596         * Version 4.1.2
8597
8598         * locate/Makefile.am: remove creation of updatedb, since it is now
8599         made by configure
8600
8601         * configure.in: updatedb is now created by configure.
8602
8603         * xargs/Makefile.am: added testsuite to xargs directory
8604
8605         * locate/updatedb.in: updatedb is now created by configure
8606
8607         * locate/frcode.c, locate/code.c, locate/bigram.c: change return
8608         from main to int.  Replace getstr with getline, where possible.
8609
8610         * locate/Makefile.am: place frcode, code, bigram in
8611         libexec_PROGRAMS
8612
8613         * lib/xstrdup.c, lib/xmalloc.c, lib/xgetcwd.c, lib/xalloc.h,
8614         lib/strtol.c, lib/strstr.c, lib/strftime.c, lib/strdup.c,
8615         lib/stpcpy.c, lib/stat.c, lib/savedir.h, lib/savedir.c,
8616         lib/regex.h, lib/regex.c, lib/realloc.c, lib/pathmax.h,
8617         lib/modechange.h, lib/modechange.c, lib/mktime.c, lib/memset.c,
8618         lib/memcmp.c, lib/malloc.c, lib/lstat.c, lib/idcache.c,
8619         lib/getopt1.c, lib/getopt.c, lib/getopt.h, lib/getline.c,
8620         lib/getline.h, lib/fnmatch.c, lib/fnmatch.h, lib/filemode.c,
8621         lib/filemode.h, lib/fileblocks.c, lib/error.c, lib/error.h,
8622         lib/dirname.c, lib/alloca.c: updated to newer version of file from
8623         fileutils.
8624
8625         * find/version.c: version number is now automatically generated by
8626         configure.
8627
8628         * find/fstype.c (filesystem_type_uncached): fixes bug described as
8629         follows:  When 'find' looks for a fstype, it parses the /etc/mtab
8630         until it finds the good line. But, if there is, before the good
8631         line, a line whose mountpoint is unreachable, it fails.
8632
8633         * doc/texinfo.tex: updated to newer version
8634
8635         * doc/find.texi: added version.texi, fixed a few documentation bugs.
8636
8637         * configure.in: new m4 features.
8638
8639         * Makefile.am: moved testsuite to below corresponding directories
8640         find and xargs.
8641
8642         * acconfig.h: updated to match new m4 files.
8643
8644         * m4: added m4 directory, largely borrowed from Jim Meyering's
8645         fileutils.
8646
8647 2000-01-17  Kevin Dalley  <kevind@rahul.net>
8648
8649         * doc/find.texi (Multiple Files): placed missing xargs in examples
8650
8651         * find/testsuite/find.gnu/depth.exp: added find tests to test
8652         "-depth" bug.
8653
8654         * doc/find.texi: include version.texi for automatic determination
8655         of version number, update bug report email address to
8656         bug-findutils@gnu.org.
8657         (Combining Primaries With Operators): add indices for " ,", "()",
8658         "-a", "-o", etc.
8659
8660 2000-01-17  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8661
8662         * find/tree.c (opt_expr): Never rearrange the arguments of the
8663         comma operator, since it is not commutative.  Remove useless
8664         assignment.2
8665
8666 2000-01-17  Jonathan R. Ferro <jferro@corwin.ece.cmu.edu>
8667
8668         * find/find.c (process_path): fix problem with "-depth" which is
8669         tested in depth.exp test.
8670
8671 1999-08-15  Kevin Dalley  <Kevin Dalley <kevin@seti.org>>
8672
8673         * find/fstype.c (filesystem_type_uncached): a stat failure with
8674         EACCESS will ignore this file system keep on looking.  Patch
8675         suggested by Vincent Danjean <vdanjean@ens-lyon.fr>.
8676
8677 1999-08-15  Mark Kettenis  <kettenis@gnu.org>
8678
8679         * xargs/xargs.c (LONG_MAX): Define if necessary.
8680         (main): If ARG_MAX is -1 (that is sysconf
8681         (_SC_ARG_MAX) returns -1) the system does not impose a limit.  In
8682         that case, use LONG_MAX as the limit.
8683
8684 1999-08-15  Kevin Dalley  <Kevin Dalley <kevind@rahul.net>
8685
8686         * find/version.c: version string is now set by config.h
8687
8688 1999-08-08  Kevin Dalley  <kevin@seti.org>
8689
8690         * Version 4.1.1
8691
8692         * README-alpha: added alpha README file
8693
8694         * find/defs.h: move lstat declarations into defs.h
8695
8696         * xargs/Makefile.am, testsuite/Makefile.am, locate/Makefile.am,
8697         lib/Makefile.am, find/Makefile.am, doc/Makefile.am, configure.in,
8698         Makefile.am: update for automake-1.4
8699
8700 1999-08-02  Kevin Dalley  <kevind@rahul.net>
8701
8702         * AUTHORS: added file listing AUTHORS
8703
8704         * lib/Makefile.am: modified code for EXTRA sources
8705
8706 1999-01-30  Kevin Dalley  <kevind@rahul.net>
8707
8708         * added const to declaration of basename, which should satisfy
8709         Linux as well as Hurd (fixes bug #31325).
8710
8711 1998-12-04  Kevin Dalley  <kevind@rahul.net>
8712
8713         * lib/nextelem.c: removed declaration of strdup and free, which
8714         meets GNU coding standards and allows compilation on more
8715         platforms.
8716
8717         * find.texi: corrected explanation of -amin option which described
8718         hours instead of minutes
8719
8720 1998-09-26  Kevin Dalley  <kevind@rahul.net>
8721
8722         * lib/getline.c: fix getstr so that it correctly handles long file
8723         paths
8724
8725 1998-09-20  Kevin Dalley  <kevind@rahul.net>
8726
8727         * removed more function declarations to meet GNU coding standards
8728
8729 1998-08-30  Kevin Dalley  <kevind@rahul.net>
8730
8731         * lib/nextelem.c: removed declaration of strdup and free, which
8732         meets GNU coding standards and allow compilation on sparc
8733
8734         * corrected explanation of -amin option which described hours
8735         instead of minutes
8736
8737 1998-02-27  Kevin Dalley  <kevind@rahul.net>
8738
8739         * locate/locate.c: add --existing option to locate, which only
8740         prints the names of files which still exist
8741
8742 1998-02-08  Kevin Dalley  <kevind@rahul.net>
8743
8744         * locate/locate.c: corrected get_short so that it correctly
8745         returns negative numbers.
8746
8747         * remove declarations of various string functions.  Removing the
8748         declarations almost matches the GNU Coding Standards.
8749
8750 1997-03-03  Kevin Dalley  <kevind@rahul.net>
8751
8752         * xargs/xargs.c: xargs fixed to prevent occasional core dumping.
8753
8754 1997-01-11  Kevin Dalley  <kevind@rahul.net>
8755
8756         * locate/updatedb.sh: add --localuser option to updatedb, which
8757         allows find to be run as nobody, while allowing database file to
8758         be created as root, change suggested by
8759         <Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de>
8760
8761 1996-12-28  Kevin Dalley  <kevind@rahul.net>
8762         * added PRUNEFS as variable in updatedb and --prunefs as option to
8763         updatedb
8764
8765 1996-05-27  Kevin Dalley  <kevind@rahul.net>
8766
8767         * updatedb.sh: when NETPATHS is used, only su to NETUSER if whoami
8768         is root
8769 1996-04-27  Kevin Dalley  <kevind@rahul.net>
8770
8771         * lib/getline.c (getstr): verify that nchars_avail is *really*
8772         greater than 0; set *n to a large enough number, stops some core
8773         dumping
8774
8775 1994-11-03  David J. MacKenzie  <djm@gnu.org>
8776
8777         * Version 4.1.
8778
8779         * locate/Makefile.am: Move updatedb from LIBSCRIPTS to SCRIPTS.
8780
8781         * Makefile.am (distname): Change distribution name from find to
8782           findutils.
8783
8784         * testsuite/config/unix.exp: Don't abuse xfail; simulate it correctly.
8785
8786         * locate/Makefile.am (CLEANFILES): Fix typo.
8787
8788 1994-11-02  David J. MacKenzie  <djm@gnu.org>
8789
8790         * The big 4 0.
8791
8792         * lib/listfile.c find/defs.h (list_file): Take a stream arg.
8793         * find/pred.c (pred_ls): pass it.
8794         * find/parser.c pred.c defs.h (parse_fls, pred_fls): New functions.
8795
8796 1994-10-25  David J. MacKenzie  <djm@gnu.org>
8797
8798         * find/pred.c (pred_fprintf): Flush output after \c.  From Chapman
8799         Flack.
8800
8801         * find/parser.c (insert_fprintf): Warn about unrecognized \ and %
8802         sequences.
8803
8804 1994-10-18  David J. MacKenzie  <djm@gnu.org>
8805
8806         * find/defs.h parser.c pred.c tree.c util.c: Globally change
8807         "victim" to "primary".
8808
8809         * find/parser.c (insert_fprintf): For 'c' format, don't lose the
8810         need_stat information.  From Chapman Flack.
8811
8812         * doc/find.texi perm.texi: New files.
8813         * configure.in: Configure the doc directory.
8814
8815         * find/pred.c (pred_regex): Check that the regex matched the whole
8816         file name.
8817
8818 1994-10-12  David J. MacKenzie  (djm@gnu.org>
8819
8820         * find/parser.c: Add -mount as an alias for -xdev.
8821         From Klaus.Steinberger@physik.uni-muenchen.de (Klaus Steinberger).
8822
8823         * lib/modechange.c: Make umask_value unsigned short.
8824
8825         * xargs/xargs.c: Use symbolic constants in longopts.
8826         From Chapman Flack.
8827
8828 1994-10-05  David MacKenzie  <djm@gnu.org>
8829
8830         * xargs/xargs.c (main, read_line, read_string, do_exec): Pass
8831           along the lengths of the args.
8832           (main): Calculate length of replace_pat.
8833           (push_arg, do_insert): Use those lengths instead of calculating
8834           them.
8835
8836 1994-10-04  David MacKenzie  <djm@gnu.org>
8837
8838         * locate/updatedb.sh Makefile.in: Add substitutions to get
8839           the transformed program names.
8840
8841         * xargs/xargs.c: Put back the global variables for now.
8842         Rename some variables.  Increase default args_per_exec.
8843         Use boolean where applicable.
8844         (main): Reduce default arg_max by 2048 for POSIX.2.
8845         (read_string): Don't check EOF string.
8846         (read_line, read_string): Take initial args size into account.
8847
8848 1994-10-01  David MacKenzie  <djm@gnu.org>
8849
8850         * find/pred.c (launch): Use pid_t.
8851
8852         * xargs/xargs.c (EOF_STR): Define and use.
8853         [__STDC__]: Declare xrealloc and xmalloc using void *.
8854         * find/defs.h: Likewise.
8855
8856         * find/defs.h: Only declare stpcpy if !HAVE_STPCPY.
8857
8858         * xargs/xargs.c: Replace most global variables with structure
8859           pointers passed as arguments.  Use pid_t.
8860         * lib/wait.h: Include sys/wait.h if HAVE_SYS_WAIT_H.
8861         * configure.in: Call AC_TYPE_MODE_T and AC_HEADER_SYS_WAIT.
8862
8863         * xargs/xargs.c: Improve paging performance and memory
8864           fragmentation by building command arguments in a pre-allocated
8865           buffer and re-implementing the child pid list as an expandable
8866           array.  From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
8867
8868 1994-09-29  David J. MacKenzie  (djm@gnu.org>
8869
8870         * find/fstype.c (fstype_to_string): Add more cases.  Use
8871           INITMOUNTNAMES if defined.
8872         * find/defs.h: Change boolean typedef from char to int.
8873         * configure.in: Check for mktime.
8874
8875 1994-09-27  Kaveh R. Ghazi  (ghazi@noc.rutgers.edu)
8876
8877         * configure.in: Add AC_HEADER_STAT.
8878         * lib/listfile.c, lib/modetype.h: Add STAT_MACROS_BROKEN.
8879
8880         * find/pred.c: Move the inclusion of defs.h ahead of the first
8881           test of _POSIX_VERSION.
8882
8883         * lib/xgetcwd.c: Remove _POSIX_VERSION, rely only on HAVE_GETCWD.
8884
8885 1994-09-26  David MacKenzie  <djm@gnu.org>
8886
8887         * configure.in: Add AC_CONFIG_HEADER.
8888         * find/*.c locate/*.c xargs/*.c: Include config.h.
8889         * locate/updatedb.sh: Add --version; --old -> --old-format.
8890
8891 1994-09-25  David MacKenzie  <djm@gnu.org>
8892
8893         * find/* [__STDC__]: Prototype declarations.
8894
8895         * locate/updatedb.sh: Account for renaming code and frcode.
8896
8897         * find/find.c (process_path): Store dev and ino of directories in
8898           current branch to avoid symlink loops.  From DJ Delorie
8899           <dj@ctron.com>.
8900           (process_dir): If following symlinks, don't cd to ..; instead,
8901           cd to the starting directory and then to the parent directory.
8902           (main) [HAVE_FCHDIR]: Save the dev, ino of the starting directory.
8903           (process_top_path) [HAVE_FCHDIR]: Use it.
8904         * find/pred.c (launch) [HAVE_FCHDIR]: Likewise.
8905         * defs.h [HAVE_FCHDIR]: Declare starting_desc instead of starting_dir.
8906         * configure.in: Check for dev_t, ino_t, fchdir, fcntl.h.
8907
8908 1994-09-23  David MacKenzie  <djm@gnu.org>
8909
8910         * lib/listfile.c: Change #ifdef S_IFLNK to #ifdef S_ISLNK.
8911         From Andreas Luik <luik@isa.de>.
8912
8913 1994-09-22  David MacKenzie  <djm@gnu.org>
8914
8915         * locate/locate.c (last_literal_end): Dynamically allocate enough
8916           memory for the subpattern.
8917
8918 1994-09-21  David MacKenzie  <djm@gnu.org>
8919
8920         * locate/locate.c (locate): Warn if database is >8 days old.
8921         From Ian Lance Taylor.
8922
8923         * xargs/xargs.c (do_exec), find/pred.c (launch): Set SIGCHLD to
8924           default.  From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
8925         * find/find.c pred.c util.c lib/listfile.c: Remove fflush(stdout)
8926           calls before error.  error does it, and doesn't trash errno.
8927           From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
8928
8929         * find/fstype.c (filesystem_type_uncached): Don't trust mtab dev
8930           number on HPUX.  From Andreas Luik <luik@isa.de>.
8931           (filesystem_type_uncached): Don't cache unknown file system
8932           types.  From casper@fwi.uva.nl (Casper Dik).
8933
8934         * locate/updatedb.sh: Collect results in temp file and rename it
8935           atomically.  From Andreas Luik <luik@isa.de>.
8936
8937         * xargs/xargs.c (parse_num): Print a long using %ld.  From Jim
8938           Meyering.
8939
8940         * find/defs.h find.c parser.c pred.c util.c, lib/nextelem.c:
8941           Emulate strchr and strrchr with index and rindex, not vice versa.
8942
8943         Remove man directory; move man pages to the directories of the
8944         programs they document.
8945
8946         * locate/frcode.c: Renamed from code.c.
8947         * locate/frcode.c (put_short): Renamed from puthalfword.
8948         * locate/locate.c (get_short): Renamed from gethalfword.
8949         (last_literal_end): Renamed from patprep.
8950         (locate): Recognize old-format databases too.
8951         * locate/locatedb.h: Add defines for old-format databases.
8952         * locate/bigram.c locate/code.c: Put back programs to create
8953         old-format databases.
8954         * locate/updatedb.sh: Take --old option to use them.
8955
8956 1994-09-20  David MacKenzie  <djm@gnu.org>
8957
8958         * configure.in: Update for Autoconf v2.
8959         * find/pred.c lib/savedir.c: Use new symbols for dir header.
8960         * locate/updatedb.sh: Add --help option.
8961
8962 1994-02-13  Jim Meyering  (meyering@comco.com)
8963
8964         * man/Makefile.in [man1ext, man5ext]: Set man5ext (not man1ext) to 5.
8965
8966 1993-08-01  David J. MacKenzie  (djm@gnu.org>.
8967         (filesystem_type_uncached) [AFS]: Call it if the fs type is
8968         otherwise unknown.
8969
8970         * parser.c (parse_size): Recognize b and w suffixes for dd
8971         compatibility.
8972
8973         * code.c (puthalfword): New function.
8974         (main): Call it.
8975         * locate.c (gethalfword): New function.
8976         (locate): Call it.
8977         From ifado!wb@germany.eu.net (Wilhelm B. Kloke).
8978
8979         * listfile.c: Include pathmax.h.
8980         (get_link_name): Always allocate PATH_MAX + 1 bytes for
8981         readlink buffers.
8982         * pred.c (pred_fprintf, insert_lname): Call get_link_name.
8983
8984         * fstype.c (filesystem_type, filesystem_type_uncached),
8985         listfile.c (list_file): Take an arg for the path to access.
8986         * pred.c (pred_ls, pred_fstype, pred_fprintf): Pass it.
8987
8988         * find.c (process_dir): Renamed from scan_directory.
8989
8990         Changes from jrs@world.std.com (Rick Sladkey) to chdir into
8991         subdirectories instead of using string concatenation, for speed:
8992         * find.c (process_top_path): New function.
8993         (main): Call it, and xgetcwd.
8994         (process_path, scan_directory): Take new arg, the pathname
8995         relative to ".".  Use it and pass it on.
8996         * pred.c (pred_and, pred_comma, pred_negate, pred_or,
8997         pred_xtype, pred_fprintf, pred_empty, insert_lname):
8998         access rel_pathname instead of pathname.
8999         (launch): chdir to starting_dir.
9000         * defs.h: Declare rel_pathname and starting_dir.
9001         * find.c: Define them.
9002
9003         * xgetcwd.c: New file.
9004
9005         * updatedb.sh: Recognize -fstype NFS as well as nfs.
9006         * locate.c (patprep): Skip trailing character classes correctly.
9007         From luik@pharao.stgt.sub.org (Andreas Luik).
9008
9009         * parser.c (parse_group): Make gid a gid_t, not short or int.
9010         (parse_nogroup): Cast gid to unsigned when using it as an array index.
9011         (parse_user, parse_nouser): Similar changes for uid.
9012         * defs.h: Use uid_t and gid_t.
9013
9014         * parser.c (parse_help): New function.
9015         (parse_table):  Add --version, -help, and --help options.
9016         Rename struct parser_table_t to struct parser_table.
9017         (parse_version): Exit after printing message, on
9018         stdout not stderr.
9019
9020         * xargs.c, locate.c (main, usage): Add --version and --help
9021         options.
9022
9023 1993-03-31  Jim Meyering  (meyering@comco.com)
9024
9025         * parser.c: Define isascii macro to be 1 also if STDC_HEADERS.
9026         * xargs.c: Ditto.
9027
9028 1993-03-31  David J. MacKenzie  (djm@gnu.org>text; nuke cp.
9029
9030 1993-03-29  David J. MacKenzie  (djm@gnu.org>.
9031
9032         * parser.c (make_segment, insert_fprintf), pred.c
9033         (pred_fprintf): Add '%F' to print filesystem type.
9034
9035         * parser.c (parse_fprintf): Check if second arg is missing.
9036
9037 1993-03-23  David J. MacKenzie  (djm@gnu.org>
9038
9039         * defs.h, parser.c, pred.c: Rename some types that conflict
9040         with reserved POSIX.1 namespace (ended in _t).
9041
9042
9043
9044 1991-10-17  David J. MacKenzie  <djm@gnu.org>
9045
9046         * xargs.c: Don't determine memory.h based on POSIX, which
9047         doesn't mention it.
9048
9049 1991-10-05  Jim Meyering <meyering@churchy.gnu.ai.mit.edu>
9050
9051         * parser.c (parse_perm): Parse new `-perm +mode' notation.
9052         * pred.c (pred_perm): Interpret same.
9053
9054 1991-09-13  David J. MacKenzie  <djm@gnu.org>
9055
9056         * xargs.c [POSIX]: Always use sysconf to get ARG_MAX.
9057
9058 1991-09-05  David J. MacKenzie  <djm@gnu.org>
9059
9060         * bigram.c, code.c (main): Make path_max int, not unsigned.
9061         * locate.c (main): Check for pathconf failure.
9062
9063 1991-09-05  Jim Meyering <meyering@churchy.gnu.ai.mit.edu>
9064
9065         * parser.c (insert_fprintf): Add `\\' escape and fixed `%%'
9066         interpretation.
9067         * pred.c (pred_fprintf): fixed off-by-one indexing problem
9068         when handling [gGuU] printf formats.
9069
9070 1991-08-28  David J. MacKenzie  <djm@gnu.org>
9071
9072         * Version 3.2.
9073
9074 1991-08-26  David J. MacKenzie  <djm@gnu.org>
9075
9076         * bigram.c, code.c: Fix handling of PATH_MAX.
9077         Check for anomalous input line lengths.
9078         From Bruce Evans.
9079
9080 1991-08-23  David J. MacKenzie  <djm@gnu.org>
9081
9082         * pred.c (pred_fprintf): Round block number up to get K.
9083
9084 1991-08-22  David J. MacKenzie  <djm@gnu.org>
9085
9086         * pred.c (pred_fprintf, pred_lname) [_AIX]: Allocate PATH_MAX
9087         byte for link object since st_size is wrong.
9088
9089         * listfile.c (list_file): Don't convert blocks to kilobytes if
9090         env. var POSIX_ME_HARDER is defined.
9091
9092         * fstype.c [FS_AIX_STATFS]: New case.
9093
9094         * configure: Make sure the sys/mount.h is the 4.4BSD version
9095         with grep instead of just testing whether it exists.
9096
9097         * listfile.c (list_file): Add 1 to number of 512-byte blocks
9098         before dividing to get 1K blocks (so we round up, not down).
9099
9100 1991-08-21  David J. MacKenzie  <djm@gnu.org>
9101
9102         * Version 3.1.
9103
9104         * parser.c (parse_fprintf), pred.c (pred_fprintf): Add %k
9105         conversion to print 1K blocks.
9106
9107         * listfile.c: Print counts of 1K blocks, for consistency with
9108         new fileutils release.  Bad timing, there.
9109
9110         * Version 3.0.
9111
9112         * pred.c [VOID_CLOSEDIR]: Fake a return value for closedir,
9113         which returns void on some systems, like Sequents.
9114         * configure: Check sys/dir.h for 'void closedir'.
9115
9116 1991-08-15  David J. MacKenzie  <djm@gnu.org>
9117
9118         * modetype.h: Define POSIX.1 stat stuff if missing.
9119         * pred.c, parser.c, find.c, fstype.c: Don't define it.
9120         * updatedb.sh: Use a variable substitution method like configure's.
9121         * Makefile.in: Add datadir variable to separate programs from
9122         data file.
9123
9124         * parser.c, pred.c: Rename -fulldays to -daystart.
9125
9126         * defs.h, find.c, parser.c, pred.c: Add many new predicates
9127         from Jay Plett (jay@princeton.edu).
9128
9129 1991-08-14  David J. MacKenzie  <djm@gnu.org>
9130
9131         * parser.c (parse_size), pred.c (pred_size), defs.h (struct
9132         size_t): Allow `k' to follow number to measure size in Kbytes.
9133         * parser.c (parse_size, get_num, insert_num), defs.h (struct
9134         size_t): Use enum comparison_type instead of short.
9135
9136 1991-08-09  David J. MacKenzie  <djm@gnu.org>
9137
9138         * xargs.c (read_line): Use isblank, to support POSIX locales.
9139
9140         * fstype [FS_STATVFS]: New code for SVR4, from slootman@dri.nl
9141         (Paul Slootman).
9142         * configure: Figure out when to use it.
9143
9144         * configure: Check for st_blocks in struct stat.
9145         * listfile.c (ST_NBLOCKS): New macro.
9146         (list_file): Print file's block count.
9147         Use S_ISLNK instead of S_IFLNK.
9148         * fileblocks.c: New file, from fileutils.
9149
9150 1991-08-08  David J. MacKenzie  <djm@gnu.org>
9151
9152         * parser.c, pred.c [CACHE_IDS]: Optional code to turn uid and
9153         gid lookups into table lookups.
9154
9155 1991-08-07  David J. MacKenzie  <djm@gnu.org>
9156
9157         * configure, Makefile.in's: Support +srcdir option via VPATH.
9158         Clean up clean targets.
9159
9160 1991-07-20  David J. MacKenzie  <djm@gnu.org>
9161
9162         * configure: Filter /etc and /usr/etc from path.
9163
9164         * xargs.c (wait_for_proc): Fix handling of child exit status.
9165         (main): Exit with a nonzero status if any child did.
9166
9167         * pred.c (launch): Flush stdout and stderr before forking.
9168
9169         * fstype.c (filesystem_type) [FS_MNTENT]: Skip entries of
9170         type "ignore".
9171
9172 1991-07-19  David J. MacKenzie  <djm@gnu.org>
9173
9174         * pred.c, locate.c: Use fnmatch instead of glob_match.
9175         * fnmatch.c, fnmatch.h: New files.
9176
9177         * Many files: Use string.h if STDC_HEADERS, as well as if USG.
9178
9179         * locate.c, code.c, bigram.c: Possibly use pathconf to get
9180         PATH_MAX.  Use malloc to allocate path arrays.
9181
9182         * xargs.c: Possibly use sysconf to get ARG_MAX.
9183         (env_size): Make definition unconditional.
9184         (main): Do arg_max adjustment that can't be done with
9185         preprocessor now that ARG_MAX might be a function call.
9186         (do_exec): Exit with status 126 or 127 after failed exec, for
9187         POSIX.2 draft 11.1.
9188
9189         * xargs.c, pred.c, listfile.c: Use POSIX, not UNISTD_MISSING.
9190         * wait.h: Use POSIX, not WAIT_MACROS_MISSING.
9191
9192         * COPYING: Use version 2.  Update all files.
9193
9194         * Replace Makefile and lib/Makefile with Makefile.in,
9195         lib/Makefile.in and configure.  Update README.
9196
9197 1991-04-05  David J. MacKenzie  <djm@gnu.org>
9198
9199         * Version 2.2.
9200
9201 1991-03-15  David J. MacKenzie  <djm@gnu.org>
9202
9203         * xargs.c (main): Always run the command if some args are left over.
9204         Rename some variables.
9205
9206 1991-01-18  David J. MacKenzie  <djm@gnu.org>
9207
9208         * bigram.c, code.c, locate.c: Use LIMITS_MISSING, not
9209         _POSIX_SOURCE, to decide whether to include limits.h.
9210
9211         * parser.c, pred.c, listfile.c: Use POSIX, not _POSIX_SOURCE,
9212         to decide whether to declare getpwuid and getgrgid.
9213
9214         * xargs.c: Use POSIX, not _POSIX_SOURCE, to determine whether
9215         to include memory.h.
9216
9217 1991-01-12  David J. MacKenzie  <djm@gnu.org>
9218
9219         * defs.h, find.c, parser.c, pred.c: Remove -permmask option.
9220
9221 1991-01-10  David J. MacKenzie  <djm@gnu.org>
9222
9223         * wait.h: Include sys/types.h to get pid_t.
9224
9225         * xargs.c [USG && !STDC_HEADERS]: Only include memory.h if not
9226         _POSIX_SOURCE.
9227
9228 1991-01-01  David J. MacKenzie  <djm@gnu.org>
9229
9230         * Version 2.1.
9231
9232 1990-12-26  David J. MacKenzie  <djm@gnu.org>
9233
9234         * locate.c, bigram.c, code.c: Attempt to get max. path length
9235         on more kinds of systems, incl. POSIX.
9236
9237         * pred.c, listfile.c, xargs.c: Get some decls from unistd.h,
9238         if available.
9239
9240         * find.c, defs.h: Make `cur_day_start' a time_t, not long.
9241
9242 1990-12-21  David J. MacKenzie  <djm@gnu.org>
9243
9244         * defs.h, parser.c: Remove unused field from `struct exec_t'.
9245
9246         * xargs.c: Add +no-run-if-empty option to cause the command to
9247         not be run if the input is empty.
9248
9249         * defs.h (struct exec_t): Change the array of offsets into an
9250         array of `struct path_arg'.
9251         * parser.c (insert_exec_ok): Fill in new fields, to allow "{}"
9252         to be substituted (multiple times) anywhere in an arg to -exec
9253         or -ok.
9254         * pred.c (pred_exec): Add code to substitute "{}" within args.
9255         (pred_ok): After prompting, just run pred_exec.
9256
9257 1990-12-20  David J. MacKenzie  <djm@gnu.org>
9258
9259         * fstype.c (filesystem_type) [FS_MNTENT]: Allow for optional
9260         "0x" at front of "dev=" mount option, which amd puts there but
9261         Sun automounter doesn't.
9262
9263 1990-12-15  David J. MacKenzie  <djm@gnu.org>
9264
9265         * find.c (main), util.c (usage): Make directory args optional,
9266         defaulting to ".".
9267
9268 1990-12-15  David J. MacKenzie  <djm@gnu.org>
9269
9270         * listfile.c: Define major and minor if not defined (as in POSIX).
9271
9272 1990-12-03  David J. MacKenzie  <djm@gnu.org>
9273
9274         * find.c, fstype.c, parser.c, pred.c, util.c: Flush stdout before
9275         writing to stderr, in case they have been redirected to the
9276         same file descriptor.
9277
9278         * pred.c (launch): Use POSIX wait macros from wait.h.
9279
9280         * xargs.c (print_xargs): Read from tty_stream, not stdin.
9281
9282 1990-11-20  David J. MacKenzie  <djm@gnu.org>
9283
9284         * Version 2.0.
9285
9286         * fstype.c [FS_USG_STATFS]: New code.
9287         [FS_STATFS]: For symlinks, statfs the directory the link is in
9288         instead of the link.
9289         * Various files: Conditionalize some declarations on
9290         STDC_HEADERS or _POSIX_SOURCE.
9291
9292 1990-11-16  David J. MacKenzie  <djm@gnu.org>
9293
9294         * modetype.h: New file.
9295         parser.c, pred.c: Use it.
9296
9297 1990-11-15  David J. MacKenzie  <djm@gnu.org>
9298
9299         * xmalloc.c: New file from fileutils.
9300
9301         * fstype.c (fstype_to_string): Add case for MFS.
9302         (filesystem_type): Take a pathname as a second arg.
9303         [FS_STATFS] return "unknown" instead of exiting if statfs
9304         fails because of ENOENT.
9305         * pred.c (pred_fstype): Pass the pathname.  Set current_dev.
9306         * find.c (process_path): Make root_dev local again.
9307
9308 1990-11-12  David J. MacKenzie  <djm@gnu.org>
9309
9310         * pred.c (pred_fstype): Free old fs type.
9311
9312         * fstype.c, pred.c (pred_fstype), parser.c (parse_fstype):
9313         Reread the file system type info. every time a filesystem
9314         mount point is crossed, to allow for automounting.
9315
9316         * xstrdup.c: New file from fileutils.
9317
9318         * find.c (process_path): Rename root_dev to current_dev and
9319         make it global, for -fstype.
9320
9321         * wait.h: New file taken from xargs.c.
9322
9323         * xargs.c: Make limits.h vs. sys/param.h conditional on
9324         LIMITS_MISSING instead of USG, to accomodate SVR2.
9325
9326 1990-11-08  David J. MacKenzie  <djm@gnu.org>
9327
9328         * parser.c, pred.c, listfile.c: If not _POSIX_SOURCE, declare
9329         getpwuid and getgrgid.  Use them.
9330
9331         * listfile.c: If not _POSIX_SOURCE, define S_ISDIR and
9332         S_ISBLK.  Use them.
9333
9334         * find.c: Use S_ISDIR instead of S_IFDIR, and define if not
9335         _POSIX_SOURCE.
9336
9337         * Makefile: Define AR and RANLIB and pass to child makes.
9338         lib/Makefile: Use them.
9339
9340         * xargs.c (WIFSIGNALED): Redefine so it works.
9341
9342 1990-11-05  David J. MacKenzie  <djm@gnu.org>
9343
9344         * find.c (process_path): For -xdev, process filesystem
9345         mountpoints (but don't descend them), instead of skipping them
9346         entirely.
9347
9348         * find.c, parser.c, defs.h: Add -follow predicate.
9349
9350         * xargs.c: Change ifdefs to support STDC POSIX systems.
9351
9352 1990-11-03  David J. MacKenzie  <djm@gnu.org>
9353
9354         * xargs.c (do_exec): Child process exits with status 255, not
9355         127, if command can't be run.
9356
9357 1990-11-02  David J. MacKenzie  <djm@gnu.org>
9358
9359         * xargs.c: Exit with status 127 if running commmand fails, as
9360         required by POSIX.
9361
9362         * fstype.c: Support -fstype for Ultrix (-DFS_GETMNT).
9363         Sun/BSD code is now -DFS_MNTENT.
9364
9365 1990-11-01  David J. MacKenzie  <djm@gnu.org>
9366
9367         * Reorganize into subdirectories and add xargs.  Rewrite Makefiles.
9368
9369         * find.c (process_path, main): Allow a maxdepth of 0, meaning
9370         only process command line args.
9371
9372         * parser.c, pred.c: Add -print0 predicate.
9373
9374         * xargs.c: Add -0 option and long options.  Move standard
9375         library functions into separate files.  Use error instead of
9376         fatal and fprintf/perror.  Use POSIX macros for examining exit
9377         status from wait.
9378         (read_string): New function.
9379
9380 1990-09-21  David J. MacKenzie  <djm@gnu.org>
9381
9382         * find.c (process_path): Take DEPTH as an arg instead of ROOT,
9383         and change callers.
9384
9385 1990-09-20  David J. MacKenzie  <djm@gnu.org>
9386
9387         * parser.c (parse_maxdepth): New function.
9388         * find.c (process_path): If -maxdepth was given, don't go
9389         more than that many levels deep.
9390         * defs.h: Declare maxdepth.
9391
9392 1990-09-12  David J. MacKenzie  <djm@gnu.org>
9393
9394         * parser.c: Add -not as synonym for !.
9395
9396 1990-08-26  Jim Kingdon  <kingdon@pogo.ai.mit.edu>
9397
9398         * Makefile (TAGS): New target.
9399
9400 1990-08-12  David J. MacKenzie  <djm@gnu.org>
9401
9402         * xargs.c (main): Tell getopt to not permute.
9403
9404 1990-08-04  David J. MacKenzie  <djm@gnu.org>
9405
9406         * parser.c (parse_perm), pred.c (pred_perm): Always compare
9407         bits 07777.
9408
9409         * locate.c, Makefile: Rename 'fastfind' program to 'locate',
9410         following comment in POSIX.2 draft 10 rationale for find.
9411
9412 1990-07-25  David J. MacKenzie  <djm@gnu.org>
9413
9414         * listfile.c (getuser, getgroup): Make uid and gid unsigned
9415         short, not int.
9416
9417 1990-07-16  David J. MacKenzie  <djm@gnu.org>
9418
9419         * defs.h: Don't declare fprintf and printf, in case they have
9420         prototypes in stdio.h (important for functions that use stdarg).
9421
9422 1990-07-15  David J. MacKenzie  <djm@gnu.org>
9423
9424         * parser.c (parse_and): New function, for compatibility.
9425
9426 1990-07-04  David J. MacKenzie  <djm@gnu.org>
9427
9428         * find.c (main): Only enclose expressions that produce no side
9429         effects within `( ... )'.
9430
9431 1990-07-03  David J. MacKenzie  <djm@gnu.org>
9432
9433         * parser.c (strspn): Stop when end of string reached.
9434
9435         * Version 1.2.
9436
9437         * Move version number from Makefile to new file version.c.
9438         * parser.c: Recognize new -version predicate.
9439
9440         * find.c (main): If no predicates that produce output are
9441         given, default to -print if the entire expression is true, not
9442         just the last part of an alternation.
9443         * Print the names of predicates with invalid arguments.
9444
9445 1990-07-02  David J. MacKenzie  <djm@gnu.org>
9446
9447         * pred.c: Don't check for invalid comparison types in numeric
9448         predicate functions.
9449
9450 1990-06-28  David J. MacKenzie  <djm@gnu.org>
9451
9452         * parser.c (parse_regex): Set fastmap and translate before
9453         compiling regex.
9454
9455 1990-06-25  David J. MacKenzie  <djm@gnu.org>
9456
9457         * fastfind.c (fastfind): Initialize count to 0.
9458
9459         * lib/updatedb.sh: Only do regex comparison on directories,
9460         for speed.
9461
9462         * listfile.c (list_file): Truncate user and group name to 8 chars.
9463
9464 1990-06-24  David J. MacKenzie  <djm@gnu.org>
9465
9466         * Version 1.1.
9467
9468         * Makefile [DISTFILES]: Add COPYING.
9469
9470 1990-06-22  David J. MacKenzie  <djm@gnu.org>
9471
9472         * Version 1.0.
9473
9474 1990-06-19  David J. MacKenzie  <djm@gnu.org>
9475
9476         * lib/updatedb.sh: Prune entries that match PRUNEREGEX.
9477         Split up finding files from computing bigrams.
9478         Use redirection instead of nonportable grep -s to detect sort
9479         failure.  Optionally search network filesystems as well as
9480         local ones.
9481
9482         * pred.c (pred_regex): Match against full pathname instead of
9483         just last element.
9484         * util.c (basename): Return "/", not "", if given "/".
9485
9486         * find.c (process_path): Fix error in handling "/" directory.
9487
9488 1990-06-18  David J. MacKenzie  <djm@gnu.org>
9489
9490         * parser.c [STRSPN_MISSING] (strspn): New function.
9491
9492 1990-06-17  David J. MacKenzie  <djm@gnu.org>
9493
9494         * listfile.c: New file.
9495         * parser.c (parse_ls): New function.
9496         * pred.c (pred_ls): New function.
9497
9498         * find.c (main): Remove interface to fastfind, to prevent
9499         conflict with POSIX syntax.
9500         * util.c (usage): Remove fastfind syntax from message.
9501         * fastfind.c (main): New function.
9502         * Makefile: Make fastfind a separate program.
9503
9504         * find.c (main): Print correct message if a predicate arg is
9505         missing.
9506
9507         * parser.c (insert_exec_ok): Make args that start with a ';' but
9508         contain other characters not terminate the command.
9509
9510 1990-06-15  David J. MacKenzie  <djm@gnu.org>
9511
9512         * fstype.c: If MOUNTED isn't defined but MNT_MNTTAB is, use it
9513         instead.  True for HP/UX, at least.
9514
9515 1990-06-14  David J. MacKenzie  <djm@gnu.org>
9516
9517         * savedir.c: New file; now find won't run out of file
9518         descriptors in deep trees.
9519         * find.c (process_path): Use savedir.
9520
9521 1990-06-09  David J. MacKenzie  <djm@gnu.org>
9522
9523         * parser.c (parse_permmask): Allow symbolic mode masks.
9524         (parse_perm): Free 'struct change' when done with it.
9525         (get_oct): Function removed.
9526
9527         * find.c (process_path): Allow arbitrarily-long filenames.
9528         More efficient string copying.  Initialize perm_mask to 07777
9529         instead of -1.
9530
9531 1990-06-07  David J. MacKenzie  <djm@gnu.org>
9532
9533         * Makefile, find.c: Use DIRENT to control whether <dirent.h>
9534         is used.
9535
9536 1990-05-31  David J. MacKenzie  <djm@gnu.org>
9537
9538         * parser.c (parse_regex): New function.
9539         * pred.c (pred_regex): New function.
9540
9541         * fstype.c (read_mtab): If mtab entry has a "dev=" option
9542         (like in SunOS 4.1), use it, so there is no need to stat the
9543         special file later on.
9544         (xatoi, strstr): New functions.
9545
9546 1990-05-21  David J. MacKenzie  <djm@gnu.org>
9547
9548         * lib/updatedb.sh: Put BINDIR in PATH.
9549
9550         * fstype.c: Do nothing if MNTENT_MISSING is defined.
9551
9552         * fstype.c: New file.
9553         * parser.c (parse_fstype): New function.
9554         * pred.c (pred_fstype): New function.
9555
9556         * parser.c (parse_newer): Failure to stat -newer file is a
9557         fatal error.
9558
9559         * pred.c (pred_ok): Flush output before reading.  Use getchar
9560         instead of scanf.
9561
9562         * pred.c (pred_prune): Return false if -depth given.
9563         * find.c: Apply the predicates to the dir when -depth and
9564         -prune are given.
9565
9566 1990-05-20  David J. MacKenzie  <djm@gnu.org>
9567
9568         * pred.c (pred_prune): Set new global var `stop_at_current_level'.
9569         * find.c (process_path): Test and reset it.
9570
9571 1990-05-18  David J. MacKenzie  <djm@gnu.org>
9572
9573         * modechange.c, modechange.h: New files.
9574         * parser.c (parse_perm): Use mode_compile and mode_adjust to
9575         parse arg, to allow symbolic mode for POSIX.
9576
9577 1990-05-17  David J. MacKenzie  <djm@gnu.org>
9578
9579         * parser.c (get_oct): Don't consider an empty string a valid number.
9580
9581         * parser.c (parse_perm): If arg starts with '-', set flag bit
9582         for special comparison (POSIX).
9583         * pred.c (pred_perm): If flag bit set, compare s[ug]id &
9584         sticky bits as well, and return true if the given perms are
9585         set, ignoring other bits.
9586
9587         * find.c: New global var `exit_status'.  Use it.  (POSIX)
9588         * parser.c: Set `exit_status' if lstat on -newer file fails.
9589
9590         * fastfind.c: New file.
9591         * find.c (main): Call fastfind if given only 1 arg.
9592         * util.c (usage): Update message.
9593         * lib/{Makefile,updatedb.sh,bigram.c,code.c}: New files.
9594         * Makefile: Add 'all' and 'install' targets.
9595
9596 1990-05-16  David J. MacKenzie  <djm@gnu.org>
9597
9598         * parser.c (parse_nogroup, parse_nouser): Implement.
9599         * pred.c (pred_nogroup, pred_nouser): Implement.
9600
9601 1990-05-14  David J. MacKenzie  <djm@gnu.org>
9602
9603         * find.c: Add variable `stay_on_filesystem' for -xdev.
9604         (process_path): Take an arg determining whether this call is
9605         the root of a tree.  Use lstat instead of stat.  If
9606         stay_on_filesystem, don't process a dir on a different
9607         filesystem.
9608
9609         * parser.c (parse_newer): Use lstat instead of stat.  Is this right?
9610         (parse_xdev): Set stay_on_filesystem.
9611
9612         * parser.c: Add dummy parse_nogroup, parse_nouser,
9613         parse_prune, and parse_xdev; to be written later.
9614         * pred.c: Add dummy pred_nogroup, pred_nouser, pred_prune.
9615
9616         * find.c: Support System V directory library/headers.
9617
9618         * find.c (process_path): Don't continue with a file that stat
9619         fails on.
9620
9621         * defs.h, parser.c, pred.c: Change 'u_long' and 'u_short' to
9622         'unsigned long' and 'unsigned short'.
9623         * find.c, defs.h: Remove 'convert_glob' variable.
9624         * parser.c (parse_fullregex): Function removed.
9625         (parse_name): Remove regular expression code.
9626         (parse_type): Recognize sockets.
9627         Add code to check for missing arguments to many parse_* functions.
9628         * pred.c (pred_name): Use glob_match instead of regex.
9629
9630 1990-05-13  David J. MacKenzie  <djm@gnu.org>
9631
9632         * Replace fprintf, simple_error, and mem_error with error and
9633         usage.
9634
9635         * Fix string header includes for USG.
9636
9637 1990-03-27  David J. MacKenzie  <djm@gnu.org>
9638
9639         * defs.h: Change some #defines to enums.
9640
9641 1990-03-25  David J. MacKenzie  <djm@gnu.org>
9642
9643         * find.c (main): Don't take basename of argv[0].
9644
9645         * util.c (xmalloc): New function.
9646         * find.c, parser.c, utils.c: Use xmalloc instead of malloc.
9647
9648         * pred.c: Remove emulation of regex for BSD and use GNU
9649         library version in regcmp.c instead.
9650         * parser.c: Remove emulation of regcmp for BSD and use GNU
9651         library version in regcmp.c instead.
9652         * Makefile: Link with regex.o and regcmp.o.
9653         Add a DISTFILES macro and dist target.
9654
9655         * Indent source code.  Move RCS logs to this file.
9656
9657 1990-03-21  David J. MacKenzie  <djm@gnu.org>
9658
9659         * xargs.c: Indent.  Comment and rename some global variables.
9660         (main): Use getopt to parse options.  Open new global var
9661         `tty_stream' to /dev/tty if querying requested.
9662         (print_args): Read response from tty_stream, not stdin.
9663         (xmalloc): New function.
9664         Global: Use xmalloc instead of malloc.
9665         (usage): Revise message.
9666
9667 1987-02-22  Eric B. Decker <cire@soe.ucsc.edu>
9668
9669         * pred.c: added guts to pred_size
9670
9671 1987-02-22  Eric B. Decker <cire@soe.ucsc.edu>
9672
9673         * pred.c: added guts to perm and permmask.
9674
9675 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9676
9677         * pred.c: made pred_name only look at the last component of
9678         the path.
9679
9680 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9681
9682         * pred.c: added guts to name.  useds regex and regcmp to do
9683         regular expression handling.
9684
9685 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9686
9687         * pred.c: added predicate newer
9688
9689 1987-02-20  Eric B. Decker <cire@soe.ucsc.edu>
9690
9691         * pred.c: added guts to pred_ok
9692
9693 1987-02-19  Eric B. Decker <cire@soe.ucsc.edu>
9694
9695         * pred.c: finished exec.
9696
9697 1987-02-22  Eric B. Decker <cire@soe.ucsc.edu>
9698
9699         * parser.c: added guts to parse_size
9700
9701 1987-02-22  Eric B. Decker <cire@soe.ucsc.edu>
9702
9703         * parser.c: added guts of perm and permmask.  added getoct
9704         routine for perm and permmask
9705
9706 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9707
9708         * parser.c: added -fre, -fullregex predicate to turn off
9709         globbing conversion
9710
9711 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9712
9713         * parser.c: reworked name so the regexpr pattern includes $ at
9714         the end to force globbing to work correctly.  End of the
9715         pattern refers to the end of the filename.
9716
9717 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9718
9719         * parser.c: added guts to name.  uses a conversion from
9720         globbing to regexp format.  uses regex and regcmp to actually
9721         to the comparison.
9722
9723 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9724
9725         * parser.c: added predicate newer
9726
9727 1987-02-20  Eric B. Decker <cire@soe.ucsc.edu>
9728
9729         * parser.c: added ok guts.  consolidated exec and ok to using
9730         insert_exec_ok
9731
9732 1987-02-19  Eric B. Decker <cire@soe.ucsc.edu>
9733
9734         * parser.c: minor bug in -fulldays predicate parser.  It
9735         should have set the flag full_days to true.
9736
9737 1987-02-22  Eric B. Decker <cire@soe.ucsc.edu>
9738
9739         * find.c: changed where we are setting perm_mask to -1.  need
9740         to make sure that this happens before every apply_predicate.
9741
9742 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9743
9744         * find.c: added error checking for no paths.  better error
9745         message if illegal ordering.
9746
9747 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9748
9749         * find.c: added global convert_glob
9750
9751 1987-02-22  Eric B. Decker <cire@soe.ucsc.edu>
9752
9753         * defs.h: added definition of BLKSIZE for size
9754
9755 1987-02-21  Eric B. Decker <cire@soe.ucsc.edu>
9756
9757         * defs.h: added global convert_glob for name
9758
9759         -----
9760
9761         Copyright (C) 1987, 1990, 1991, 1992, 1993, 1994, 1996, 1997,
9762         1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008,
9763         2009, 2010 Free Software Foundation, Inc.
9764
9765         Copying and distribution of this file, with or without
9766         modification, are permitted provided the copyright notice
9767         and this notice are preserved.