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