1 2010-04-11 James Youngman <jay@gnu.org>
3 Fix Savannah bug #29511: fails to build on kfreebsd-*
4 * lib/fdleak.c (get_max_fd): Don't use RLIM_SAVED_MAX or
5 RLIM_SAVED_CUR. Not only are they non-portable, they aren't
7 * NEWS: Mention this bugfix.
9 2010-04-11 James Youngman <jay@gnu.org>
11 Remove some unused or dead code.
12 * find/util.c (hook_fstatat): This has been disabled and unused
13 for a long time, delete it.
14 * find/find.c (process_dir): Remove some unused debug code.
15 * find/tree.c (predlist_insert): Remove some dead code.
16 * lib/fdleak.c (complain_about_leaky_fds): Remove some unused
19 2010-04-13 James Youngman <jay@gnu.org>
21 * .x-sc_prohibit_empty_lines_at_EOF: New file; exceptions for the
22 sc_prohibit_empty_lines_at_EOF syntax check.
24 2010-04-11 James Youngman <jay@gnu.org>
26 Add a test case for Savannah bug 27563 (-L breaks -execdir).
27 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
28 find.gnu/sv-bug-27563-execdir.exp and
29 find.posix/sv-bug-27563-exec.exp.
30 (EXTRA_DIST_XO): Add find.gnu/sv-bug-27563-execdir.xo and
31 find.posix/sv-bug-27563-exec.xo.
32 * find/testsuite/find.gnu/sv-bug-27563-execdir.exp: New test.
33 * find/testsuite/find.posix/sv-bug-27563-exec.exp: New test.
34 * find/testsuite/find.gnu/sv-bug-27563-execdir.xo: Expected output.
35 * find/testsuite/find.posix/sv-bug-27563-exec.xo: Expected output.
37 2010-04-11 James Youngman <jay@gnu.org>
39 Fix Savannah bug #27563, -L breaks -execdir.
40 * find/pred.c (initialise_wd_for_exec): New function, factoring
41 out part of the body of record_exec_dir.
42 (record_exec_dir): If state.rel_pathname contains a /, extract the
43 directory part and initialise execp->wd_for_exec to point at that
45 (impl_pred_exec): Rename new_impl_pred_exec to impl_pred_exec.
46 Drop the prefix and pfxlen parameters. Compute the base name of
47 the target and pass that to the bc_push_arg function instead of
48 state.rel_pathname. Deal with state.rel_pathname being an
49 absolute path (e.g. find / -execdir...). Introduce a new
50 variable, result, allowing us to free the buffer used for the base
51 name in the return path.
52 (pred_exec): Don't pass the prefix and the prefix length any more.
53 (pred_execdir): Likewise.
55 (pred_okdir): Likewise.
57 2010-04-10 James Youngman <jay@gnu.org>
59 Fix Savannah bug #19593, -execdir .... {} + has suboptimal performance
60 * find/ftsfind.c (consider_visiting): Don't call
61 complete_pending_execdirs for every file we visit.
62 (find): Instead, call complete_pending_execdirs every time we
63 see a file which isn't at the same nesting level as the previous
64 file we saw. This is an improvement but not optimal (since
65 descending into a subdirectory will cause us to issue an exec
66 before we've finished with the current directory).
67 * NEWS: Mention this change.
69 Exec predicates now store which directory they want to run in.
70 * lib/dircallback.c (run_in_dirfd): New name for old run_in_dir
72 (run_in_dir): Like the old function of the same name, but now
73 takes an argument const struct saved_cwd *.
74 * lib/dircallback.h: Update declarations of run_in_dirfd and
76 * find/util.c: Include dircallback.h, xalloc.h, save-cwd.h.
77 (do_complete_pending_execdirs): Remove dir_fd parameter, since the
78 per-predicate data structures now indicate what directory they
79 need to be run in. Instead of calling bc_do_exec directly, use a
80 callback 'exec_cb' that uses run_in_dir (which now takes a
81 saved_cwd* parameter instead of a file descriptor).
82 (do_exec): Called by do_complete_pending_execdirs, and simply uses
83 run_in_dir to call exec_cb, restoring the working directory
85 (record_initial_cwd): New function, initialises the global
87 (cleanup_initial_cwd): New function, cleans up the global variable
89 (cleanup): Call cleanup_initial_cwd.
90 (get_start_dirfd): Remove.
91 (is_exec_in_local_dir): New function; true for predicates -execdir
93 * find/pred.c: Include cloexec.h and save-cwd.h.
94 (record_exec_dir): New function, sets the value of
95 execp->wd_for_exec if needed.
96 (new_impl_pred_exec): Remove the obsolete dir_fd parameter. Call
98 (pred_exec): Don't pass the dir_fd parameter.
99 (pred_execdir): Likewise.
101 (pred_okdir): Likewise.
102 (can_access): Call run_in_dirfd rather than run_in_dir (the
103 function was renamed).
104 (prep_child_for_exec): Remove dir_fd parameter; don't fchdir to
105 that. Call restore_cwd instead (passing a saved_cwd* parameter
106 which replaced dir_fd).
107 (launch): Remove references to execp->use_current_dir.
108 (launch): Change references to execp->dir_fd to execp->wd_for_exec.
109 * find/parser.c: Correct indentiation of declaration of
110 insert_exec_ok and remove the obsolete dir_fd parameter.
111 (parse_exec): Don't pass the dir_fd parameter to insert_exec_ok.
112 (parse_execdir): Likewise.
113 (parse_ok): Likewise.
114 (parse_okdir): Likewise.
115 (insert_exec_ok): Remove obsolete dir_fd paramter. Initialise
116 execp->wd_for_exec, either to NULL (for -*dir) or to the
118 * find/ftsfind.c: Remove get_current_dirfd. Remove
119 complete_execdirs_cb.
120 (consider_visiting): Call complete_pending_execdirs directly.
121 (main): Call record_initial_cwd to record the initial working
122 directory, early on. Don't initialise starting_dir or
123 starting_desc, they have been removed.
124 * find/finddata.c: Include save-cwd.h. Remove starting_dir and
125 starting_desc. Add new global variable initial_wd. It is a struct
126 saved_wd* and represents find's initial working directory.
127 * find/find.c: Include save-cwd.h.
128 (main): Call record_initial_cwd in order to initialise the
129 global variable initial_wd Don't set starting_desc and
130 starting_dir, since those variables have been removed.
131 (safely_chdir): Don't pass an fd to complete_pending_execdirs.
132 (chdir_back): Remove the safety check (since we are using fchdir
133 and in any case no longer have all the data that the existing
134 wd_sanity_check function wants).
135 (do_process_top_dir): Don't pass an fd to
136 complete_pending_execdirs.
137 (process_dir): Likewise.
138 * find/defs.h (struct exec_val): Remove use_current_dir and
139 dir_fd. Replace with wd_for_exec, which is a struct saved_wd*.
140 (get_start_dirfd): Remove prototype.
141 (get_current_dirfd): Remove prototype.
142 (complete_pending_execdirs): No longer takes dir_fd parameter.
143 (record_initial_cwd): Add prototype.
144 (is_exec_in_local_dir): Add prototype.
146 (initial_wd): Add declaration. It is a struct saved_wd* and
147 represents find's initial working directory.
148 (starting_dir): Remove declaration of global variable.
149 (starting_desc): Remove declaration of global variable.
150 * import-gnulib.config (modules): Import module save-cwd.
152 2010-04-10 James Youngman <jay@gnu.org>
154 Add a test which checks $CWD for find -execdir {} +/;
155 * find/testsuite/find.gnu/execdir-multiple.exp: New test; verifies
156 that for -execdir +, all the execs occur with the correct working
158 * find/testsuite/find.gnu/execdir-multiple.xo: Expected output for
160 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add the new test.
161 (EXTRA_DIST_XO): Add the expected output file.
162 * find/testsuite/config/unix.exp (mkdir): Create proc "mkdir"
163 which creates a directory.
164 * find/testsuite/find.gnu/execdir-pwd1.exp: New test.
165 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
168 2010-04-11 James Youngman <jay@gnu.org>
170 Fix syntax checks problems for check sc_unmarked_diagnostics.
171 * find/tree.c (get_pred_cost): Clarify an error message and mark
174 Fix false positives for syntax check sc_prohibit_test_minus_ao.
175 * .x-sc_prohibit_test_minus_ao: Add all the DejaGnu scripts to the
176 list of exceptions to the 'test C1 -a C2' syntax check, since they
177 are not actually shell scripts.
179 Remove trailing blank lines.
180 * .x-sc_prohibit_empty_lines_at_EOF: Add list of exceptions to the
181 no-blank-lines-at-EOF syntax check.
182 * doc/regexprops.texi: Remove empty lines at the end of the file.
183 * find/finddata.c: Likewise.
184 * find/fstype.c: Likewise.
185 * find/testsuite/excuses.txt: Likewise.
186 * find/testsuite/find.gnu/access.exp: Likewise.
187 * find/testsuite/find.gnu/exec-one-rtn-fail.exp: Likewise.
188 * find/testsuite/find.gnu/posix-perminvalid.exp: Likewise.
189 * find/testsuite/find.gnu/samefile-missing.exp: Likewise.
190 * find/testsuite/find.gnu/samefile-p-brokenlink.exp: Likewise.
191 * find/testsuite/find.gnu/sv-bug-17490.exp: Likewise.
192 * find/testsuite/find.gnu/sv-bug-18222.exp: Likewise.
193 * find/testsuite/find.posix/bracket-depth.exp: Likewise.
194 * find/testsuite/find.posix/empty-parens.exp: Likewise.
195 * find/testsuite/find.posix/files-not-expressions1.exp: Likewise.
196 * find/testsuite/find.posix/files-not-expressions2.exp: Likewise.
197 * find/testsuite/find.posix/files-not-expressions3.exp: Likewise.
198 * find/testsuite/find.posix/group-empty.exp: Likewise.
199 * find/testsuite/find.posix/user-empty.exp: Likewise.
200 * find/testsuite/find.posix/user-missing.exp: Likewise.
201 * lib/extendbuf.c: Likewise.
202 * lib/fdleak.c: Likewise.
203 * lib/fdleak.h: Likewise.
204 * lib/findutils-version.h: Likewise.
205 * lib/gnulib-version.h: Likewise.
206 * lib/printquoted.c: Likewise.
207 * lib/regextype.c: Likewise.
208 * lib/safe-atoi.c: Likewise.
209 * locate/testsuite/config/unix.exp: Likewise.
210 * locate/testsuite/locate.gnu/exists1.exp: Likewise.
211 * locate/testsuite/locate.gnu/exists2.exp: Likewise.
212 * locate/testsuite/locate.gnu/exists3.exp: Likewise.
213 * locate/testsuite/locate.gnu/ignore_case1.exp: Likewise.
214 * locate/testsuite/locate.gnu/ignore_case2.exp: Likewise.
215 * locate/testsuite/locate.gnu/ignore_case3.exp: Likewise.
216 * locate/testsuite/locate.gnu/notexists1.exp: Likewise.
217 * locate/testsuite/locate.gnu/notexists2.exp: Likewise.
218 * locate/testsuite/locate.gnu/notexists3.exp: Likewise.
219 * locate/testsuite/locate.gnu/sv-bug-14535.exp: Likewise.
220 * m4/Makefile.am: Likewise.
221 * m4/nullsort.m4: Likewise.
222 * xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp: Likewise.
223 * xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp: Likewise.
225 After-the-fact change to NEWS for 4.5.8: fixed bug 27221.
226 * NEWS: Mention that release 4.5.8 also fixed bug #27221
227 (symlink_loop check broken by FTS_CWDFD), though the NEWS file in
228 that release omitted to say so.
230 After-the-fact change to NEWS for 4.5.8: fixed bug 27974.
231 * NEWS: Mention that release 4.5.8 also fixed bug #27974 (Use
232 gnulib's xreadlinkat support), though the NEWS file in that
233 release omitted to say so.
235 2010-04-10 James Youngman <jay@gnu.org>
237 * import-gnulib.config (gnulib_version): Update to current gnulib
240 2010-04-09 James Youngman <jay@gnu.org>
242 * find/parser.c (parse_samefile): Use open_cloexec to open the
243 reference file, so that we don't leak a file descriptor.
245 2010-04-09 Roberto Reale <rreale@iol.it> (tiny change)
247 * find/parser.c (parse_samefile): Since collect_arg_stat_info
248 increments *arg_ptr, argv[*arg_ptr] is often NULL. Use filename
249 instead, as that's the variable in which we store the name of our
250 file. The purpose of the fd was only to attempt to keep the inode
251 number stable on systems that don't really have inode numbers, so
252 this change should have no functional effect on POSIX systems.
254 2010-04-08 James Youngman <jay@gnu.org>
256 Adopt the use of the gnulib module readlink.
257 * import-gnulib.config (modules): Add readlink.
259 Adopt the use of the gnulib module isblank.
260 (modules): Add isblank.
262 Adopt the use of the gnulib module faccessat.
263 * import-gnulib.config (modules): Add faccessat.
264 * find/pred.c (struct access_check_args): Delete.
265 (access_callback): Delete.
266 (can_access): Delete.
267 (pred_executable): Use faccessat.
268 (pred_readable): Likewise.
269 (pred_writable): Likewise.
271 Adopt (explicitly) the use of the gnulib module dirent-safer.
272 * import-gnulib.config (modules): Add dirent-safer; we were
273 previously transitively importing this module, but we are now
274 importing it directly.
275 * lib/savedirinfo.c: Include opendir-safer.h.
276 (xsavedir): Call opendir_safer instead of opendir.
278 Adopt the use of the gnulib module d-type.
279 * import-gnulib.config (modules): Import the d-type module.
280 * configure.ac: Remove old struct dirent.d_type detection logic
281 (since we now use the gnulib macro from the d-type module for
283 * find/parser.c (parse_version): Use HAVE_STRUCT_DIRENT_D_TYPE
284 (since the d-ino module still defines it) but remove references to
285 the macro USE_STRUCT_DIRENT_D_TYPE, since it's not defined and not
287 * lib/savedirinfo.c: Use HAVE_STRUCT_DIRENT_D_TYPE but ignore
288 USE_STRUCT_DIRENT_D_TYPE.
289 (xsavedir): Unconditionally initialise
290 internal[result->size].type_info so that we don't have untested
291 code (HAVE_STRUCT_DIRENT_D_TYPE is defined on my system).
294 * configure.ac: Bump the version number to 4.5.9-git.
297 2010-04-07 James Youngman <jay@gnu.org>
299 Prepare to release findutils-4.5.8.
300 * configure.ac: Update version number in AC_INIT.
301 * NEWS: Update version number and release date.
303 Depend on gnulib modules appropriate to features we already use.
304 * import-gnulib.config (modules): Add c-casestr, errno, fdopendir,
305 fflush, getdelim, gettimeofday, locale, modf, perror, snprintf,
306 stat, stdarg, stddef, stdio, stdlib, string, strpbrk, sys_time,
308 Also add comments about other modules we may also want to use
309 which would require other code changes (for example dirent-safer).
310 * find/Makefile.am (LDADD): Add $(LIB_EACCESS) $(LIB_SELINUX)
311 $(MODF_LIBM) which are needed by gnulib modules we now depend on.
313 More stat/xstat cleanup.
314 * find/parser.c (estimate_fstype_success_rate): Change the name of
315 the variable "dir" to "the_root_dir" to emphasise that it doesn't
316 matter that we're calling stat rather than options.xstat.
317 * find/ftsfind.c (symlink_loop): Call options.xstat instead of
318 stat/lstat, because options.xstat takes account of
321 Fix Savannah bug 29460, -printf %Y fails in $CWD-dependent way
322 * find/pred.c (do_fprintf): Use optionl_stat and optionp_stat
323 instead of stat and lstat, because the first two functions are
324 aware of state.cwd_dir_fd.
325 * find/testsuite/find.gnu/printf-nonlocal-symlink.exp: A new test
327 * find/testsuite/find.gnu/printf-nonlocal-symlink.xo: Expected
328 output for this test.
329 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add the new test
331 (EXTRA_DIST_XO): Add the expected-output file.
332 * NEWS: Mention this fix.
334 * lib/strspn.c: Delete this unused file.
336 Update the maintenance manual.
337 * doc/find-maint.texi: Update the maintenance manual to take into
338 account the fact that we uniformly use git rather than CVS. Point
339 out the new version tag format. Mention "make coverage".
340 README-CVS is now called README-hacking. Update the URL for the
343 Eliminate some obsolete code.
344 * locate/locate.c (search_one_database): Remove obsolete code
345 (alternative size for procdata.pathsize).
346 * lib/buildcmd.c (get_line_max): Remove obsolete function.
348 Remove obsolete code from savedirinfo.c.
349 * lib/savedirinfo.c (new_savedirinfo): Rename new_savedirinfo to
351 (old_savedirinfo): Remove obsolete function body.
353 Support extendbuf buffers larger than SIZE_MAX/2.
354 * lib/extendbuf.c (xextendbuf): New function; extends the buffer,
355 but calls xalloc_die on failure. On the the other hand, extendbuf
356 returns NULL on failure.
357 (decide_size): If wanted>SIZE_MAX/2, return wanted. This means
358 that for very large buffers, performance on repeated extension
359 degrades from linear to quadratic (instead of just failing at that
361 * lib/savedirinfo.c (xsavedir): Use xextendbuf rather than
362 extendbuf, now that there is a difference in semantics.
363 * find/fstype.c (get_mounted_filesystems): If extendbuf returns
364 NULL, fail (by returning NULL ourselves).
365 (get_mounted_devices): Likewise.
367 * po/vi.po: Update Vietnamese translation.
368 * NEWS: Mention this change.
370 2010-04-05 James Youngman <jay@gnu.org>
372 Use set_program_name in regexprops.
373 * lib/regexprops.c: Include "progname.h". Update function
374 defintions to have a newline before the function name (to comply
375 with the GNU coding standard). Use set_program_name.
377 2010-04-06 James Youngman <jay@gnu.org>
379 Fix several merge errors.
380 * find/defs.h (struct state): Correct type of
381 already_issued_stat_error_msg from boolean to bool.
382 * find/util.c (report_file_err): Likewise with parameter
384 * find/pred.c: Include "areadlink.h".
385 (do_fprintf): nonfatal_file_error should be
386 nonfatal_target_file_error.
387 (match_lname): Likewise.
389 Update some translations.
390 * po/cs.po: Update Czech translation.
391 * po/nl.po: Update Dutch translation.
392 * po/pl.po: Update Polish translation.
393 * po/ru.po: Update Russian translation.
395 * import-gnulib.config (modules): Use the getopt-gnu module from
396 gnulib rather than the (obsolete) getopt module.
399 * find/find.c: Remove form-feed characters.
400 * find/ftsfind.c: Likewise.
401 * find/parser.c: Likewise.
402 * find/pred.c: Likewise.
403 * find/tree.c: Likewise.
404 * find/util.c: Likewise.
405 * locate/locate.c: Likewise.
406 * xargs/xargs.c: Likewise.
408 2010-04-05 James Youngman <jay@gnu.org>
410 Use bool instead of the previous typedef boolean.
411 * find/defs.h: Don't create typedef "boolean"; use the standard
412 type bool. Update other declarations accordingly.
413 * find/find.c: Update declarations and function definitions to use
415 * find/ftsfind.c: Likewise.
416 * find/parser.c: Likewise.
417 * find/pred.c: Likewise.
418 * find/tree.c: Likewise.
419 * find/util.c: Likewise.
420 * locate/locate.c: Likewise.
421 * xargs/xargs.c: Likewise.
423 Make use of gnulib's areadlinkat.
424 * lib/listfile.c: #include "areadlink.h" but not "dircallback.h",
425 since we no longer need to use get_link_name_at.
426 Don't include xalloc.h, since we don't need it.
427 (get_link_name_at): Delete.
428 (get_link_name_cb): Delete.
429 (get_link_name): Delete.
430 * lib/listfile.h: Remove declaration of get_link_name_at.
431 * find/pred.c (match_lname): Use areadlinkat instead of
434 Use bool instead of the previous typedef boolean.
435 * find/defs.h: Don't create typedef "boolean"; use the standard
436 type bool. Update other declarations accordingly.
437 * find/find.c: Update declarations and function definitions to use
439 * find/ftsfind.c: Likewise.
440 * find/parser.c: Likewise.
441 * find/pred.c: Likewise.
442 * find/tree.c: Likewise.
443 * find/util.c: Likewise.
444 * locate/locate.c: Likewise.
445 * xargs/xargs.c: Likewise.
447 Don't issue an error message twice for the same target file.
448 * find/defs.h (struct state): New member,
449 already_issued_stat_error_msg, used to de-duplicate error
450 messages. If it is true, we already issued an error message for
451 the current target file.
452 Declare fatal_target_file_error, fatal_nontarget_file_error,
453 nonfatal_target_file_error, nonfatal_nontarget_file_error.
454 Between them, they replace fatal_file_error and
455 nonfatal_file_error. The *target_file_error versions are
456 de-duplicated and the nontarget_file_error_versions are not.
457 * find/util.c (nonfatal_nontarget_file_error): Implement.
458 (fatal_nontarget_file_error): Implement.
459 (nonfatal_target_file_error): Implement.
460 (fatal_target_file_error): Implement.
461 (fatal_file_error): Remove.
462 (nonfatal_file_error): Remove.
463 (error_severity): Define error_severity (moved from ftsfind.c)
464 (get_statinfo): Call nonfatal_target_file_error in order to avoid
465 a duplicate message. ALso call error_severity after a different
466 call to error to preserve the constraint that we exit with a
467 nonzero status if we issue a diagnostic.
468 (cleanup): Call nonfatal_nontarget_file_error instead of
470 * find/tree.c (build_expression_tree): Initialise
471 state.already_issued_stat_error_msg.
472 * find/find.c (main): Initialise state.already_issued_stat_error_msg.
473 (wd_sanity_check): Call fatal_target_file_error instead of
475 (chdir_back): Call fatal_nontarget_file_error instead of
477 (process_path): Initialise state.already_issued_stat_error_msg.
478 * find/ftsfind.c (consider_visiting): Call
479 nonfatal_target_file_error instead of calling error directly.
480 (find): Call error_severity to ensure exit status is nonzero after
482 (main): Initialise state.already_issued_stat_error_msg.
483 (error_severity): Move to util.c.
484 * find/parser.c (collect_arg_stat_info): Call
485 fatal_target_file_error instead of fatal_file_error.
486 (parse_newerXY): Likewise.
487 (parse_samefile): Likewise.
488 (parse_samefile): Likewise.
489 (open_output_file): Call fatal_nontarget_file_error instead of
491 * find/pred.c (checked_fprintf): Likewise.
492 (checked_print_quoted): Likewise.
493 (checked_fwrite): Likewise.
494 (checked_fflush): Likewise.
495 * find/sharefile.c (entry_free): Likewise.
497 2010-04-04 Martin von Gagern <Martin.vGagern@gmx.net>
499 Fix Savannah bug #27213: avoid failed assertions for
500 non-executable directories.
501 (consider_visiting): Continue (after issuing an error message)
502 even if ent->fts_info == FTS_NS.
503 * find/util.c (get_statinfo): If we cannot stat the file, issue a
504 diagnostic, but continue anyway.
505 * find/ftsfind.c (consider_visiting): Don't assert-fail if
506 ent->fts_info == FTS_NSOK. Don't assert-fail if state.type is
509 2010-04-04 James Youngman <jay@gnu.org>
511 Fix Savannah bug #29435: fd_is_cloexec does not work on Fedora
513 Fix open_cloexec on hosts which ignore O_CLOEXEC (i.e. old kernels).
514 * lib/fdleak.c (o_cloexec_works): New function, detects whether
515 the open flag O_CLOEXEC has any effect.
516 (open_cloexec): Call o_cloexec_works, just once, to find out
517 whether O_CLOEXEC is effective. If not, set the close-on-exec
518 flag on fds by calling set_cloexec_flag.
519 * NEWS: Mention this bugfix.
521 Use bool instead of the previous typedef boolean.
522 * find/defs.h: Don't create typedef "boolean"; use the standard
523 type bool. Update other declarations accordingly.
524 * find/find.c: Update declarations and function definitions to use
526 * find/ftsfind.c: Likewise.
527 * find/parser.c: Likewise.
528 * find/pred.c: Likewise.
529 * find/tree.c: Likewise.
530 * find/util.c: Likewise.
531 * locate/locate.c: Likewise.
532 * xargs/xargs.c: Likewise.
534 2010-04-05 Jim Meyering <meyering@redhat.com>
536 frcode: avoid link failure due to multiple program_name definition
537 * locate/frcode.c: Include "progname.h".
538 (program_name): Remove two declarations.
539 Now the definition comes from gnulib.
541 2010-04-04 James Youngman <jay@gnu.org>
543 Don't return int to represent a boolean value.
544 * find/defs.h: fd_leak_check_is_enabled should return boolean, not
545 int. Likewise following_links and digest_mode.
546 * lib/buildcmd.h: Likewise for bc_args_exceed_testing_limit.
547 Also #include <stdbool.h>.
548 * find/util.c (fd_leak_check_is_enabled): Now returns boolean.
549 * find/util.c (following_links): Likewise.
550 * find/util.c (digest_mode): Likewise.
551 * lib/buildcmd.c (bc_args_exceed_testing_limit): Likewise.
552 * find/find.c (get_current_dirfd): Indent definition correctly.
553 * find/util.c (get_start_dirfd): Likewise.
555 Fix Savannah bug #29435: fd_is_cloexec does not work on Fedora
557 Fix open_cloexec on hosts which ignore O_CLOEXEC (i.e. old kernels).
558 * lib/fdleak.c (o_cloexec_works): New function, detects whether
559 the open flag O_CLOEXEC has any effect.
560 (open_cloexec): Call o_cloexec_works, just once, to find out
561 whether O_CLOEXEC is effective. If not, set the close-on-exec
562 flag on fds by calling set_cloexec_flag.
563 * NEWS: Mention this bugfix.
565 2010-04-03 James Youngman <jay@gnu.org>
568 * configure.ac: Update version number again, to 4.5.8-git.
571 Prepare for release of findutils-4.5.7.
572 * configure.ac: Update version number.
573 * NEWS: Mention the translation changes. Update version number.
575 Accelerate find/testsuite/find.posix/exec-nogaps.exp.
576 * find/testsuite/config/unix.exp (optimisation_levels_to_test):
577 New function, decides which optimisation levels we shuld run find
578 at for the current test. Set $OPTIMISATION_LEVELS to control
580 (find_start): Call optimisation_levels_to_test to determine which
581 optimisation levels to run find at.
582 * find/testsuite/find.posix/exec-nogaps.exp: Run the test only at
583 -O3 (but for both oldfind and ftsfind).
585 Correct the format of copyright statements, and add 2010.
586 * lib/fdleak.h: Correct the format of the copyright statement.
587 * po/vi.po: Likewise.
588 * lib/safe-atoi.h: Likewise.
589 * locate/locate.c: Likewise.
590 * po/ca.po: Likewise.
591 * po/gl.po: Likewise.
592 * po/fi.po: Likewise.
593 * po/it.po: Likewise.
594 * po/findutils.pot: Fill in the boilerplate in the header.
596 Update copyright years.
597 * find/defs.h: Update copyright years.
598 * find/finddata.c: Likewise.
599 * find/sharefile.h: Likewise.
600 * lib/buildcmd.h: Likewise.
601 * lib/dircallback.h: Likewise.
602 * lib/extendbuf.h: Likewise.
603 * lib/findutils-version.h: Likewise.
604 * lib/gnulib-version.h: Likewise.
605 * lib/listfile.h: Likewise.
606 * lib/nextelem.c: Likewise.
607 * lib/nextelem.h: Likewise.
608 * lib/printquoted.h: Likewise.
609 * lib/regextype.h: Likewise.
610 * lib/savedirinfo.h: Likewise.
611 * lib/strspn.c: Likewise.
612 * lib/waitpid.c: Likewise.
613 * locate/locatedb.h: Likewise.
614 * m4/mkinstalldirs.m4: Likewise.
615 * m4/noreturn.m4: Likewise.
616 * build-aux/check-testfiles.sh: Likewise.
617 * build-aux/src-sniff.py: Likewise.
618 * import-gnulib.sh: Likewise.
619 * locate/testsuite/config/unix.exp: Likewise.
620 * locate/updatedb.sh: Likewise.
621 * xargs/testsuite/config/unix.exp: Likewise.
623 Add the update-copyright gnulib module.
624 * import-gnulib.config (maintainer_modules): Separate out the
625 modules primarily useful for maintainer activities. Add
626 'update-copyright' to this.
627 * build-aux/.cvsignore: Ignore update-copyright, since it's
629 * build-aux/.gitignore: Likewise.
631 Ignore generated files for the convenience of non-VPATH users.
632 * lib/.gitignore: Ignore object and archive files.
633 * find/.gitignore: Likewise.
634 * locate/.gitignore: Ignore object files.
636 2010-04-02 James Youngman <jay@gnu.org>
638 Check for accidental modifications to the wrong section of the
640 * cfg.mk (local-checks-to-skip): Remove sc_immutable_news.
641 (old_NEWS_hash): add existing hash (from "make update-NEWS-hash").
643 * cfg.mk: Append the names of checks to skip to
644 local-checks-to-skip rather than inventing 7 new variables.
646 Don't include quote.h/quotearg.h where it is not used.
647 * find/find.c: Don't include "quote.h", it's not used.
648 * find/ftsfind.c: Likewise.
649 * find/parser.c: Likewise.
650 * locate/locate.c: Likewise.
651 * locate/word_io.c: Likewise.
652 * cfg.mk (skip_dunno): Enable check sc_prohibit_quote_without_use.
653 * find/find.c: Don't include "quotearg.h", it's not used.
654 * lib/fdleak.c: Likewise.
656 Use set_program_name() to remember the programs' names.
657 * cfg.mk *skip(defer): Enable sc_program_name. Remove the
658 now-unused variable skip_defer.
659 * find/ftsfind.c: Include "program_name.h".
660 (main): Call set_program_name.
661 * find/find.c: Include "program_name.h".
662 (main): Call set_program_name.
663 * locate/locate.c: Include "program_name.h".
664 (dolocate): Call set_program_name.
665 Remove global variable program_name.
666 * locate/bigram.c: Include "program_name.h".
667 Remove global variable "program_name".
668 (main): Call set_program_name.
669 * locate/frcode.c: Include "program_name.h".
670 (main): Call set_program_name.
671 * xargs/xargs.c (main): Call set_program_name.
672 Include "program_name.h".
673 Remove global variable program_name.
674 * find/finddata.c: Remove global variable program_name.
675 * find/defs.h: No longer need declaration of program_name.
676 * find/util.c: Include "program_name.h".
678 Use named constants for xargs exit codes.
679 * xargs/xargs.c (child_error): Use EXIT_SUCCESS instead of 0.
680 (enum XargsStatusValues): introduce named constants for the
681 various things that cause speicific exit codes.
682 (enum ClientStatusValues): Also introduce named constants for the
684 (get_char_oct_or_hex_escape): Use EXIT_FAILURE instead of 1.
685 (get_input_delimiter): Likewise.
687 (read_line): Likewise.
688 (read_string): Likewise.
689 (print_args): Likewise.
690 (xargs_do_exec): Likewise.
691 (wait_for_proc): Likewise.
692 (wait_for_proc): Use enum XargsStatusValues for exit codes.
693 (parse_num): Use EXIT_FAILURE instead of 1.
695 Avoid using magic numbers as exit statuses.
696 * cfg.mk (skip_defer): Enable sc_prohibit_magic_number_exit.
697 * doc/find-maint.texi (Security): Avoid error (1, ...) in the
699 * find/find.c (main): Use exit status EXIT_FAILURE instead of 1.
700 (wd_sanity_check): Likewise.
701 (safely_chdir_lstat): Likewise.
702 (process_dir): Likewise.
703 * find/fstype.c (must_read_fs_list): Likewise.
704 * find/ftsfind.c (main): Likewise.
706 * find/parser.c (check_option_combinations): Use exit status
707 EXIT_FAILURE instead of 1.
708 (parse_group): Likewise.
709 (parse_help): Use exit status EXIT_SUCCESS instead of 0.
710 (parse_version): Likewise.
711 (fnmatch_sanitycheck): Use exit status EXIT_FAILURE instead of 1.
712 (insert_depthspec): Likewise.
713 (parse_newerXY): Likewise.
714 (non_posix_mode): Likewise.
715 (parse_perm): Likewise.
716 (insert_regex): Likewise.
717 (parse_size): Likewise.
718 (parse_show_control_chars): Likewise.
719 (parse_used): Likewise.
720 (parse_user): Likewise.
721 (parse_context): Likewise.
722 (insert_type): Likewise.
723 (insert_fprintf): Likewise.
724 (make_segment): Likewise.
725 (check_path_safety): Likewise.
726 (new_insert_exec_ok): Likewise.
727 (get_relative_timestamp): Likewise.
728 (parse_time): Likewise.
729 * find/tree.c (get_expr): Use exit status EXIT_FAILURE instead of 1.
730 (scan_rest): Likewise.
731 (get_pred_cost): Likewise.
732 (get_pred_cost): Likewise.
733 (build_expression_tree): Likewise.
734 (get_new_pred_chk_op): Likewise.
735 * find/pred.c (launch): Use exit status EXIT_FAILURE instead of 1.
736 * find/util.c (process_debug_options): Use exit status
737 EXIT_SUCCESS instead of 0.
738 (process_optimisation_option): Use exit status EXIT_FAILURE
740 (set_option_defaults): Likewise.
741 * lib/buildcmd.c (exceeds): Likewise.
742 (bc_do_exec): Likewise.
743 (bc_push_arg): Likewise.
744 * lib/nextelem.c: Remove test code.
745 * lib/safe-atoi.c (safe_atoi): Use exit status EXIT_FAILURE
747 * lib/regextype.c (get_regex_type): Use exit status EXIT_FAILURE
748 instead of 1. Include <stdlib.h>, for EXIT_FAILURE.
749 * locate/locate.c (set_max_db_age): Use exit status EXIT_FAILURE
751 (set_max_db_age): Likewise.
753 (visit_locate02_format): Likewise.
754 (search_one_database): Likewise.
755 (drop_privs): Likewise.
756 * locate/frcode.c (get_seclevel): Use exit status EXIT_FAILURE
760 * locate/code.c (inerr): Use exit status EXIT_FAILURE instead of
763 * locate/word_io.c (getword): Use exit status EXIT_FAILURE instead of 1.
765 Avoid sc_prohibit_stat_st_blocks check, since it is broken.
766 * cfg.mk (skip_broken_checks): Skip sc_prohibit_stat_st_blocks.
768 Enable syntax checker sc_the_the, detecting doubled 'the'.
769 * cfg.mk (false_positives): Enable syntax checker sc_the_the
770 * build-aux/src-sniff.py (checkers): Avoid false positive with
773 Avoid false positives for sc_prohibit_atoi_atof.
774 * find/util.c (set_option_defaults): Avoid false positive with
775 sc_prohibit_atoi_atof.
776 (check_nofollow): Likewise.
779 * lib/fdleak.c (get_proc_max_fd): Use safe_atoi to do string to
780 int conversion, instead of sscanf. Skip '.' and '..'.
781 * cfg.mk (skip_defer): Enable the sc_prohibit_atoi_atof check.
783 * po/POTFILES.in: Remove source files we don't maintain any more.
784 Also remove files which exist but have no translated messages
785 (dircallback.c, listfile.c).
786 * lib/listfile.c: Don't include libintl, since there are no
787 translated messages in this file.
788 * lib/dircallback.c: Likewise.
790 Move safe_atoi out into a separate module.
791 * find/parser.c: Include "safe-atoi.h". Remove the body of safe_atoi.
792 (parse_group): pass options.err_quoting_style to safe_atoi.
793 (insert_depthspec): Likewise.
794 (parse_user): Likewise.
795 * lib/safe-atoi.h: New file.
796 * lib/safe-atoi.c: New file. Add parameter for quoting style (to
797 avoid an external reference to the "options"struct).
798 * lib/Makefile.am (libfind_a_SOURCES): Add safe-atoi.c and
801 Avoid false positives for the sc_prohibit_test_minus_ao syntax check.
802 * doc/find.texi (Updating A Timestamp File): Work around a syntax
803 check designed to prevent the use of "test X -a Y".
804 * find/find.1: Likewise.
806 * find/ftsfind.c: We don't use anything from xalloc.h, so don't
809 Eliminate some unused function result warnings.
810 * lib/unused-result.h: New file, defines function attribute macro
811 __attribute_warn_unused_result__.
812 * lib/Makefile.am (EXTRA_DIST): Add unused-result.h.
813 * find/ftsfind.c (find): Issue a diagnostic if fts_close fails,
814 change return type to bool and return false for this case. Add
815 __warn_unused_result__ attribute.
816 (process_all_startpoints): Likewise (except no need for second
818 (main): If process_all_startpoints failed, don't do the cleanup
819 operations because we don't know what subdirectory we're in.
821 * find/util.c (fd_leak_check_is_enabled): Avoid implicit
822 pointer-to-int conversion.
823 * lib/buildcmd.c: #include <stdlib.h> for declaration of free.
825 Avoid false positives for the sc_prohibit_test_minus_ao syntax check.
826 * doc/find.texi (Updating A Timestamp File): Work around a syntax
827 check designed to prevent the use of "test X -a Y".
828 * find/find.1: Likewise.
830 * find/ftsfind.c: We don't use anything from xalloc.h, so don't
833 Eliminate some unused function result warnings.
834 * lib/unused-result.h: New file, defines function attribute macro
835 __attribute_warn_unused_result__.
836 * lib/Makefile.am (EXTRA_DIST): Add unused-result.h.
837 * find/ftsfind.c (find): Issue a diagnostic if fts_close fails,
838 change return type to bool and return false for this case. Add
839 __warn_unused_result__ attribute.
840 (process_all_startpoints): Likewise (except no need for second
842 (main): If process_all_startpoints failed, don't do the cleanup
843 operations because we don't know what subdirectory we're in.
845 * find/util.c (fd_leak_check_is_enabled): Avoid implicit
846 pointer-to-int conversion.
847 * lib/buildcmd.c: #include <stdlib.h> for declaration of free.
849 Fix some space-followed-by-tab sequences.
850 * NEWS: Change space-tab sequences to just spaces.
851 * build-aux/check-testfiles.sh (main): Likewise
852 * build-aux/src-sniff.py (checkers): Likewise.
853 * find/Makefile.am: Likewise.
854 * find/testsuite/find.posix/sv-bug-25359.exp: Likewise.
855 * import-gnulib.sh (check_merge_driver): Likewise.
856 * m4/withfts.m4 (FIND_WITH_FTS): Likewise.
857 * cfg.mk (false_positives): Explain why we can't enable the
858 sc_space_tab check (xargs .xo test files).
860 * cfg.mk: Explain that we cannot enable the sc_texinfo_acronym
861 syntax check right now, since the perm.texi file uses
862 @acronym{GNU} but we try to keep that in sync. with coreutils.
864 Mark error messages for translation.
865 * find/parser.c (safe_atoi): Likewise.
866 * find/pred.c (pred_context): Likewise.
867 (do_fprintf): Likewise.
868 * xargs/xargs.c (xargs_do_exec): Translate error message.
869 (xargs_do_exec): Likewise.
870 * lib/buildcmd.c (exceeds): Likewise.
872 Add customisation of the behaviour of "make syntax-check".
873 * cfg.mk: New file; configuration file for the maintainer-makefile
876 * import-gnulib.config (modules): Add maintainer-makefile.
878 Various coding standard fixes.
879 * m4/withfts.m4: Quote the first argument of AC_DEFINE.
880 * lib/regextype.c: Don't use HAVE_CONFIG_H.
881 * doc/find-maint.texi: Remove RCS keywords (they were in an
882 example security vulnerability announcement).
884 Don't define S_IS*; include <sys/stat.h> instead.
885 * lib/modetype.h: Remove (all it does is define S_IS*).
886 * lib/Makefile.am (EXTRA_DIST): Remove modetype.h.
887 * lib/listfile.c: Don't define S_IS* macros.
888 * find/pred.c: Don't include "modetype.h".
889 * find/parser.c: Likewise.
890 * find/ftsfind.c: Likewise.
891 * find/fstype.c: Likewise.
892 * find/find.c: Likewise.
894 * m4/withfts.m4: Quote the first argument of AC_DEFINE.
896 Coding standard fix: "Warning" should be "WARNING".
897 * find/find.c (dirchange_is_fatal): Change "Warning" to "WARNING".
898 * find/ftsfind.c (consider_visiting): Likewise.
899 * find/pred.c (pred_newerXY): Likewise.
900 * find/util.c (get_statinfo): Likewise.
901 (hook_fstatat): Likewise.
902 * locate/word_io.c (decode_value): Likewise.
903 * xargs/xargs.c (main): Change "Warning" to "warning".
904 (read_line): Change "Warning" to "WARNING".
905 (wait_for_proc): Likewise.
907 Remove useless if conditionals before calls to 'free'.
908 * lib/nextelem.c (next_element): Remove useless if-before-free.
909 * lib/buildcmd.c (bc_do_exec): Likewise.
910 * find/find.c (process_dir): Likewise.
912 * import-gnulib.sh (usage): Defeat the simple GPL version check
913 of maint.mk, since it's trying to identify GPL2 licenses. Since
914 the 'rehack' script converts v2 licenses into v3, we get a false
915 positive for v2. So, amusingly, we use the same hack that
916 maint.mk uses to avoid a false positive on itself: spurious
919 Switch from GNU Free Documentation License 1.2 to 1.3.
920 * NEWS: Update GFDL version.
921 * README-hacking: Likewise.
922 * doc/find-maint.texi: Likewise.
923 * lib/regexprops.c: Likewise (though the license being changed is
924 the license for the output).
926 * NEWS: Update copyright years.
928 2010-04-01 James Youngman <jay@gnu.org>
930 Change error (1, ...) to error (EXIT_FAILURE, ...).
931 * find/find.c: Change error (1, ...) to error (EXIT_FAILURE, ...).
932 * find/fstype.c: Likewise.
933 * find/ftsfind.c: Likewise.
934 * find/parser.c: Likewise.
935 * find/pred.c: Likewise.
936 * find/tree.c: Likewise.
937 * find/util.c: Likewise.
938 * locate/code.c: Likewise.
939 * locate/frcode.c: Likewise.
940 * locate/locate.c: Likewise.
941 * locate/word_io.c: Likewise.
942 * xargs/xargs.c: Likewise.
943 * lib/buildcmd.c: Likewise. Also include <stdlib.h>.
944 * lib/regextype.c: Likewise (both).
946 Assume C89 (or C99) C headers. Assume working <ctype.h>.
947 * xargs/xargs.c: Unconditionally include <ctype.h>. Assume
948 isblank(c) is defined. Assume memcpy() has a prototype in
950 * import-gnulib.config (modules): Import gnulib's ctype module.
952 Optimise -fstype NOTUSED to -false at -O2.
953 * find/parser.c: Include mountlist.h.
954 (insert_false): New function, inserts a -false predicate.
955 (parse_false): Use insert_false.
956 (is_used_fs_type): New function, determines if any mounted
957 filesystem is of the named type.
958 (parse_fstype): At optimisation level 2 and above, -fstpe FOO
959 is converted to -false if no mounted filesytem is of type FOO.
960 * find/find.1: Document this optimisation.
961 * doc/find.texi (Optimisation Options): Likewise.
962 * NEWS: Mention this change.
964 Updated copyright years to add 2010.
965 * find/find.c: Add 2010.
966 * find/fstype.c: Add 2010.
967 * find/ftsfind.c: Add 2010.
968 * find/parser.c: Add 2010.
969 * find/pred.c: Add 2010.
970 * find/sharefile.c: Add 2010.
971 * find/testsuite/config/unix.exp: Add 2010.
972 * find/tree.c: Add 2010.
973 * find/util.c: Add 2010.
974 * locate/bigram.c: Add 2010.
975 * locate/frcode.c: Add 2010.
976 * xargs/xargs.c: Add 2010.
978 Coding style fixes: space after function names.
979 * lib/buildcmd.c: Insert a space between function name and open
981 * lib/dircallback.c: Likewise.
982 * lib/extendbuf.c: Likewise.
983 * lib/fdleak.c: Likewise.
984 * lib/findutils-version.c: Likewise.
985 * lib/forcefindlib.c: Likewise.
986 * lib/listfile.c: Likewise.
987 * lib/printquoted.c: Likewise.
988 * lib/qmark.c: Likewise.
989 * lib/regexprops.c: Likewise.
990 * lib/regextype.c: Likewise.
991 * lib/savedirinfo.c: Likewise.
992 * locate/code.c: Likewise.
993 * locate/frcode.c: Likewise.
994 * locate/locate.c: Likewise.
995 * locate/word_io.c: Likewise.
997 2010-03-31 James Youngman <jay@gnu.org>
999 Coding style fixes: space after function names.
1000 * find/util.c: Insert a space between function name and open
1002 * find/ftsfind.c: Likewise.
1003 * find/fstype.c: Likewise.
1004 * find/util.c: Likewise.
1005 * find/tree.c: Likewise.
1006 * find/sharefile.c: Likewise.
1007 * find/pred.c: Likewise.
1008 * find/parser.c: Likewise.
1009 * xargs/xargs.c: Likewise.
1011 Move version number on to 4.5.7-git, so that we can make test
1013 * configure.ac: Update version number.
1015 * Makefile.am (AUTOMAKE_OPTIONS): Return to "gnits" rules.
1017 Mention additional bugfixes.
1018 * NEWS: Mention that Savannah bug #29089 was also fixed in
1021 Prepare for release of findutils-4.5.6b
1022 This release is identical to 4.5.6 apart from the version number
1023 and the fact that it was generated by automake version 1.11.1 in
1024 order to avoid issues with CVE-2009-4029.
1025 * configure.ac: Update version number.
1026 * NEWS: Update version number. Mention that Savannah bug #29089
1027 was also fixed in 4.5.6b.
1028 * Makefile.am: switch to 'gnu' option ('gnits' forbids the 'b'
1031 2010-03-30 James Youngman <jay@gnu.org>
1033 Prepare for release of findutils-4.5.6
1034 * configure.ac: Update version number.
1035 * NEWS: Update version number.
1037 Support O_CREAT in open_cloexec.
1038 * lib/fdleak.c: Include <stdarg.h> and "cloexec.h".
1039 (open_cloexec): Support O_CREAT. Use O_CLOEXEC if it is available.
1040 (O_CLOEXEC): #define to 0 if not already #defined.
1041 * lib/fdleak.h: Update prototype of open_cloexec to allow mode to
1044 * import-gnulib.config (modules): Import modules open (for
1045 PROMOTED_MODE_T) and stdbool (for 'true').
1047 Tolerate the absence of getrusage.
1048 * configure.ac: Check for <sys/resource.h> and the getrusage
1050 * lib/fdleak.c: Don't #include <sys/resource.h> if we don't have it.
1051 (get_max_fd): If neither /proc/self/fd not getrusage is available,
1052 return _POSIX_OPEN_MAX.
1054 Detect leaks in file descriptors 0, 1, 2.
1055 * lib/fdleak.c: (remember_non_cloexec_fds): Also check for leaks
1056 in file descriptors 0, 1, 2, just in case the caller closed them.
1057 (find_first_leaked_fd): Likewise.
1059 2009-08-16 James Youngman <jay@gnu.org>
1061 Bugfixes to the handling of %Z in the Red Hat SELinux patch.
1062 * find/pred.c (do_fprintf): If getfilecon fails, print the
1063 relevant segment anyway, with the file context expanding to an
1065 * find/parser.c (make_segment): For %Z, set the cost to
1068 2009-08-11 Kamil Dudka <kdudka@redhat.com>
1070 find: add SELinux support
1071 * find/defs.h: Add SELinux related definitions.
1072 * find/tree.c: Add -context predicate to lookup.
1073 * find/pred.c: Handle %Z printf directive.
1074 * find/parser.c: Parse -context predicate and %Z printf directive.
1075 * find/find.1: Mention -context predicate and %Z printf directive.
1076 * doc/find.texi: Mention -context predicate and %Z printf directive.
1077 * find/Makefile.am: Add SELinux libraries.
1078 * import-gnulib.config: Require module selinux-at and the corresponding
1081 2010-03-29 James Youngman <jay@gnu.org>
1083 Fix file descriptor leaks. This fixes Savannah bug bug #27375.
1084 * find/util.c (fd_leak_check_is_enabled): New function; returns
1085 nonzero if the environment variable GNU_FINDUTILS_FD_LEAK_CHECK is
1086 enabled. Setting this variable enables the file descriptor leak
1088 * find/defs.h: Declare fd_leak_check_is_enabled.
1089 * import-gnulib.config (gnulib_version): Update to more recent
1090 version of gnulib. Import the cloexec module too.
1091 * lib/fdleak.c: New file; a module for detecting file descriptor
1092 leaks. Also define an open_cloexec() function.
1093 * lib/fdleak.h: Declare the global functions defined in fdleak.c.
1094 * lib/Makefile.am (libfind_a_SOURCES): Add fdleak.c.
1095 * find/find.c (main): Call remember_non_cloexec_fds in order to
1096 detect file descriptor leaks.
1097 (main): set FD_CLOEXEC on starting_desc.
1098 (safely_chdir_lstat): Likewise for dotfd.
1099 (safely_chdir_nofollow): Likewise for fd.
1100 * find/ftsfind.c (inside_dir): set FD_CLOEXEC on curr_fd.
1101 (main): Call remember_non_cloexec_fds in order to detect file
1103 (main): set FD_CLOEXEC on starting_desc.
1104 * find/pred.c (launch): before we exec the child, call
1105 complain_about_leaky_fds in order to complain about non-FD_CLOEXEC
1106 file descriptors that weren't open when the program was run.
1107 * find/sharefile.c (sharefile_fopen): Set FD_CLOEXEC on the files
1109 * import-gnulib.sh (run_gnulib_tool): Pass the --local-dir option
1110 in order to apply any required patches (none needed right now).
1111 * find/testsuite/config/unix.exp: Set environment variable
1112 $GNU_FINDUTILS_FD_LEAK_CHECK to enable the file descriptor leak
1113 check for all tests.
1114 * find/testsuite/find.gnu/no-fdleak-test.exp: New test; runs find
1115 with the fd leak detector turned off, in order to make sure there
1116 are no (e.g.) crashing bugs when that happens.
1117 * find/testsuite/find.gnu/no-fdleak-test.xo: Expected output for
1119 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add no-fdleak-test.exp
1120 (EXTRA_DIST_XO): Add no-fdleak-test.xo.
1122 * NEWS: Mention these changes.
1124 2010-03-30 James Youngman <jay@gnu.org>
1126 Add missing exec-nogaps.{exp,xo}.
1127 * find/testsuite/Makefile.am (EXTRA_DIST_XO): Add exec-nogaps.xo.
1128 (EXTRA_DIST_EXP): Add exec-nogaps.exp.
1130 2010-02-25 James Youngman <jay@gnu.org>
1132 Explain the problems with "-name a/b" and "-path foo/".
1133 * find/find.1 (-iname): We already refer to -name, so duplicate
1135 (-name): Explain that -name a/b will never match anything.
1136 * doc/find.texi (Base Name Patterns): Explain that -name a/b will
1137 never match anything.
1138 (Full Name Patterns): Fix typo.
1140 2010-02-22 James Youngman <jay@gnu.org>
1142 * xargs/xargs.1: Simplify the wording in the description of "xargs
1145 2010-02-21 James Youngman <jay@gnu.org>
1147 Update #include directives for the openat module, to comply with
1148 recent POSIX-compliance changes.
1149 * find/find.c: Don't include <openat.h>.
1150 * find./ftsfind.c: Likewise.
1151 * find/pred.c: Likewise; include <unistd.h>.
1152 * find/util.c: Don't include <openat.h>; include <sys/stat.h>.
1154 * import-gnulib.config (gnulib_version): Update to current version
1156 * build-aux/.cvsignore: Ignore new files built by gnulib.
1157 * build-aux/.gitignore: Likewise.
1159 2010-02-20 James Youngman <jay@gnu.org>
1161 Fix Savannah bug #27846: assertion failure in xargs.c on AIX.
1162 * xargs/xargs.c (smaller_of): New function, returns the smaller of
1163 its two size_t arguments.
1164 (main): Instead of asserting that the value of bc_ctl.arg_max is
1165 smaller than some value, simply adjust the value if necessary.
1166 * NEWS: Mention this change.
1168 Fix Savannah bug#28872, Mistake in "Problems with -exec and filenames"
1169 * doc/find.texi (Problems with -exec and filenames): Add missing
1170 $0 argument in example for sh -c 'something "$@" sh ...
1171 * NEWS: Mention this change.
1173 Fix Savannah bug# 28824: "-ctime x" yields "missing argument to
1175 * find/parser.c (parse_fls): If the argument is invalid, reverse
1176 the change that collect_arg() made to *arg_ptr (that is, don't
1177 consume the argument).
1178 (parse_fprint0): Likewise.
1179 (parse_gid): Likewise.
1180 (parse_group): Likewise.
1181 (parse_inum): Likewise.
1182 (parse_links): Likewise.
1183 (do_parse_xmin): Likewise.
1184 (parse_name): Likewise.
1185 (parse_printf): Likewise.
1186 (parse_uid): Likewise.
1187 (parse_used): Likewise.
1188 (parse_time): Likewise.
1189 * NEWS: mention this change.
1191 2009-12-04 James Youngman <jay@gnu.org>
1193 Fix Savannah bug #26868: compilation error in pred.c on Solaris
1195 * import-gnulib.config (modules): Include gnulib's math module, to
1196 avoid a compilation error for "-HUGE_VAL" on Solaris x86_64.
1197 * NEWS: Mention this change.
1199 2009-11-29 James Youngman <jay@gnu.org>
1201 * find/testsuite/find.posix/exec-nogaps.exp: New test for find
1202 -exec ... {} ; and find -exec ... {} +, both of which simply
1203 ensure that all exec arguments are processed exactly once each.
1204 * find/testsuite/find.posix/exec-nogaps.xo: Expected output file
1205 for the test in exec-nogaps.exp.
1207 Fix Savannah bug#27328, segfault if the initial exec for "find
1208 -exec" fails. Also Savennah bug #27975: Infinite loop
1209 for -exec [..] {} +.
1210 * lib/buildcmd.h (struct buildcmd_state): Introduce
1211 largest_successful_arg_count and smallest_failed_arg_count in
1212 order to avoid an assumption that we understand how the operatingn
1213 system interprets ARG_MAX and the assumption that the compile-time
1214 ARG_MAX value (or the equivalent from sysconf()) is avtually
1216 (struct buildcmd_control): Change the calling convention of the
1217 exec callback to allow us to pass the argument list separately.
1218 (bc_args_exceed_testing_limit): declare this new function.
1219 * lib/buildcmd.c (bc_args_complete): New function, NULL-terminates
1220 the argv list. We use this instead of passing NULL to
1222 (update_limit): New function. Decides how many arguments to
1223 pass to the invoked command on the next attempt.
1224 (copy_args): Build an argument list containing all the initial
1225 arguments plus some of the other args (the number to be used is
1226 decided by update_limit).
1227 (bc_do_exec): Avoid special-casing the first call to exec. Use
1228 update_limit to decide how many arguments to pass and copy_args to
1229 build the argument list. The new form of the loop should fix
1230 Savannah bug #27328.
1231 (bc_push_arg): Drop support for passing NULL as an argument (to
1232 terminate the arg list we just pass in a special argument instead).
1233 (bc_args_exceed_testing_limit): New function, returns nonzero if
1234 the argument list exceeds a testing limit (used for failure
1235 injection by tests).
1236 (exceeds): New support function, implementing part of
1237 bc_args_exceed_testing_limit.
1238 (bc_init_state): Initialise largest_successful_arg_count and
1239 smallest_failed_arg_count.
1240 * find/defs.h (struct exec_val): New member last_child_status.
1241 This stores the status of the most recently completed child.
1242 * find/pred.c (new_impl_pred_exec): Use last_child_status.
1243 (launch): Use the new calling convention for the exec callback.
1244 Set last_child_status. Call bc_args_exceed_testing_limit() to do
1245 failure injection for unit tests.
1246 * find/util.c (do_complete_pending_execdirs): Call bc_do_exec
1247 rather than calling launch directly in order to allow for breaking
1248 the argument list up if it's too long.
1249 * xargs/xargs.c (xargs_do_exec): Update to use the new caling
1250 convention for the exec callback.
1251 * NEWS: Mention these fixes.
1253 2009-11-09 Jim Meyering <meyering@redhat.com>
1255 Adjust two xargs diagnostics.
1256 * xargs/xargs.c (print_args): Give a better diagnostic when
1257 failing to open /dev/tty.
1258 (xargs_do_exec): Mark a diagnostic for translation.
1260 2009-11-08 James Youngman <jay@gnu.org>
1262 Localise some previously non-localised strings.
1263 * find/find.c (init_mounted_dev_list): Pass translatable string
1265 (safely_chdir_lstat): Likewise.
1266 * find/fstype.c (must_read_fs_list): Likewise.
1267 * find/parser.c (safe_atoi): Likewise.
1269 Updated a number of translation messages.
1270 * po/it.po: Updated Italian translation.
1271 * po/fi.po: Updated Finnish translation.
1272 * po/vi.po: Updated Vietnamese translation.
1273 * po/hu.po: Updated Hungarian translation.
1274 * po/de.po: Updated German translation.
1275 * po/ru.po: Updated Russian translation.
1277 2009-08-16 James Youngman <jay@gnu.org>
1279 * lib/check-regexprops.sh: Portability fixes for FreeBSD (mktemp
1280 requires an argument, dialect differences in sed regexes).
1282 Bugfixes to the handling of %Z in the Red Hat SELinux patch.
1283 * find/pred.c (do_fprintf): If getfilecon fails, print the
1284 relevant segment anyway, with the file context expanding to an
1286 * find/parser.c (make_segment): For %Z, set the cost to
1289 2009-08-15 James Youngman <jay@gnu.org>
1291 * import-gnulib.config (gnulib_version): Update to the current
1294 2009-07-18 James Youngman <jay@gnu.org>
1296 Fix up some problems introduced in a manual conflict resolution.
1297 * find/parser.c (insert_path_check): Add missing third argument to
1298 insert_primary_withpred.
1299 (parse_iwholename): Remove redundant extra definition.
1300 (parse_ipath): Likewise.
1302 2009-07-14 James Youngman <jay@gnu.org>
1304 Fix Savannah bug #27017: find -D opt / -fstype ext3 -print , -quit
1306 * find/tree.c (set_new_parent): Initialise struct
1307 predicate->arg_text to NULL (instead of leaving it uninitialised).
1308 (get_new_pred_noarg): Likewise.
1309 (get_new_pred): Initialise predicate->arg_text to
1310 "ThisShouldBeSetToSomethingElse" to make it easier to notice
1312 (get_new_pred_chk_op): Use get_new_pred_noarg.
1313 (print_predicate): Use an if statement instead of
1314 two ternary operators.
1315 * find/util.c (insert_primary_withpred): Accept new argument, arg,
1316 being the argument (if any) of this predicate. Pass it to
1317 get_new_pred_chk_op.
1318 (insert_primary): Likewise (pass arg to insert_primary_withpred).
1319 (insert_primary_noarg): New function; calls insert_primary with
1321 * find/parser.c (collect_arg_stat_info): Add an output parameter;
1322 the filename from which we collected the stat information.
1323 (parse_closeparen, parse_delete, parse_and, parse_or,
1324 parse_comma): Use get_new_pred_noarg.
1325 (parse_cnewer, parse_newer, parse_anewer): Use new
1326 collect_arg_stat_info and insert_primary interface.
1327 (parse_print, parse_prune, parse_nouser, parse_empty): Use
1328 insert_primary_noarg.
1329 (parse_accesscheck, parse_false): Use insert_primary_noarg.
1330 (parse_used, parse_iname, parse_fprint, insert_fprint,
1331 parse_fstype, parse_ilname): Use new collect_arg and
1332 insert_primary interfaces.
1333 (parse_ipath, parse_lname, do_parse_xmin, parse_name, parse_path,
1334 parse_perm, parse_size, parse_user, parse_time): Use new
1335 collect_arg and insert_primary_withpred interface.
1336 (parse_negate, parse_openparen): Use new get_new_pred_chk_op interface.
1337 (parse_newerXY, parse_nogroup): Use new insert_primary interface.
1338 (insert_regex, parse_samefile): Use new insert_primary_withpred
1340 (insert_type, insert_fprintf, new_insert_exec_ok, insert_num): Use
1341 new insert_primary_withpred interface.
1342 * find/defs.h (struct predicate.arg_text): make const.
1343 Add declarations for new function get_new_pred_noarg and
1344 insert_primary_noarg. Add 'arg' parameter to get_new_pred_chk_op
1345 and insert_primary_withpred.
1346 * NEWS: Mention the bugfix.
1348 2009-07-12 James Youngman <jay@gnu.org>
1350 Savannah bug #23920: warn about -path arguments ending in /.
1351 * find/parser.c (insert_path_check): new function; abstracts the
1352 common functionality of parse_path, parse_ipath, parse_wholename,
1353 parse_iwholename. Also check for a trailing slash and warn about
1354 it (unless $POSIXLY_CORRECT is set). Don't warn if the pattern
1355 also happens to be a start_point, because those could be matched.
1356 (parse_path, parse_ipath, parse_wholename, parse_iwholename): Use
1358 * find/tree.c (is_start_point): new function; returns true if the
1359 indidated string matches a start point.
1360 (num_start_points, start_points): new variables, storing the
1361 starting points listed on the command line.
1362 (build_expression_tree): Set num_start_points and start_points.
1363 * find/defs.h: Declare is_start_point.
1364 * doc/find.texi (Full Name Patterns): Explain that candidate names
1365 for -path, -regex etc. will never end in a slash, so "-path /tmp/"
1366 will never match anything.
1367 * find/find.1: Likewise.
1369 Fix Savannah bug #26327: xargs man page is vague about the number
1370 of times command is executed.
1371 * xargs/xargs.1 (DESCRIPTION): Explain more clearly that the
1372 command will be executed many times. Indicate that -L can also be
1374 * NEWS: Mention this change.
1376 2009-07-11 James Youngman <jay@gnu.org>
1378 * NEWS: Set the version to 4.5.6-git, so that we can make test
1381 2009-06-11 James Youngman <jay@gnu.org>
1383 Make import-gnulib.sh faster in the common case where neither
1384 import-gnulib.config nor gnulib itself changed.
1385 * import-gnulib.sh (gnulib_changed): New variable.
1386 (do_checkout): set gnulib_changed=true if the gnulib code didn't
1387 already correspond to our configured version. Don't use a large
1388 subshell, because we need to set $gnulib_changed and don't want
1389 the value to be discarded.
1390 (main): Run gnulib-tool if gnulib was not at the correct version
1391 or the import-gnulib.config file has changed.
1393 2009-07-10 Reuben Thomas <rrt@sc3d.org>
1395 Fix quotation punctuation in find manual page, fixing bug #19120.
1396 * find/find.1: Use ` instead of ' at the start of quoted text. Use
1397 \(aq instead of ' or \' in commands to get a literal straight quote.
1398 Use ` and ' instead of `` and '' (for consistency).
1399 * NEWS: mention this change.
1401 2009-07-10 James Youngman <jay@gnu.org>
1403 * import-gnulib.config (gnulib_version): Update to the current version
1406 Fix Savannah bug #24873, Duplicate fprint option corrupts output
1407 by opening each output file only once.
1408 * find/sharefile.c: New file; keeps a mapping from dev/inode to
1409 FILE*, allowing us to determine when the file we just opened is
1410 the same as something else we already opened.
1411 * import-gnulib.config (modules): Import the hash module, used by
1413 * find/sharefile.h: Function declarations for same.
1414 * find/find.c (main): Call sharefile_init().
1415 * find/ftsfind.c (main): Likewise.
1416 * find/parser.c (open_output_file): Call sharfile_fopen to open an
1417 output file, instead of fopen_safer.
1418 * find/util.c (cleanup): Close any shared output files that are
1419 open. Also fflush stdout.
1420 (undangle_file_pointers): Set the relevant FILE* pointers to
1422 (flush_and_close_output_files): Remove (since sharefile_destroy
1423 has the desired effect).
1424 * find/Makefile.am (libfindtools_a_SOURCES): Add sharefile.c.
1425 (EXTRA_DIST): Add sharefile.h.
1426 * find/defs.h: #include sharefile.h.
1427 (struct state): Add member shared_files, holding a handle to the
1428 shared-file hash table implemented in sharefile.[ch].
1429 * find/testsuite/find.gnu/fprintf-samefile.exp: New test,
1430 exercising -fprintf (though it is not able to detect bug #24873).
1431 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
1432 find.gnu/fprintf-samefile.exp.
1433 * NEWS: Mention the bugfix.
1435 2009-07-07 James Youngman <jay@gnu.org>
1437 * NEWS: Indicate that -wholename is no longer preferred over -ipath.
1439 2009-07-06 James Youngman <jay@gnu.org>
1441 Prepare for release of findutils version 4.5.5.
1442 * configure.ac: Set version number to 4.5.5.
1445 2009-07-06 Andreas Metzler <gnu@downhill.at.eu.org>
1447 * doc/find.texi: Various typo fixes.
1449 2009-07-05 James Youngman <jay@gnu.org>
1451 Fix typo in -execdir documentation.
1452 * doc/find.texi (Single File): Typo correction; we're describing
1453 -execdir, not -exec.
1454 * NEWS: Mention the bugfix.
1456 2009-05-12 James Youngman <jay@gnu.org>
1458 #26537: find -prune now makes sure it has valid stat() information.
1459 * NEWS: Added Savannah bug number for Colin's bugfix.
1461 2009-05-07 Colin Watson <cjwatson@ubuntu.com>
1463 * find/parser.c (parse_prune): -prune needs stat information if
1464 -depth is not in use.
1465 * find/pred.c (pred_prune): Assert that stat information is
1466 available if needed.
1467 * find/testsuite/find.posix/prune-stat.exp: New test.
1468 * find/testsuite/find.posix/prune-stat.xo: New test.
1469 * find/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO): Added
1470 prune-stat.exp, prune-stat.xo.
1471 * NEWS: Mention this bugfix.
1473 2009-07-05 James Youngman <jay@gnu.org>
1475 * lib/check-regexprops.sh: New test. Run regexprops as a check,
1476 and compare its output against the contents of doc/regexprops.texi.
1477 * lib/Makefile.am: Run check-regexprops.sh for 'make check'.
1478 * doc/Makefile.am: don't clean regexprops.texi, and don't generate
1480 * doc/regexprops.texi: add into source control.
1481 * doc/.gitignore: don't ignore regexprops.texi
1483 2009-07-04 James Youngman <jay@gnu.org>
1485 * configure.ac (AC_CONFIG_FILES): order the entries alphabetically
1486 and remove duplicates. Put po/Makefile.in before
1487 po/Makefile, since the former is required in order to
1488 config.status to generate the latter.
1490 2009-07-04 gettextize <bug-gnu-gettext@gnu.org>
1492 * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.
1493 (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
1495 2009-05-12 Eric Blake <ebb9@byu.net>
1497 xargs: fix compilation on cygwin
1498 * xargs/xargs.c (main): Check that ARG_MAX is defined.
1500 xargs: avoid compiler warning
1501 * xargs/xargs.c (get_char_oct_or_hex_escape): Pass correct type to
1504 2009-05-04 James Youngman <jay@gnu.org>
1506 * find/util.c (get_info): Don't fall off the end of the function
1507 without returning a value.
1509 2009-04-25 James Youngman <jay@gnu.org>
1511 * AUTHORS: Add Andreas Metzler.
1513 2009-04-25 Andreas Metzler <gnu@downhill.at.eu.org> (tiny change)
1515 Correct a typo "diagnositcs".
1516 * doc/find.texi (Environment Variables): Correct a typo.
1518 2009-04-24 A. Costa <agcosta@gis.net> (tiny change)
1520 Correct a typo "diagnositcs".
1521 * find/find.1 (POSIXLY_CORRECT): Correct a typo.
1523 2009-04-24 James Youngman <jay@gnu.org>
1525 * find/ftsfind.c (consider_visiting): Print a message for "-D
1526 search" both on entry to the function and at the point where we
1527 have decided not to ignore this file.
1529 2009-04-12 James Youngman <jay@gnu.org>
1531 * NEWS: Mention the fix for bug #22708 in the correct section.
1533 Avoid mixing declarations and statements.
1534 * lib/buildcmd.c (bc_do_exec): Declare variables at the top of the
1535 relevant block, in order to avoid mixing declarations and
1537 * xargs/xargs.c (main): Likewise.
1539 2009-04-12 Leslie Polzer <leslie.polzer@gmx.net>
1541 Merge Leslie Polzer's ARG_MAX enhancements to xargs which were
1542 produced as part of the Google Summer of Code 2007.
1543 These changes fix Savannah bug #22708.
1544 * find/pred.c (launch): The struct buildcmd_control* argument is
1546 * find/defs.h: Likewise
1547 * lib/buildcmd.c (bc_do_insert): The struct buildcmd_control*
1548 argument is no longer const.
1549 (bc_push_arg): Likewise.
1550 (cb_exec_noop): Likewise.
1551 (get_stringv_len): New function; measures the length of
1552 a NULL-terminated argv sequence.
1553 (bc_do_exec): Rename from do_exec, and make global. Modify the
1554 function to react to exec failing with E2BIG by trying again
1555 with fewer arguments.
1556 * xargs/xargs.1: Mention that xargs automatically adopts to the
1557 situation where exec fails with E2BIG.
1558 * xargs/xargs.c: (parent): New variable, the PID of the parent
1560 (main): initialise the variable 'parent'. Don't fail immediately
1561 due to lack of space when the environment is large. Call
1562 xargs_do_exec via bc_do_exec.
1563 (xargs_do_exec): The struct buildcmd_control* argument is no
1564 longer const. When exec fails in the child, communicate the
1565 errno value back to the parent through a pipe which is
1566 close-on-exec; this allows us to accurately determine the cause of
1567 the failure and also to distinguish exec failures from all
1568 possible exit codes in the child.
1569 (wait_for_proc): If the utility cannot be found or cannot be run,
1570 we now find out about this by reading an errno value from the
1571 pipe, so this means that exit codes 126 and 127 in the child no
1572 longer have a special interpretation.
1573 * NEWS: mention these changes.
1575 2009-04-13 James Youngman <jay@gnu.org>
1577 * import-gnulib.config (gnulib_version): Update to current head
1580 2009-04-13 Andreas Metzler <gnu@downhill.at.eu.org>
1582 Fix Savannah bug# 26092: find.1 still marks -iwholename as prefered
1583 * find/find.1 (-iwholename): Indicate that this option is no
1584 longer preferred over -ipath.
1586 2009-03-07 James Youngman <jay@gnu.org>
1588 Update the code to better reflect the semantics of digest_mode().
1589 * find/defs.h: Pass the file mode to digest_mode() by reference
1590 (as a pointer) rather than by value to make it unnecessary for the
1591 caller to know that the value passed should become dead.
1592 * find/util.c (digest_mode): Change the implementation.
1593 * find/find.c (process_path): Update caller.
1594 * find/ftsfind.c (consider_visiting): Update caller.
1596 2009-03-10 James Youngman <jay@gnu.org>
1598 Remove "lib/wait.h", since gnulib provides <sys/wait.h>.
1599 * lib/Makefile.am (EXTRA_DIST): Remove wait.h, since gnulib
1601 * lib/wait.h: Not needed.
1602 * find/pred.c: Include <sys/wait.h> instead of "wait.h".
1603 * lib/waitpid.c: Likewise.
1604 * xargs/xargs.c: Likewise.
1606 Remove unnecessary include guards.
1607 * lib/dircallback.c: gnulib provides <locale.h>, so no need for
1609 * locate/locate.c: Likewise.
1610 * lib/listfile.c: Likewise.
1611 * lib/savedirinfo.c: Likewise with <sys/stat.h>
1612 * find/defs.h: gnulib provides <inttypes.h>, so no need for
1614 * lib/nextelem.c: Likewise with <string.h> and <stdlib.h>.
1615 * locate/bigram.c: Likewise.
1616 * locate/frcode.c: Likewise.
1617 * lib/buildcmd.c: Likewise with <locale.h> and <wchar.h>
1618 * xargs/xargs.c: Likewise with <locale.h>, <wchar.h> and <stdlib.h>
1619 * import-gnulib.config (modules): Import the mbrtowc and whchar
1621 * lib/qmark.c (multibyte_qmark_chars): Don't surround with
1622 HAVE_MBRTOWC, since we now have a replacement for mbrtowc.
1623 Likewise, don't protect inclusion of <string.h> with
1624 HAVE_STRING_H. Likewise with <wchar.h>.
1625 (multibyte_qmark_chars): Rename to qmark_chars.
1626 (qmark_chars): Remove old version (since it is replaced by the
1627 function that used to be multibyte_qmark_chars).
1628 * lib/printquoted.c: Don't include <wchar.h>, we don't need it.
1630 Prepare for release of findutils-4.5.4.
1631 * configure.ac (AC_INIT): Set version number to 4.5.4.
1634 Remove obsolete regex.c copy fixup.
1635 * Makefile.am (jy-regex-fix) Delete.
1636 (dist-hook): Remove jy-regex-fix.
1638 Update to version 0.17 of GNU gettext.
1639 * configure.ac: Update to version 0.17 of gettext.
1640 * import-gnulib.sh (refresh_output_files): Run autopoint too.
1641 * ABOUT-NLS: Remove the file from source control, since gettext
1643 * .gitignore: Ignore ABOUT-NLS.
1644 * po/Makefile.in.in: Likewise.
1645 * po/.gitignore: Ignore po/Makefile.in.in.
1647 Correct the changelog-driver argument list.
1648 * import-gnulib.sh (check_merge_driver): Add the missing arguments
1649 to the changelog driver. Change the name of the merge driver from
1650 cl-merge to merge-changelog, for consistency with gnulib,
1651 coreutils, autoconf, libtool, and m4.
1653 2009-03-08 James Youngman <jay@gnu.org>
1655 Switch to using a merge driver for the ChangeLog file.
1656 * import-gnulib.sh (check_merge_driver): New function; verifies
1657 that we have a merge driver installed for the ChangeLog file (if
1658 we're on the master or release branch, the check is skipped).
1659 Also check that the .gitattributes file exists.
1660 * README-hacking: Point out that using a merge driver for
1661 ChangeLog is a good idea.
1662 * .gitattributes: New file
1664 Optimise away calls to stat if all we need is the inode number.
1665 This fixes Savannah bug #24342.
1666 * find/util.c (get_info): call get_statinfo if need_inum and we
1667 don't already have the inode number.
1668 (apply_predicate): Call get_info if need_inum.
1669 * find/defs.h (enum EvaluationCost): Add NeedsInodeNumber.
1670 (struct predicate): Add need_inum.
1671 * find/tree.c (get_new_pred): Default need_inum to false.
1672 (get_new_pred_chk_op): Likewise.
1673 * find/ftsfind.c (consider_visiting): Copy the value of st_ino
1674 into statbuf.st_ino.
1675 * find/parser.c (parse_inum): Set need_inum=true.
1676 (parse_samefile): Set need_inum=false, but add a comment
1677 indicating that there is an optimisation opportunity.
1678 (make_segment): For -printf %i, set NeedsInodeNumber rather than
1680 * find/pred.c (pred_inum): assert that the inode number is known
1682 (print_optlist): Print "[need inum]" when need_inum is true.
1683 * find/tree.c (opt_expr): Also reorder expressions if the right
1684 hand expression is -inum (that is, consider that test to be no
1685 more expensive than -type).
1686 (set_new_parent): Default need_inum to false.
1687 (costlookup): Set pred_inum=NeedsInodeNumber.
1688 (get_pred_cost): need_inum implies a data cost of
1690 (cost_table): Add NeedsInodeNumber.
1691 (print_tree): Handle need_inum.
1693 For -samefile, skip stat if inode numbers differ.
1694 * find/pred.c (pred_samefile): Skip stat if the inode numbers are
1696 Enable -Wall compiler warnings and fix them.
1697 * configure.ac: Turn on -Wall warnings.
1698 * find/find.c (process_dir): Print unsigned values of unspecified
1700 * xargs/xargs.c: Include <inttypes.h> and <stdint.h>, but without
1701 the include guards (since we assume an ISO C platform anyway).
1702 * import-gnulib.config (modules): Add modules inttypes and stdint.
1704 2009-03-07 James Youngman <jay@gnu.org>
1706 Remove unused Debian files; the Debian package doesn't use them.
1707 * debian.rules: Delete.
1708 * debian/README.debian: Delete.
1709 * debian/TODO: Delete.
1710 * debian/changelog: Delete.
1711 * debian/conffiles: Delete.
1712 * debian/control: Delete.
1713 * debian/copyright: Delete.
1714 * debian/cron.find: Delete.
1715 * debian/doc-base: Delete.
1716 * debian/postinst: Delete.
1717 * debian/preinst: Delete.
1718 * debian/prerm: Delete.
1719 * debian/rules: Delete.
1720 * debian/substvars: Delete.
1721 * debian/updatedb.conf: Delete.
1722 * debian/.cvsignore: Delete.
1723 * debian/.gitignore: Delete.
1725 2009-03-06 James Youngman <jay@gnu.org>
1727 Change suffix for non-release versions from -CVS to -git.
1728 * configure.ac(AC_INIT): Change the suffix used to indicate that
1729 the version number doesn't correspond to a source release from
1733 Delete the INSTALL file; rely on Autoconf providing it.
1734 * INSTALL: Delete; this file can be copied/generated by Autoconf,
1735 so do that rather than keeping it under source control.
1736 * .gitignore: Ignore INSTALL.
1738 Updated translation po files from translationproject.org.
1739 * po/bg.po: Updated Bulgarian translation.
1740 * po/de.po: Updated German translation.
1741 * po/ga.po: Updated Irish translation.
1742 * po/hu.po: Updated Hungarian translation.
1743 * po/lt.po: Updated Lithuanian translation.
1744 * po/nl.po: Updated Dutch translation.
1745 * po/pl.po: Updated Polish translation.
1746 * po/sl.po: Updated Slovenian translation.
1747 * po/sv.po: Updated Swedish translation.
1748 * po/tr.po: Updated Turkish translation.
1749 * po/uk.po: Updated Ukranian translation.
1750 * po/vi.po: Updated Vietnamese translation.
1751 * NEWS: Mention these updates.
1753 2009-03-05 James Youngman <jay@gnu.org>
1755 Fix Savannah bug #25764, duplicate entry for proc in PRUNEFS.
1756 * locate/updatedb.sh (PRUNEFS): Remove duplicate entry for proc.
1757 * locate/Makefile.am (updatedb): add dependency on Makefile, and
1758 add a comment explaining why updatedb is generated by make, not
1760 * NEWS: Mention this bugfix.
1762 Provide more detailed help on how to work with the git sources.
1763 * README-CVS: Rename to README-hacking.
1764 * README-hacking: Add more specific information about using topic
1765 branches, test cases, documentation, coding standards and how to
1766 submit patches. Much of this is adapted from the files
1767 README-hacking and HACKING in the coreutils source tree.
1768 * Makefile.am: Generate tool-versions.txt, which is a list of the
1769 --version outputs of the tools that the maintainer used to build a
1771 * NEWS: Mention these improvements.
1773 2009-03-04 James Youngman <jay@gnu.org>
1775 Upgrade to gnulib version 86a37c05846ff3772afd1300f135866dd1d271c6.
1776 * import-gnulib.config(gnulib_version): Update.
1777 * xargs/Makefile.am: Add $(LIB_CLOSE) to $(LDADD), as suggested by
1778 gnulib's unistd module.
1779 * locate/Makefile.am: Likewise.
1780 * find/Makefile.am: Likewise.
1782 Removed trailing white space.
1783 * Makefile.am: Removed trailing white space.
1784 * NEWS, build-aux/check-testfiles.sh, build-aux/src-sniff.py,
1785 doc/Makefile.am, doc/find-maint.texi, doc/find.texi, find/Makefile.am,
1786 find/defs.h, find/find.1, find/find.c, find/finddata.c, find/fstype.c,
1787 find/ftsfind.c, find/parser.c, find/pred.c, find/tree.c, find/util.c,
1788 import-gnulib.sh, lib/Makefile.am, lib/buildcmd.c, lib/buildcmd.h,
1789 lib/dircallback.c, lib/dircallback.h, lib/extendbuf.c,
1790 lib/extendbuf.h, lib/findutils-version.c, lib/findutils-version.h,
1791 lib/forcefindlib.c, lib/gnulib-version.h, lib/listfile.c,
1792 lib/modetype.h, lib/nextelem.c, lib/nextelem.h, lib/printquoted.c,
1793 lib/printquoted.h, lib/qmark.c, lib/regexprops.c, lib/regextype.c,
1794 lib/savedirinfo.c, lib/savedirinfo.h, lib/strspn.c, lib/wait.h,
1795 lib/waitpid.c, locate/bigram.c, locate/code.c, locate/locate.1,
1796 locate/locate.c, locate/locatedb.5, locate/locatedb.h,
1797 locate/updatedb.1, locate/updatedb.sh, locate/word_io.c,
1798 m4/findlib.m4, m4/nullsort.m4, m4/withfts.m4, xargs/xargs.1:
1800 * m4/nullsort.m4: Removed occurrences of space followed by tab.
1802 Enabled GCC warnings for declarations after statements.
1803 * import-gnulib.config: Import the gnulib module 'warnings'
1804 * configure.ac: Add GCC warning -Wdeclaration-after-statement.
1805 * Makefile.am: Add AM_CFLAGS and set it to $(WARN_CFLAGS).
1806 * find/Makefile.am, doc/Makefile.am, lib/Makefile.am: Likewise.
1807 * locate/Makefile.am, xargs/Makefile.am: Likewise.
1809 2009-03-03 James Youngman <jay@gnu.org>
1811 Fix Savannah bug #25359, more efficiently (suggestion by Nick Fortino).
1812 * find/ftsfind.c (consider_visiting): revert the previous change
1813 which discarded type information, and instead simply ensure that
1814 state.curdepth holds the correct value before digest_mode() is
1816 (find): revert the previous change.
1817 (visit): we no longer need to set state.curdepth here, since it
1818 will have been set already in consider_visiting().
1820 2009-03-02 James Youngman <jay@gnu.org>
1822 Fix Savannah bug #25359.
1823 * find/ftsfind.c (consider_visiting): discard mode information
1824 from fts when the -H option is in effect and the current file is a
1826 (find): don't decode the mode information that find is trying to
1827 pass to us in that case, since we don't want to use it.
1828 * find.posix/sv-bug-25359.exp: new test for this bug.
1829 * find.posix/sv-bug-25359.xo: expected output for the test.
1830 * NEWS: Mention this bugfix.
1832 2009-02-21 James Youngman <jay@gnu.org>
1834 Updated the email address for Eric B. Decker.
1835 * ChangeLog: Updated Eric's address
1836 * find/find.c: Likewise
1837 * find/ftsfind.c: Likewise
1839 2009-02-21 Jim Meyering <meyering@redhat.com>
1841 find: take advantage of new gnulib/fts leaf-optimization
1842 * find/ftsfind.c (ftsoptions): Set the FTS_CWDFD bit.
1843 This is required in order to take advantage of fts' leaf-optimization.
1844 * find/ftsfind.c (consider_visiting): Allow state.type to be 0
1845 when fts_info is FTS_NSOK;
1847 This allows find to process an fts entry for which fts_read returns
1848 FTS_NSOK (no stat) but for which find requires only type info.
1849 This happens on file systems that lack dirent.dtype information.
1850 Currently, only reiserfs is handled this way. Until the recent
1851 gnulib/fts change, [97d5b66] "fts: arrange not to stat non-directories
1852 in more cases" this change was not necessary, because fts would always
1853 stat non-dir entries on a file system with no dirent.dtype information.
1855 However, combined with the gnulib change, this change lets find
1856 avoid many per-non-directory stat-like syscalls (i.e. fstatat)
1857 in some very common cases, like "find . -print" on reiserfs --
1858 which can be a huge performance savings.
1860 find: avoid warning about unused local
1861 * find/pred.c (scan_for_digit_differences): Remove declaration of
1862 unused local, "ok". (second time, really applying that patch).
1864 2009-02-21 James Youngman <jay@gnu.org>
1866 Update gnulib version.
1867 * import-gnulib.config (gnulib_version): Update from
1868 d4b129b8e5f8a8d1198020fd6fc79310d305936c to
1869 df70a4bf4a1e84171918db09b639ae1a14c2a9b2. This pulls in the
1870 following relevant changes:
1871 fts: correct internal computation of nlinks (optimization-related)
1872 fts: move a function definition "up" (no semantic change)
1873 fts: arrange not to stat non-directories in more cases
1874 fts: add #if guards so that the fts_lgpl module still builds
1875 fts: avoid used-uninitialized error due to recent change
1876 regex: avoid compilation failure with upcoming gcc-4.4
1877 regex: fix glibc bug 697
1878 regex: fix glibc bug 9697
1879 Other changes may also be relevant; for details please check gnulib/ChangeLog.
1881 Improvements to import-gnulib.config, import-gnulib.sh.
1882 * import-gnulib.config (gpl3_update_files): No longer need to
1883 update the licenses of build-aux/mdate-sh, build-aux/texinfo.tex
1884 or build-aux/ylwrap as they are already GPLv3+.
1885 (modules): Use the strdup-posix module instead of strdup, and stop
1886 using the obsolete modules memcmp and memset, since we now assume
1887 those functions will already be present on the host system.
1888 * import-gnulib.sh (rehack): Be more verbose about which files
1889 actually needed a license edit and which did not.
1891 Follow gnulib-tool's Makefile.am edit suggestions.
1892 * find/Makefile.am (LDADD): Use $(LIBINTL) instead of @INTLLIBS@
1893 and use $(LIB_CLOCK_GETTIME) instead of @LIB_CLOCK_GETTIME@.
1894 * lib/Makefile.am: Likewise.
1895 * locate/Makefile.am: Likewise.
1896 * xargs/Makefile.am: Likewise.
1897 * import-gnulib.sh (hack_gnulib_tool_output): Add
1898 m4/gnulib-cache.m4 to EXTRA_DIST in gnulib/Makefile.am, as
1899 gnulib-tool suggests.
1901 2009-02-21 Jim Meyering <meyering@redhat.com>
1903 find: avoid warning about unused local, remove unnecessary include.
1904 * find/pred.c (scan_for_digit_differences): Remove declaration of
1906 (do_time_format): Remove decl of "done"; replace sole use with a
1907 constant, "true". Initialize "i" and "n".
1908 * lib/dircallback.c: Don't include unistd.h. Not needed.
1910 2009-01-17 Thien-Thi Nguyen <ttn@gnuvola.org>
1912 find: Fix -regexptype parse specification bug: declare as POSOPT.
1913 * find/parser.c (parse_table): Parse -regextype as POSOPT.
1915 2008-12-26 Jim Meyering <meyering@redhat.com>
1917 find: avoid using undefined statbuf
1918 * /ftsfind.c (consider_visiting): Use local variable, mode,
1919 rather than possibly undefined statbuf.st_mode.
1921 2008-12-23 James Youngman <jay@gnu.org>
1923 Fix Savannah bug #25154: Failure to compile with GCC-2.95.4
1924 * find/parser.c (do_parse_xmin): Move declaration of struct
1925 timespec origin before the statements; declarations after
1926 statements are a GCC extension we were accidentally relying on.
1928 2008-12-21 James Youngman <jay@gnu.org>
1930 Fix Savannah bug #25144: Misleading message for find -user unknown.
1931 * find/parser.c (parse_user): If there is no known group for the
1932 specified user (and it does not appear to be a uid), issue a
1933 fatal error message instead of returning false, because the error
1934 message that results from a return of false is "invalid argument",
1935 which is misleading in this case. Similarly for a missing or an
1938 2008-12-01 James Youngman <jay@gnu.org>
1940 * po/fr.po: Updated French translation.
1942 * po/id.po: Updated Indonesian translation.
1944 2008-12-01 Geoff Gole <geoffgole@gmail.com>
1946 * xargs/xargs.1 (STANDARDS CONFORMANCE): Fix typo.
1948 2008-11-30 Jim Meyering <meyering@redhat.com>
1950 Pass file type information in dirent.d_type from fts to find.
1951 * find/ftsfind.c (consider_visiting): When fts provides usable
1952 dirent.d_type information, and the only stat information required
1953 by find's predicates is the file-type information normally found
1954 in stat.st_mode (that is, not the permissions information), skip
1955 the now-redundant stat calls. This change is useful only with the
1956 very latest version of fts.c from gnulib. Requires gnulib version
1957 d4b129b8e5f8a8d1198020fd6fc79310d305936c or later.
1958 * find/ftsfind.c (find): Set state.have_type if fts returned type
1961 2008-11-08 James Youngman <jay@gnu.org>
1963 * import-gnulib.config (gnulib_version): Update version of gnulib,
1964 mainly in order to pull in Jim Meyering's efficiency improvements
1965 to fts. See http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commit;h=2f2978ede97205c49d3e568ccffa5a04fb53326b
1966 * lib/dircallback.c: gnulib's lstat.h is now gone, instead it
1967 provides <sys/stat.h> where that is needed.
1969 2008-11-08 Jim Meyering <meyering@redhat.com>
1971 * README-CVS: tiny typo fix (s/fileutils/findutils/).
1973 2008-09-07 James Youngman <jay@gnu.org>
1975 Fix bug #23996 (integer overflow when parsing "-used 3").
1976 * find/parser.c (get_relative_timestamp): Check for overflow after
1977 the fact by comparing the relative sizes of the result and the
1978 operands. This prevents an incorrect diagnosis of overflow when
1979 the resulting tv_sec is correctly negative (as is normally the
1982 2008-08-31 James Youngman <jay@gnu.org>
1984 New Czech translation.
1985 * po/cs.po: New Czech translation.
1986 * configure.ac: Added cs (Czech) to ALL_LINGUAS.
1988 Fix Savannah bug #24169 (-neweraa without following arg coredumps).
1989 * find/parser.c (parse_newerXY): Issue a fatal error message if
1990 there is no following argument.
1991 * find/testsuite/find.gnu/sv-bug-24169.exp: Test case for this
1993 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Also distribute
1995 * NEWS: Mention this change.
1997 2008-08-04 James Youngman <jay@gnu.org>
1999 * find/find.1: correct typo seach->seach (reported by Bobby
2001 * locate/updatedb.1: correct typo Any -> any (reported by Reuben
2004 2008-06-28 James Youngman <jay@gnu.org>
2006 Fix savannah bug #23070 (find.1 needs update for -perm /000)
2007 * find/find.1 (-perm /mode): The all-bits-zero behaviour has
2009 * NEWS: Mention the fix.
2011 2008-06-21 James Youngman <jay@gnu.org>
2013 * import-gnulib.config (gnulib_version): Updated to current HEAD
2016 Fix Savannah bug #23663, crash in some locales for %AX.
2017 * find/pred.c (do_time_format): Fix off-by-one error in handling
2018 of the buffer used to print timestamps. This caused a crash in
2019 some locales when handling the %AX format specifier.
2020 * NEWS: Mention this bugfix.
2022 2008-06-20 RB <aoz.syn@gmail.com>
2024 * doc/find.texi (Finding the Shallowest Instance): Add worked
2025 example explaining how to efficiently locate the shallowest
2026 instances of '.svn' or 'CVS' in a forest of project trees.
2027 * find/find.1 (EXAMPLES): Add the same example here (with slightly
2030 2008-06-19 Per Starbäck <starback@stp.lingfil.uu.se> (tiny change)
2032 * doc/find.texi (Unusual characters in filenames): Directory
2033 separator is the slash, not the backslash.
2035 2008-06-19 James Youngman <jay@gnu.org>
2037 * po/zh_CN.po: Updated the Chinese (simplified) translation.
2038 * NEWS: Mention this change.
2040 2008-06-19 Stepan Kasal <skasal@redhat.com>
2042 * doc/find.texi (Cleaning Up): Move the note about -depth up.
2044 2008-06-19 James Youngman <jay@gnu.org>
2046 * po/lt.po: New Lithuanian translation.
2047 * NEWS: Mention this change.
2048 * configure.ac: Add "lt" to ALL_LINGUAS.
2050 2008-05-28 James Youngman <jay@gnu.org>
2052 Bugfix to the code that was previously supposed to fix bug #22662
2054 * find/pred.c (scan_for_digit_differences): Remember that wesaw
2055 the first differing digit and also get the order of the
2056 subtractionoperands right.
2057 (do_time_format): Off by one error on checking for a nondigit
2058 after the sequence of changed digits.
2059 * NEWS: Mention this change.
2061 2008-05-18 James Youngman <jay@gnu.org>
2064 * import-gnulib.config (gnulib_version): Update to current head
2067 Document effect of gnulib update, mainly on yesno().
2068 * doc/find.texi (Unusual Characters in File Names): Explain that
2069 the LC_CTYPE variable affects which characters are considered to
2070 be printable by -printf %p, -print and -fprint.
2071 (Querying): Explain in more detail how environment variables
2072 affect the interpretation of the response to -ok and -okdir.
2073 (Regular Expressions): Indicate that the locale configuration
2074 affects the interpretation of regular expressions.
2075 (Environment Variables): Describe how LC_COLLATE and LC_CTYPE
2076 affect the interpretation of regular expressions. Indicate that
2077 LC_MESSAGES affects the interpretation of the response to -ok.
2078 * find/find.1 (-ok): Describe the effect of POSIXLY_CORRECT,
2079 LC_CTYPE and LC_COLLATE.
2081 (UNUSUAL FILENAMES): Describe how LC_CTYPE affects -printf %p,
2083 (STANDARDS CONFORMANCE): -ok and -okdir now obey the system's
2084 defintion of yes/no if POSIXLY_CORRECT is set. In any case,
2085 LC_CTYPE and LC_COLLATE may have some effect. Point out that
2086 the setting of LC_MESSAGES deternmines what pattern is used to
2087 interpret the user's response to -ok/-okdir.
2088 * find/parser.c: Remove definition of ISUPPER, which we no longer
2090 * NEWS: mention these changes.
2092 2008-04-25 Eric Blake <ebb9@byu.net>
2094 Support cygwin 1.7.0.
2095 * find/parser.c (parse_newerXY)
2096 [HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC]: Add support for another
2098 * import-gnulib.config (gnulib_version): Update to pick up change
2099 necessary for cygwin fstatat.
2101 2008-03-21 James Youngman <jay@gnu.org>
2103 * find/testsuite/find.gnu/xtype-symlink.exp: Removed unnecessary
2104 test code which created a insecure tempfile.
2106 2008-03-16 James Youngman <jay@gnu.org>
2109 * import-gnulib.config (gnulib_version): Update to a newer version
2112 Find optimises at -O2 by default.
2113 * find/util.c (set_option_defaults): Use a default optimisation
2114 level of 2 rather than 0.
2115 * NEWS: Mention this change.
2117 Begin work on findutils-4.5.x.
2118 * configure.ac: We're now working on the 4.5.x release series, so
2119 change the version number.
2122 2008-03-10 Justin Pryzby <justinpryzby@users.sourceforge.net> (tiny change)
2124 * doc/find.texi: Various typo corrections.
2126 2008-03-10 Eric Blake <ebb9@byu.net>
2128 Don't truncate printed ino values. Fixes Savannah bug #15472.
2129 * find/find.c (wd_sanity_check): Use PRIuMAX for platforms with
2131 * NEWS: Document this.
2133 2008-03-10 Jim Meyering <meyering@redhat.com>
2135 Rename local and member "dirfd" to avoid shadowing the function.
2136 This avoids many warnings from gcc -Wshadow:
2137 * lib/buildcmd.h (struct buildcmd_state) [dir_fd]: Rename member
2139 * find/defs.h (struct exec_val) [dir_fd]: Likewise.
2140 Rename parameter in prototype.
2141 * find/ftsfind.c (inside_dir): Rename parameter: s/dirfd/dir_fd/
2142 * find/parser.c (new_insert_exec_ok, insert_exec_ok): Likewise.
2143 * find/pred.c (new_impl_pred_exec, prep_child_for_exec, launch):
2145 * find/util.c (do_complete_pending_execdirs): Likewise.
2146 (complete_pending_execdirs): Likewise
2147 * lib/buildcmd.c (bc_init_state, bc_clear_args): Likewise.
2148 * lib/dircallback.c (run_in_dir): Likewise.
2149 * lib/dircallback.h (DIRCALLBACK_H): Likewise.
2150 * lib/listfile.c (list_file, get_link_name_at): Likewise.
2151 * lib/listfile.h (LISTFILE_H): Likewise.
2153 Avoid link failure with -fno-common.
2154 * locate/code.c (program_name): Declare "extern".
2156 2008-03-09 James Youngman <jay@gnu.org>
2158 Fix (documentation) bug #20873, / and . in file names for -path.
2159 * doc/find.texi (Full Name Patterns): Mention that * in the "find
2160 -path" pattern will match both / and leading dots.
2162 2008-03-08 Jim Meyering <meyering@redhat.com>
2165 * doc/find-maint.texi (Security): s/ongest/longest/
2166 (Making Releases): s/the the/the/
2168 Avoid link failure with gcc -fno-common.
2169 * find.c (program_name, starting_desc): Declare "extern".
2171 2008-02-15 Eric Blake <ebb9@byu.net>
2173 Avoid compiler warnings.
2174 * find/pred.c (pred_name_common): Remove unused variable.
2175 * locate/locate.c (print_stats): Avoid undefined format string.
2177 2008-02-15 James Youngman <jay@gnu.org>
2179 * README-CVS: Explain how to update the translations from the
2180 translation project.
2182 * NEWS, configure.ac: Change release number to 4.3.14-CVS.
2184 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
2186 * import-gnulib.config: Add progname.
2188 * lib/Makefile.am (LDADD): Use @LIBINTL@ instead of @INTLLIBS@.
2190 * xargs/xargs.1: Fix a couple of typos.
2192 2008-02-12 James Youngman <jay@gnu.org>
2194 Updated translations: German, Irish, Dutch, Polish, Vietnamese.
2195 * po/de.po, po/ga.po, po/nl.po, po/pl.po, po/vi.po: Updated from
2196 the Translation Project.
2198 Fix Savannah bug #22056, -Xtime tests are off by one second.
2199 * find/defs.h (struct options): Change cur_day_start from time_t
2201 * find/util.c (set_option_defaults): Likewise.
2202 * find/parser.c (get_relative_timestamp): Change the origin
2203 argument from time_t to struct timespec.
2204 (estimate_timestamp_success_rate): Ignore the nanoseconds field of
2205 the timestamp when estimating the probable success rate.
2206 (parse_daystart): Handle the nanoseconds field too.
2207 (do_parse_xmin): The origin argument to get_relative_timestamp()
2208 is of type struct timespec, not time_t.
2209 (parse_used): Likewise.
2210 (parse_time): Likewise.
2211 * find/pred.c (pred_timewindow): in the COMP_EQ case, accept times
2212 exactly at the end of the window and do not accept times exactly
2213 at the start (reversing the previous treatment of the bounds).
2214 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added test for
2215 -mtime 0; find.posix/mtime0.{exp,xo}.
2216 * NEWS: mention this bugfix.
2218 2008-02-09 James Youngman <jay@gnu.org>
2220 * doc/find.texi (xargs options): Moved documentation of xargs'
2221 options into this new section.
2222 (Invoking the shell from xargs): New section providing examples
2223 about "xargs sh -c '...'".
2225 * xargs/xargs.1: Indicate that the "sh -c" trick with xargs
2226 achieves the same thing as BSD's "xargs -o", but in a more
2229 * locate/updatedb.sh: Actually rename the old database to the new
2230 one atomically, instead of just claiming the rename is atomic in a
2231 comment :) This fixes Savannah bug #22057.
2233 * find/find.c (ngettext): Introduce a new macro to help with
2234 internationalising plurals. Use it to allow better
2235 translations of format strings.
2236 * locate/locate.c: Likewise.
2238 2008-01-07 James Youngman <jay@gnu.org>
2240 * xargs/xargs.c: (main): Standardise on "Warning" instead of
2241 "warning" in messages.
2243 * xargs/xargs.c: (add_proc): Use x2nrealloc to extend the pids
2244 array, rather than doubling the size of the buffer (since the old
2245 aproach was vulnerable to overflow).
2247 Reap all available child processes before every fork. This fixes
2248 Savannah bug #21960.
2249 * xargs/xargs.c: (proc_max): since this is a non-negative
2250 quantity, make it unsigned.
2251 (procs_executing): Likewise.
2252 (pids_alloc): Likewise (using size_t).
2253 (procs_executed): In order to prevent possible overflow, make this
2254 a boolean, not a count. We only cared if the previous counter was
2255 zero or not, anwyay.
2256 (add_proc): Set procs_executed to true rather than incrementing it.
2257 (wait_for_proc): When called, always reap all available children.
2258 Add an extra argument which is the minimum number of children we
2259 must reap before returning.
2260 (wait_for_proc_all): Pass the new extra argument.
2261 (xargs_do_exec): Call wait_for_proc() to reap all available
2262 children before forking a new child. Modify other calls to
2263 wait_for_proc to pass the new extra argument.
2264 * NEWS: Mention this change.
2266 2007-12-20 James Youngman <jay@gnu.org>
2268 * find/fstype.c, find/ftsfind.c, find/parser.c, find/pred.c,
2269 find/tree.c, lib/regextype.c, locate/locate.c, xargs/xargs.c,
2270 find.c: Backed out positional paremeter change, as the use of
2271 positional parameters was over-complex and unnecessary. We'll
2272 re-apply the pluralisation support change soon, but without the
2273 positional parameters.
2275 2007-12-20 Jakub Bogusz <qboosh@pld-linux.org> (tiny change)
2277 * xargs/xargs.c (parse_num): Corrected typo in format string
2280 2007-12-20 Clytie Siddall <clytie@riverland.net.au> (tiny change)
2282 * find/find.c (wd_sanity_check): Corrected typo in the format
2283 string for an error message, which might cause a crash in
2284 "oldfind" if a directory we moved into turned out to be a symbolic
2285 link that moved while we were trying to change directory.
2287 2007-12-20 James Youngman <jay@gnu.org>
2289 * configure.ac: Advance the version number, as we are moving on
2293 2007-12-19 James Youngman <jay@gnu.org>
2295 * find/find.c (ngettext): Introduce a new macro to help with
2296 internationalising plurals. Use it with positional parameters in
2297 order to allow better translations of format strings.
2298 * find/fstype.c, find/ftsfind.c, find/parser.c, find/pred.c,
2299 find/tree.c, lib/regextype.c, locate/locate.c, xargs/xargs.c: Likewise.
2301 2007-12-19 Benno Schulenberg <coordinator@translationproject.org> (tiny change)
2303 * find/find.1: Corrected two typos.
2305 2007-12-19 James Youngman <jay@gnu.org>
2307 * po/nl.po: Updated Dutch translation from the Translation project.
2308 * po/pl.po: Likewise for the Polish translation.
2309 * po/sv.po: Likewise for the Swedish translation.
2310 * po/vi.po: Likewise for the Vietnamese translation.
2312 2007-12-13 Eric Blake <ebb9@byu.net>
2314 Allow bootstrapping with autoconf 2.61a.
2315 * configure.ac (AC_AIX, AC_ISC_POSIX): Delete, now that gnulib
2317 (jy_AC_TYPE_INTMAX_T): Delete, now that gnulib stdint module takes
2320 2007-12-09 James Youngman <jay@gnu.org>
2322 * doc/perm.texi: Updated from the upstream source.
2324 * po/nl.po, po/pt.po: Updated from the Translation Project.
2326 2007-12-08 James Youngman <jay@gnu.org>
2328 * xargs/xargs.1: Added examples on stdin handling and more
2329 efficient core file deletion.
2330 * NEWS: Mention this.
2332 * doc/.cvsignore: Ignore regexprops-generic.texi.
2333 * doc/.gitignore: ditto
2335 2007-12-04 James Youngman <jay@gnu.org>
2337 Fix Savannah bug #15384, find misbehaves when parent directory is
2339 * find/testsuite/find.posix/parent.exp: New test
2340 * find/testsuite/find.posix/parent.xo: New test
2341 * find/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO):
2342 Added parent.exp, parent.xo.
2343 * find/find.c (safely_chdir): If safely_chdir_nofollow fails with
2344 SafeChdirFailDestUnreadable, fall back on safely_chdir_lstat.
2346 * find/find.1: Formatting fixes; options should be in bold.
2348 2007-12-02 James Youngman <jay@gnu.org>
2350 Fix Savannah bug #20802, find -delete anomalies
2351 * find/pred.c (pred_delete): Set find's exit status to nonzero if
2353 * find/find.1 (-delete): Document this.
2354 * doc/find.texi (Delete Files): Document this.
2355 * NEWS: Mention the fix.
2357 2007-11-30 James Youngman <jay@gnu.org>
2359 Fix Savannah bug #20865 (-prune -delete without an explicit
2360 -depth is now an error).
2361 * find/parser.c (check_option_combinations): Diagnose the
2362 situation where -delete and -prune are both used, because -delete
2363 turns on -depth and -depth makes -prune do nothing.
2364 * find/tree.c (build_expression_tree): call
2365 check_option_combinations().
2366 * find/defs.h (struct options): Add new boolean field
2368 Also declare check_option_combinations.
2369 * find/util.c (set_option_defaults): Initialise explicit_depth.
2370 * NEWS: Mention this fix.
2372 2007-11-29 James Youngman <jay@gnu.org>
2374 Support the generation of regexprops-generic.texi.
2375 * lib/regextype.h (get_regex_type_context): Used to indicate if a
2376 particular type of regular expression is of interest for
2377 regexprops.texi (which is findutils-specific) or
2378 regexprops-generic.texi (which is not). The "context" is simply
2379 a flag set in a word.
2380 * lib/regextype.c (get_regex_type_context): Implement this.
2381 (regex_map): Assign a context to each regular expression type.
2382 * lib/regexprops.c: Use the context information from regextype.c
2383 to decide which regular expression types to docuemnt in the
2384 output. The selection is indicated on the command line; "generic"
2385 and "findutils" are supported.
2386 (copying): New function, which emits a copyright header into the
2388 (comment): New function for emitting a comment.
2389 (ignore): New function which returns nonzero when the indicated
2390 type of regular expression is not of interest for this version of
2392 (menu): Miss out the non-interesteing regex types.
2393 (get_next): Returns the regex type name for the "next" pointer,
2394 taking into account which regex types are ignored.
2395 (describe_all): Take into account which regex types are ignored,
2396 and emit a copying header also. Include a comment indicating
2397 which "context" was of interest when generating the output.
2398 * doc/Makefile.am: Add regexprops-generic.texi. Generate this
2399 file from regexprops.c.
2401 Check gnulib out with native git, rather than git-cvspserver.
2402 This fixes Savannah bug #21568, for the second time.
2403 * import-gnulib.config (gnulib_version): Switch to using a git
2404 commit id and native git, since git-cvspserver silently fails to
2405 support "cvs update -D".
2406 * import-gnulib.sh (do_checkout): Check gnulib out with git rather
2408 (main): Require 'git' to be available.
2409 (move_cvsdir): Remove any pre-existing gnulib-cvs directory.
2410 * doc/find-maint.texi (Using the GNU Portability Library): Desribe
2411 how we now obtain gnulib. Update the instructions on how we patch
2413 * .gitignore: Ignore gnulib-git, not gnulib-cvs
2415 * Makefile.am (findutils-check-smells): Change from gnulib-cvs to
2417 * README-CVS: Mention the extra dependency on git.
2418 * NEWS: Mention this change.
2420 Add test case for Savannah bug #20803 (-prune return value).
2421 * find/testsuite/find.posix/prune-result.exp: New test for
2422 Savannah bug #20803.
2423 * find/testsuite/find.posix/prune-result.xo: Expected otuput for
2424 new test prune-result.exp.
2425 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added
2426 find.posix/prune-result.exp
2427 (EXTRA_DIST_XO): Added find.posix/prune-result.xo
2429 2007-11-27 James Youngman <jay@gnu.org>
2431 * find/pred.c (pred_prune): Always return true. This fixes
2432 Savannah bug #20803.
2433 * doc/find.texi (Directories): Document the change to -prune.
2434 * find/find.1: Document the change.
2435 * NEWS: Mention the fix.
2437 2007-11-26 James Youngman <jay@gnu.org>
2439 Fix Savannah bug #20970, handling of trailing slashes with -name.
2440 * find/pred.c (pred_name_common): Strip trailing slashes from the
2441 pathname before applying fnmatch() to it. This fixes Savannah bug
2443 * find/testsuite/find.posix/nameslash.exp: Test case for bug #20970.
2444 * find/testsuite/find.posix/nameslash.xo: Expected output file for
2446 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added nameslash.exp.
2447 (EXTRA_DIST_XO): Added nameslash.xo.
2449 Fix Savannah bug #21634, No copy of FDL1.2 included in source
2451 * doc/find.texi: Change license to the GNU Free Documentation
2453 (GNU Free Documentation License): Include fdl.texi
2454 * doc/find-maint.texi (GNU Free Documentation License): Include a
2455 copy of the FDL (it was already under this license).
2456 * doc/Makefile.am (find_maint_TEXINFOS): Include fdl.texi
2457 (find_TEXINFOS): Include fdl.texi
2458 * import-gnulib.config (modules): Include gpl-3.0 and fdl.
2460 * doc/perm.texi: Added copyright license, following the license of
2461 the original source document (perm.texi from coreutils).
2463 2007-11-25 James Youngman <jay@gnu.org>
2465 * Makefile.am (jy-regex-fix): Comment that the regex.c fix needs
2466 to stay until we no longer support Automate-1.9.
2468 * doc/perm.texi (Mode Structure): Fix setgid/setuid typo.
2470 2007-11-24 James Youngman <jay@gnu.org>
2472 * doc/find.texi (Mode Bits): Correct the warning about the change
2473 in behaviour of -perm /000 to indicate that the change has
2474 happened now. This fixes Savannah bug #21628.
2475 * NEWS: Mention this.
2477 2007-11-22 James Youngman <jay@gnu.org>
2479 POSIXLY_CORRECT turns off warnings.
2480 * find/defs.h (struct options): Added member posixly_correct.
2481 This is set when the POSIXLY_CORRECT environment variable is set.
2482 * find/util.c (set_option_defaults): Set options.posixly_correct
2483 if the POSIXLY_CORRECT environment variable is set.
2484 (set_option_defaults): Turn off warnings when POSIXLY_CORRECT is
2486 * find/find.1: Document this.
2487 (Environment Variables): Likewise.
2488 (Warning Messages): Likewise.
2490 Non-POSIX compliant arguments to -perm generate an error when
2491 POSIXLY_CORRECT is set.
2492 * find/parser.c (parse_table): Indicate which primaries are
2494 (non_posix_mode): New function; issues an error message when a
2495 non-POSIX-compliant argument to -perm is used (and POSIXLY_CORRECT
2497 (parse_perm): Call non_posix_mode when a non-POSIX-compliant mode
2499 * find/testsuite/find.gnu/posix-perminvalid.exp: New file; tests
2500 invalid arguments to -perm.
2501 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
2502 posix-perminvalid.exp.
2503 * find/find.1: Document this.
2504 * doc/find.texi (Mode Bits): Likewise
2505 (Environment Variables): Likewise
2508 * xargs/xargs.1: Options should be bold, not italic; filenames
2509 should also be italic. OPTIONS should be a section, not a
2510 subsection. In the description of --max-lines, "max-args" was
2511 corrected to "max-lines". Turn off hyphenation in the SYNOPSIS
2512 section. This fixes Savannah bug #21270.
2514 2007-11-13 James Youngman <jay@gnu.org>
2516 * NEWS, configure.ac: Prepare for the release of findutils-4.3.10.
2518 * import-gnulib.sh (usage): If the existing CVS working tree for
2519 gnulib in the source tree does not yet point at the
2520 git-cvs-pserver repository, move the old gnulib working tree out
2521 of the way and do a fresh checkout. This fixes Savannah bug
2524 2007-11-11 James Youngman <jay@gnu.org>
2527 * configure.ac: Prepared for release of findutils-4.3.9.
2530 * po/POTFILES.in: Use gnulib/lib/getdate.y rather than
2531 gnulib/lib/getdate.c, because the former is the source file, and
2532 because without this change the update-po target of po/Makefile
2535 * import-gnulib.config (gnulib_version): Move to gnulib
2538 * po/hu.po, po/nl.po: Updated from Translation Project.
2540 2007-09-08 James Youngman <jay@gnu.org>
2542 Better documentation on $PATH security checks.
2543 * doc/find.texi (Single File): Better explanation of what makes
2544 certain values of $PATH insecure. This fixes Savannah bug
2546 * find/find.1 (-execdir): Likewise.
2548 Document interaction of -depth/-delete/-prune.
2549 * doc/find.texi (Directories): Mention that "-prune ... -delete"
2550 will not do what you want and will cause the deletion of more
2551 files than you probably intended.
2552 (Delete Files): Likewise, suggest using "-depth" when testing
2553 command lines you plan to eventually add "-delete" to.
2554 (Cleaning Up): Add -depth explicitly to an example which uses
2556 * find/find.1 (-depth): Mention that -delete also implies -depth.
2557 (-delete): Warn against putting -delete first.
2558 (-prune): Also warn against -prune ... -delete.
2559 NEWS: Mention these changes.
2561 2007-08-23 Eric Blake <ebb9@byu.net>
2563 Pick up gnulib change to getline module.
2564 * import-gnulib.config (gnulib_version): Bump date.
2565 * locate/bigram.c: Use <stdio.h>, not getline.h.
2566 * locate/code.c: Likewise.
2567 * locate/frcode.c: Likewise.
2568 * locate/locate.c: Likewise.
2570 * po/ChangeLog: Delete, merge into this file.
2572 2007-08-23 James Youngman <jay@gnu.org>
2574 * po/nl.po: Updated from Translation Project
2576 * find/parser.c (check_path_safety): Assume the path is safe is
2577 $PATH is not set. This avoids a segfault in that situation
2578 and thus fixes Savannah bug #20834.
2580 2007-08-22 James Youngman <jay@gnu.org>
2582 * find/parser.c (parse_path): This is the 'canonical' name once
2584 (parse_wholename): This is not.
2585 (parse_ipath): No longer deprecated.
2586 * NEWS: Mention this.
2588 2007-08-22 Eric Blake <ebb9@byu.net>
2590 Fix Savannah bug #20871.
2591 * find/find.c (main): Remove bogus assertion.
2592 * NEWS: Document the fix.
2594 Update to recent gnulib addition of idcache.h.
2595 * lib/listfile.c (getuser, getgroup): Use header rather than
2596 declaring things ourself.
2597 * po/POTFILES.in (locate/frcode.c): Add missing file.
2599 2007-08-21 Eric Blake <ebb9@byu.net>
2601 Fix for Savannah bug #20273, find -ok with seekable stdin.
2602 * find/find.c (main): Use close_stdin, not close_stdout.
2603 * import-gnulib.config (gnulib_version): Pick up yesno tests.
2604 * NEWS: Document the change.
2605 * build-aux/.cvsignore: Ignore compile.
2607 2007-08-20 Paul Eggert <eggert@cs.ucla.edu>
2608 and Eric Blake <ebb9@byu.net>
2610 Improve translation of xstrtol messages.
2611 * import-gnulib.config (destdir): Upgrade gnulib to 2007-08-11.
2612 * locate/locate.c (dolocate): Adjust to API change of xstrtol
2614 * po/POTFILES.in: Likewise.
2615 * NEWS: Document the enhancement.
2617 2007-08-20 James Youngman <jay@gnu.org>
2619 * doc/find.texi (Directories): Clarify that built commands which
2620 have not been executed yet will be executed before find quits,
2621 even with -quit. Also clarify the difference between -prune and
2624 2007-08-18 Eric Blake <ebb9@byu.net>
2626 Fix Savannah bug #20751.
2627 * lib/listfile.c (list_file): Accomodate gnulib change of 3 Jul
2629 * NEWS: Document this.
2630 Reported by Nigel Stepp.
2631 * THANKS: Sort and update.
2632 * AUTHORS: Add myself.
2634 2007-08-05 Eric Blake <ebb9@byu.net>
2636 Fix Savannah bugs #20662, #20688.
2637 * find/find.c (at_top): Avoid memory leak.
2638 * find/pred.c (do_fprintf, pred_iname, pred_name): Likewise.
2639 (pred_name_common): New function, factored from pred_iname and
2641 * find/parser.c (check_name_arg): Let -nowarn silence -name /.
2642 * locate/locate.c (visit_basename): Avoid memory leak.
2643 * NEWS: Document the changes.
2644 * doc/find.texi (Warning Messages): Document -nowarn's effect on
2646 * find/testsuite/find.gnu/name-slash.exp: New test, to ensure
2647 20662 doesn't regress on '-name /', and that 20688 silences the
2649 * find/testsuite/find.gnu/printf-slash.exp: Likewise.
2650 * find/testsuite/find.gnu/name-slash.xo: Expected results.
2651 * find/testsuite/find.gnu/printf-slash.xo: Likewise.
2652 * find/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
2653 Distribute new tests.
2655 2007-07-31 Eric Blake <ebb9@byu.net>
2657 Allow choice of default arg size, Savannah bug #20594.
2658 * configure.ac (DEFAULT_ARG_SIZE): Check environment for a default
2660 * lib/buildcmd.c (bc_use_sensible_arg_max): Use default size from
2661 configure, if requested.
2662 * README (DEFAULT_ARG_SIZE): Mention the ability to tune this at
2664 * NEWS: Document the change.
2666 2007-07-29 James Youngman <jay@gnu.org>
2668 * po/tr.po: Updated from Translation Project.
2670 2007-07-26 Eric Blake <ebb9@byu.net>
2672 * doc/.cvsignore: Ignore more generated documentation.
2674 2007-07-23 Eric Blake <ebb9@byu.net>
2676 * find/parser.c (parse_version): Avoid compiler warning.
2677 * locate/code.c (includes): Likewise.
2679 2007-07-22 Eric Blake <ebb9@byu.net>
2681 * po/POTFILES.in: Add lib/findutils-version.c.
2683 2007-07-22 James Youngman <jay@gnu.org>
2685 * find/find.1: Corrected a number of typos and fixed up the
2686 alphabetical section ordering. This fixes Savannah bug #20552.
2688 Version banners now comply with the GNU coding standard.
2689 * find/parser.c (parse_version): Use display_findutils_version()
2690 instead of printing the information manually. Don't include
2691 gnulib-version.h since we no longer directly use that header.
2692 * lib/findutils-version.c: Added
2693 * lib/findutils-version.h: Added
2694 * import-gnulib.config (modules): Added version-etc and
2696 * lib/Makefile.am (libfind_a_SOURCES): added findutils-version.c.
2697 * find/version.c: Removed
2698 * find/Makefile.am: Remove version.c
2699 * locate/Makefile.am: Don't link ../find/version.o
2700 * xargs/Makefile.am: Ditto
2701 * xargs/xargs.c (main): Use display_findutils_version()
2702 * locate/code.c (main): Ditto
2703 * locate/frcode.c (main): Ditto
2704 * locate/locate.c (dolocate): Ditto
2705 * locate/updatedb.sh (version): Display copyright information in
2706 the right format. Also ensure that we exit with a nonzero status
2707 if there was an output error for --help and --version.
2708 * find/testsuite/config/unix.exp (find_version): Adjust for
2709 --version format change
2710 * locate/testsuite/config/unix.exp (locate_version): Ditto
2711 * xargs/testsuite/config/unix.exp (xargs_version): Ditto
2712 * NEWS: Mention the change
2714 2007-07-19 Eric Blake <ebb9@byu.net>
2716 * po/POTFILES.in: Update to reflect current location of
2717 translatable strings.
2719 2007-07-17 Eric Blake <ebb9@byu.net>
2721 Ensure 'make distcheck' can pass on cygwin.
2722 * configure.in: Rename...
2723 * configure.ac: ...to this, to match automake recommendations.
2724 * NEWS: Add release dates.
2725 * doc/find-maint.texi: Remove trailing whitespace.
2726 (Documentation): Document where release dates are usefully
2728 * locate/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Be
2730 * .cvsignore: Ignore 'make dist' files.
2731 * po/.cvsignore: Ignore remove-potcdate.sed.
2733 2007-07-14 Eric Blake <ebb9@byu.net>
2735 * import-gnulib.config (gnulib_version): Bump date, to pick
2736 up fix in canonicalize module testing.
2738 2007-07-06 James Youngman <jay@gnu.org>
2740 * po/uk.po, po/nl.po, po/vi.po: Updated from Translation Project.
2742 2007-07-04 James Youngman <jay@gnu.org>
2744 * NEWS: Fixed typos in description of bugfix for bug #20310.
2746 2007-07-03 James Youngman <jay@gnu.org>
2748 Fix Savannah bug #20310.
2749 * m4/nullsort.m4: If we are cross compiling, assume "sort -z" does
2750 not work on the target.
2752 Manpage improvements.
2753 * find/find.1: More consistent use of quotation marks.
2754 * locate/locate.1 (HISTORY): New section.
2756 2007-07-02 James Youngman <jay@gnu.org>
2758 * import-gnulib.sh: (run_gnulib_tool): Don't pass --gpl3 to
2759 gnulib-tool, since the program does not have that option (that was
2760 a local change which proved not to be necessary).
2763 * COPYING: Migrate to version 3 of the GNU General Public license.
2764 * Makefile.am: ditto
2765 * build-aux/check-testfiles.sh: ditto
2766 * build-aux/src-sniff.py: ditto
2767 * debian/copyright: ditto
2768 * doc/find-maint.texi: ditto
2769 * find/defs.h: ditto
2770 * find/find.c: ditto
2771 * find/finddata.c: ditto
2772 * find/fstype.c: ditto
2773 * find/ftsfind.c: ditto
2774 * find/parser.c: ditto
2775 * find/pred.c: ditto
2776 * find/testsuite/config/unix.exp: ditto
2777 * find/tree.c: ditto
2778 * find/util.c: ditto
2779 * import-gnulib.config: ditto
2780 * import-gnulib.sh: ditto
2781 * lib/buildcmd.c: ditto
2782 * lib/buildcmd.h: ditto
2783 * lib/dircallback.c: ditto
2784 * lib/dircallback.h: ditto
2785 * lib/extendbuf.c: ditto
2786 * lib/extendbuf.h: ditto
2787 * lib/forcefindlib.c: ditto
2788 * lib/gnulib-version.h: ditto
2789 * lib/listfile.c: ditto
2790 * lib/listfile.h: ditto
2791 * lib/modetype.h: ditto
2792 * lib/nextelem.c: ditto
2793 * lib/nextelem.h: ditto
2794 * lib/printquoted.c: ditto
2795 * lib/printquoted.h: ditto
2796 * lib/qmark.c: ditto
2797 * lib/regexprops.c: ditto
2798 * lib/regextype.c: ditto
2799 * lib/regextype.h: ditto
2800 * lib/savedirinfo.c: ditto
2801 * lib/savedirinfo.h: ditto
2802 * lib/strspn.c: ditto
2804 * lib/waitpid.c: ditto
2805 * locate/bigram.c: ditto
2806 * locate/code.c: ditto
2807 * locate/frcode.c: ditto
2808 * locate/locate.c: ditto
2809 * locate/locatedb.h: ditto
2810 * locate/testsuite/config/unix.exp: ditto
2811 * locate/updatedb.sh: ditto
2812 * locate/word_io.c: ditto
2813 * po/fetch-po-files: ditto
2814 * xargs/testsuite/config/unix.exp: ditto
2815 * xargs/xargs.c: ditto
2818 * doc/find.texi (Deleting Files): Fixed a typo.
2819 (Deleting Files): Likewise.
2821 New worked example for find.
2822 * doc/find.texi (Copying A Subset of Files): Added a new worked
2825 * doc/find.texi (Updating A Timestamp File): Indicate that %A@ now
2826 includes a sub-second part on many systems.
2828 Include <fcntl.h> unconditionally.
2829 * import-gnulib.config (modules): Also use the fcntl module.
2830 * find/find.c: #include <fcntl.h> unconditionally, since
2831 gnulib provides it if it is absent.
2832 * find/fstype.c: Likewise.
2833 * find/ftsfind.c: Likewise.
2834 * find/parser.c: Likewise.
2835 * find/util.c: Likewise.
2836 * locate/locate.c: Likewise.
2838 2007-06-30 Eric Blake <ebb9@byu.net>
2840 * find/pred.c (pred_timewindow): Avoid gcc warnings.
2841 (format_date): Likewise.
2842 * find/tree.c (calculate_derived_rates): Likewise.
2843 * locate/word_io.c (getword): Likewise.
2845 2007-06-30 James Youngman <jay@gnu.org>
2847 * find/find.1 (EXAMPLES): Added an example of using find and cpio -p
2848 to copy a directory tree, with pruning and omitted files.
2850 * find/pred.c (format_date): Use verify_true for constant
2851 conditions rather than assert.
2852 * xargs/xargs.c (main): Ditto.
2854 Enhancements to the code smell detector.
2855 * Makefile.am (findutils-check-smells): Automate the calling of
2856 build-aux/src-sniff.py.
2857 * build-aux/src-sniff.py: Rework to use a list of regex-based
2858 sniffers, to allow checking types of file other than C. Allow
2859 file-based regex sniffers to give an indication of the line number
2860 where they think the problem (or part of the problem) exists.
2861 Added code smell detectors for a sample Bourne shell problem and
2862 for out-of-date FSF addresses.
2864 * find/tree.c (get_pred_cost): Eliminate unused variable.
2866 Fix Savannah bug #20263 in a more portable way.
2867 * find/tree.c (cost_table_comparison): Avoid casting function
2868 pointers to poiter-to-object, since this is not portable (or
2869 of course conforming). Instead, use memcmp().
2871 2007-06-28 Eric Blake <ebb9@byu.net>
2873 * import-gnulib.sh (run_gnulib_tool): Speed operation when
2874 updating an existing tree.
2876 Allow 'make check' to work without prior 'make all'.
2877 * find/Makefile.am (SUBDIRS): Build in . before testsuite.
2878 * locate/Makefile.am (SUBDIRS): Likewise.
2879 * xargs/Makefile.am (SUBDIRS): Likewise.
2881 Fix Savannah bug #20273, xargs -E with seekable stdin.
2882 * import-gnulib.config (modules): Sort, add closein.
2883 * xargs/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO)
2884 (EXTRA_DIST_XI): Add new test.
2885 * xargs/testsuite/config/unix.exp (xargs_start): Support optional
2886 argument to allow test to run a subshell.
2887 * xargs/testsuite/inputs/sv-bug-20273.xi: New file.
2888 * xargs/testsuite/xargs.posix/sv-bug-20273.xo: Likewise.
2889 * xargs/testsuite/xargs.posix/sv-but-20273.exp: Likewise.
2890 * xargs/xargs.c (main): Use close_stdin, not close_stdout.
2891 * NEWS: Document the fix.
2893 2007-06-27 James Youngman <jay@gnu.org>
2895 Added a maintenance manual.
2896 * doc/find-maint.texi: New file.
2897 * doc/Makefile.am (info_TEXINFOS): Added doc/find-main.texi.
2898 * doc/find.texi (Introduction): Fixed typo.
2900 2007-06-26 Eric Blake <ebb9@byu.net>
2902 * import-gnulib.config (modules): Allow ./configure
2905 2007-06-26 James Youngman <jay@gnu.org>
2907 * build-aux/src-sniff.py: Detect uses of struct stat where the
2908 header file was not included.
2909 * find/find.c: Fix this, and uses of assert without a following
2910 space (the coding standard requires a space, but there are still
2911 a number of cases where other functions are called with no
2913 * find/fstype.c: Ditto.
2914 * find/ftsfind.c: Ditto.
2915 * find/parser.c: Ditto.
2916 * find/pred.c: Ditto.
2917 * find/tree.c: Ditto.
2918 * find/util.c: Ditto.
2919 * lib/buildcmd.c: Ditto.
2920 * lib/buildcmd.h: Ditto.
2921 * lib/extendbuf.c: Ditto.
2922 * locate/frcode.c: Ditto.
2923 * locate/locate.c: Ditto.
2924 * locate/word_io.c: Ditto.
2925 * xargs/xargs.c: Ditto.
2927 * find/tree.c (cost_table_comparison): Avoid < comparison between
2928 function pointer types. Instead cast the function pointers to
2929 (const void*). Both alternatives are undefined C, but the former
2930 actually fails to compile on some systems. This fixes Savannah
2932 * NEWS: mention the fix
2934 * find/tree.c (calculate_derived_rates): Removed assignment to
2935 rate variable following an assert(0) call, which had been added to
2936 silence a "used before initialised" warning, and replace it with a
2937 call to abort, which (a) correctly halts execution if _NDEBUG is
2938 defined and (b) more accurately documents what's happening.
2940 * find/parser.c (get_stat_Ytime): Removed redundant call to abort.
2942 * find/util.c (debug_stat): For consistency, use assert (0) rather
2943 than assert (false).
2945 2007-06-26 James Youngman <jay@gnu.org>
2947 * README-alpha: Mention the findutils-patches mailng list and the
2948 archives for findutils-patches and bug-findutils.
2950 * po/bg.po: Updated from Translation Project.
2952 2007-06-25 James Youngman <jay@gnu.org>
2954 * po/sv.po: Updated Swedish translation.
2956 2007-06-24 James Youngman <jay@gnu.org>
2958 * build-aux/.gitignore, debian/.gitignore, doc/.gitignore,
2959 find/.gitignore, find/testsuite/.gitignore, .gitignore,
2960 lib/.gitignore, locate/.gitignore, locate/testsuite/.gitignore,
2961 m4/.gitignore, po/.gitignore, xargs/.gitignore,
2962 xargs/testsuite/.gitignore: New files to make it more painless to
2963 track findutils sources with git.
2965 * NEWS: Mention the previous change to doc/find.texi.
2967 2007-06-23 James Youngman <jay@gnu.org>
2969 * doc/find.texi (Introduction): Recommend that people check they
2970 are using the latest version before reporting a bug.
2972 2007-06-22 James Youngman <jay@gnu.org>
2974 Better documentation for the fractional part of seconds fields for
2975 -printf and similar actions.
2976 * doc/find.texi (Time Components): Point out that the seconds
2977 field of the timestamp is often printed out with a fractional part
2978 of unspecified length and precision. The '%Tc' field has no
2980 (Combined Time Formats): Point out the same thing for '%T@'.
2981 * find/find.1 (%A): Point out the same thing.
2982 * NEWS: Mention these changes.
2984 Fix various lint-type complaints taken from the rules in the
2985 coreutils Makefile.maint file (see build-aux/src-sniff.py).
2986 * xargs/xargs.c: Removed unnecessary parentheses in "#if defined"
2988 (main): Don't cast the return value of xmalloc.
2989 (add_proc): Don't cast the return value of xmalloc.
2990 * lib/regextype.c: Don't include quotearg.h, we don't need it.
2991 * lib/dircallback.c, lib/nextelem.c, lib/prontquoted.c,
2992 lib/qmark.c, lib/strspn.c, lib/waitpid.c: Assume config.h is available.
2993 * lib/extendbuf.c: Ditto
2994 * lib/listfile.c: Ditto. Also removed unnecessary parentheses in
2995 "#if defined" checks.
2996 (get_link_name): Don't cast the result of xmalloc.
2997 * lib/bigram.c: Removed unnecessary parentheses in "#if defined"
2999 * lib/savedirinfo.c: Assume config.h is available. Also removed
3000 unnecessary parentheses in "#if defined" checks.
3001 * lib/buildcmd.c (bc_do_insert): Don'tcast the result of xmalloc().
3002 * find/tree.c (build_expression_tree): Don't cast the argument to free().
3003 * find/ftsfind.c (set_close_on_exec): Removed unnecessary
3004 parentheses in "#if defined" checks. Also changed "filesystem" ->
3006 * find/util.c (check_nofollow): Removed unnecessary parentheses in
3007 "#if defined" checks.
3008 * find/parser.c (estimate_fstype_success_rate): ditto.
3009 (insert_regex): Do not cast the result of xmaloc(). Removed unnecessary
3010 parentheses in "#if defined" checks. Also changed "filesystem" ->
3012 * find/pred.c: ditto
3013 * find/find.c: "the the" -> "the", "filesystem" -> "file system"
3014 * find/fstype.c: "filesystem" -> "file system" (in comments and
3016 * locate/frcode.c: Removed unnecessary parentheses in "#if
3018 * locate/locate.c (search_one_database): Don't cast the return
3020 (dolocate): Mark error message for translation.
3022 2007-06-21 Eric Blake <ebb9@byu.net>
3024 * locate/.cvsignore: Ignore dblocation.texi.
3025 * build-aux/.cvsignore: Ignore Makefile.
3026 * locate/locate.c (set_max_db_age): Fix typo in error message.
3028 2007-06-19 Eric Blake <ebb9@byu.net>
3030 Fix compilation on cygwin, Savannah bug #20210.
3031 * import-gnulib.config (gnulib_version): Import strcasestr and
3032 updated canonicalize-lgpl-tests.
3033 * lib/dircallback.c (includes): Track gnulib changes.
3035 2007-06-14 James Youngman <jay@gnu.org>
3037 * find/parser.c (parse_time): Use the variable comp, which holds
3038 the planned comparison type, rather than the structure tval, which
3039 has not been initialised yet and contains a random value. This
3040 fixes Savannah bug #20139.
3041 * NEWS: Mention the bugfix.
3043 2007-06-13 James Youngman <jay@gnu.org>
3045 * po/pl.po: Updated Polish translation.
3047 2007-06-12 James Youngman <jay@gnu.org>
3051 * find/find.1 (HISTORY): Document when the find tests -readable,
3052 -writable, -executable and the option -regextype were introduced.
3054 2007-06-12 Nix <nix@esperi.org.uk> (tiny change)
3056 * locate/locate.c (drop_privs): Use groups[0] rather than
3057 groups[1], since groups[] is a one-element array. This is a
3058 buffer overrun affecting root only. In theory it could affect
3059 setuid installations, but I (James Youngman) cannot find an explot
3060 mechanism for it. This fixes Savannah bug#20157.
3061 * NEWS: Mention this fix.
3063 2007-06-12 James Youngman <jay@gnu.org>
3065 Make the test suite work when run as root.
3066 * find/testsuite/config/unix.exp (fs_superuser): Abstract out the
3067 check which discovers if we have superuser privileges on the
3068 filesystem (taken from access.exp).
3069 * find/testsuite/find.gnu/access.exp: Call fs_superuser.
3070 * find/testsuite/find.gnu/fprint-unwritable.exp: Use fs_superuser.
3072 * po/vi.po, ga.po, nl.po: Updated translations
3073 * po/findutils.pot: Updated template file
3075 2007-06-09 James Youngman <jay@gnu.org>
3079 Check that we can correctly read old-format databases which are
3080 big-endian or little endian.
3081 * locate/testsuite/config/unix.exp (locate_from_db): New function;
3082 supports testing locate against a provided database.
3083 * locate/testsuite/locate.gnu/bigendian.exp: New test; make sure
3084 we can read an old-format big-endian database.
3085 * locate/testsuite/locate.gnu/bigendian.xo: Expected output from
3087 * locate/testsuite/locate.gnu/littleendian.exp: New test; make sure
3088 we can read an old-format little-endian database.
3089 * locate/testsuite/locate.gnu/locateddb.old.powerpc.xi: Old format
3090 big endian database file, for supporting bigendian.exp.
3091 * locate/testsuite/locate.gnu/littleendian.xo: Expected output from
3092 littleendian.exp test.
3093 * locate/testsuite/locate.gnu/locateddb.old.x86.xi: Old format
3094 little endian database file, for supporting littleendian.exp.
3095 * locate/testsuite/Makefile.am: Distribute littleendian.exp,
3096 bigendian.exp and related .xi and .xo files.
3099 * doc/find.texi (Size Directives): Compare %b with %s/512, not
3100 %s/1024. This fixes (again) Savannah bug #19596.
3101 * NEWS: mention the fix.
3103 Avoid using the non-portable function putw().
3104 * locate/locatedb.h: Declare putword().
3105 * locate/frcode.c: Include <stdbool.h> as locatedb.h now requires
3107 * locate/code.c (main): Use putword() rather than putw(), because
3108 the latter was removed from SUSv3. This fixes Savannah bug #19980.
3109 Also include <stdbool.h> as locatedb.h now requires this.
3110 * locate/word_io.c (putword): Define the new function putword.
3112 Ensure that <config.h> is included before any system header
3113 * find/defs.h: Do not include <config.h> from "defs.h". Instead
3114 just complain if it was not already included, since it needs to
3115 be included first of all, even before system headers (in case
3116 gnulib had replaced a system header). Check
3117 ALREADY_INCLUDED_CONFIG_H to determine this.
3118 * configure.in: Always define ALREADY_INCLUDED_CONFIG_H in
3120 * find/find.c: Include config.h before defs.h.
3121 * find/finddata.c: ditto.
3122 * find/fstfind.c: ditto.
3123 * find/parser.c: ditto.
3124 * find/pred.c: ditto.
3125 * find/util.c: ditto
3126 * find/tree.c: ditto (fixing Savannah bug #20128).
3128 * m4/noreturn.m4 (jy_AC_ATTRIBUTE_NORETURN): Use AC_LANG_PROGRAM
3129 inside AC_COMPILE_IFELSE.
3131 * doc/find.texi (Security Considerations for locate): Discuss in
3132 detail the buffer overrun when reading old-format locate
3133 databases. This is CVE reference CVE-2007-2452.
3135 2007-06-05 James Youngman <jay@gnu.org>
3137 Guess the byte-order of old-format locate databases.
3138 * locate/word_io.c (getword): Make the endian_state_flag parameter
3139 an enum rather than an int. If we are in the initial ("don't
3140 know") byte-order guessing state and the swapped value is out of
3141 range, use this as evidence that the byte order is native.
3142 * locate/locatedb.h: Declare getword accordingly.
3143 * locate/locate.c (struct process_data): Added endian_state
3144 member, which remembers for us what the big/little endian order
3145 guessing state is when we read an old-format database.
3146 (visit_old_format): Use the procdata.endian_state rather than a
3147 local variable, so that the information can persist across calls.
3148 (i_am_little_endian): Locate figures out if we needed to byteswap
3149 the words in an old-format database, but that is an implementation
3150 detail. Therefore we figure out our own byte order so that we can
3151 produce a more relevant message for --statistics. The
3152 i_am_little_endian() returns nonzero if the current host has
3153 little-endian byte order.
3154 (search_one_database): Report the byte-order of old-format
3157 2007-06-04 James Youngman <jay@gnu.org>
3159 * locate/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
3160 Added old_prefix.exp and old_prefix.xo, a new test case for long
3161 shared rpefixes with the old database format.
3163 * locate/locate.c (visit_old_format): Use getword() from word_io.c
3164 instead of getw(), because getw() is not in POSIX.
3165 * locate/word_io.c: New file, providing replacement for getw().
3166 * locate/locatedb.h: Declare getword()
3167 * locate/Makefile.am (locate_SOURCES): Added word_io.c
3169 * locate/testsuite/config/unix.exp (locate_start): Make the
3170 failure messages slightly more explicit; indicate what went wrong
3173 2007-06-03 James Youngman <jay@gnu.org>
3175 * locate/locate.c (visit_old_format, extend, toolong): Extend the
3176 buffer used to build the current pathname when reading an
3177 old-format database. The new function extend is called to do
3178 this. The new function toolong is called to report a fatal error
3179 when the buffer size would otherwise exceed SIZE_MAX. This fixes
3180 Savannah bug #20014, which is a security-related problem with the
3181 CVE identifier CVE-2007-2452.
3183 * configure.in: Determine if the setgroups function is available,
3184 and set HAVE_SETGROUPS if so.
3185 * locate/locate.c (drop_privs): Call setgroups() only if
3186 HAVE_SETGROUPS indicates that it is available. This fixes
3187 Savannah bug #19981.
3189 * po/vi.po: Updated Vietnamese translation
3191 2007-05-31 James Youngman <jay@gnu.org>
3193 * find/parser.c (parse_time): Once we have determined the
3194 comparison type, restore the original time argument since
3195 get_relative_timestamp() also wants to see it. This fixes
3196 Savannah bug #20005.
3198 * po/findutils.pot, ga.po, pt.po, tr.po, pl.po: updated from the TP
3201 2007-05-31 Jakub Bogusz <qboosh@pld-linux.org> (tiny change)
3203 * find/parser.c (parse_group): Correct typo in error message.
3204 (check_path_safety): same
3206 2007-05-27 James Youngman <jay@gnu.org>
3208 * import-gnulib.config (modules): Import sys_stat.
3209 (gnulib_version): Update to 2007-05-26. This fixes a compilation
3210 error in stdlib.h with the DEC C compiler. This fixes Savannah
3213 * find/parser.c (safe_atoi): New function, like atoi, but which
3214 calls error(1, ...) when the argument is invalid or out of range.
3215 (parse_group): Use safe_atoi.
3216 (insert_depthspec): Use safe_atoi
3217 (parse_user): Use safe_atoi
3219 * configure.in: Check for fabs in libm (fixing a compilation error
3222 * import-gnulib.config (modules): Import the wcwidth module to
3223 provide it on those systems (such as BeOS) which lack it.
3225 * find/pred.c (file_sparseness): If st_blocks is not present in
3226 struct stat, the file has a sparseness of 1.0.
3228 * doc/find.texi (Size Directives): Document the %S format
3229 directive for -printf.
3231 * find/pred.c (mode_to_filetype): Don't use S_IFSOCK on systems
3232 which lack that macro. POSIX systems are allowed to lack
3233 sockets (it's an XSI extension).
3234 (file_sparseness): If struct stat lacks st_blocks, assume all
3235 files have a spearseness of 1.0.
3237 * import-gnulib.config (modules): Import fchdir inorder to fix an
3238 undefined-symbol error for fchdir on BeOS.
3240 2007-05-26 James Youngman <jay@gnu.org>
3242 Code refactoring in locate.
3243 * locate/locate.c (visit): New function, into which we factor out
3244 the traversal of the inspector list.
3245 (process_simple): Use visit().
3246 (process_or): Use visit().
3247 (process_and): Use visit().
3249 Speed improvements in locate for unibyte locales.
3250 * locate/locate.c (visit_substring_match_nocasefold_wide): Renamed
3251 from visit_substring_match_nocasefold.
3252 (visit_substring_match_casefold_wide): Renamed from
3253 visit_substring_match_casefold.
3254 (visit_substring_match_casefold_narrow): Special case of
3255 visit_substring_match_casefold_wide which we use for unibyte
3256 locales; we use strcasestr() rather than mbscasestr().
3257 (visit_substring_match_nocasefold_narrow): Ditto, using strstr()
3258 instead of mbsstr().
3260 * find/parser.c (parse_gid): Return an explicit boolean constant
3261 rather than automatically converting from a pointer, because the
3262 gnulib substitute for bool (or _Bool) in c89 environments lacking
3263 bool does not support that conversion. One affected system is Sun
3264 WorkShop Compilers 5.0 98/12/15 C 5.0 on Solaris 7. This is
3265 Savannah bug #19970, reported by Nelson Beebe.
3266 (parse_inum): Ditto.
3267 (parse_links): Ditto.
3269 (check_path_safety): declarations need to go before code, not
3270 interspersed. Move declaration of char* s.
3272 * xargs/testsuite/xargs.posix/rc-125.exp: Explain Savannah bug
3273 #19969. This bug is not yet fixed.
3275 * find/defs.h: #include <stdint_.h>, for uintmax_t. This should
3276 fix a compilation error on DEC C V5.9-005 on Digital UNIX V4.0F
3277 (Rev. 1229). This is Savannah bug #19965, reported by Nelson
3280 * find/defs.h: Don't include <errno.h>, since it is not needed in
3281 the header file itself. The "extern int errno;" declaration is
3283 * find/parser.c: Include <errno.h>
3285 * find/util.c: Ditto
3287 2007-05-24 James Youngman <jay@gnu.org>
3289 * find/util.c (check_nofollow): If O_NOFOLLOW is defined but 0,
3290 act as if it is undefined. This should prevent a runtime
3291 assertion failure on IRIX 6.5. This fixes Savannah bug #19948,
3292 reported by Nelson Beebe.
3294 * m4/noreturn.m4: New file, testing for support of __attribute__
3295 ((__noreturn__)). Defines jy_AC_ATTRIBUTE_NORETURN and sets
3296 HAVE_ATTRIBUTE_NORETURN.
3297 * configure.in: Call jy_AC_ATTRIBUTE_NORETURN.
3298 * find/defs.h (ATTRIBUTE_NORETURN): Define to nothing if
3299 HAVE_ATTRIBUTE_NORETURN is not set in config.h. This should fix a
3300 compilation error with non-GCC compilers. This is Savannah bug
3301 #19967, reported by Nelson Beebe.
3303 * configure.in (FINDLIBS): Update FINDLIBS to link against -lm for
3304 modf. This fixed a link error on HP-UX. This fixes Savannah
3305 bug #19966, reported by Nelson Beebe.
3306 * find/Makefile.am (LDADD): Use @FINDLIBS@
3308 2007-05-21 James Youngman <jay@gnu.org>
3312 * build-aux/Makefile.am (EXTRA_DIST): Added man-lint.sh.
3314 * locate/locate.c (drop_privs): pass the correct list of groups to
3315 setgroups(). Previously, if root invoked locate, their group ID
3316 would have been set to a random value. The same bug also caused
3317 an array overrun past the end of the local array groups[]. The
3318 variable which gets overwritten by the buffer overrun on x86 is
3319 'what'. The value of that variable is always changed before it is
3320 used, and so I believe that this buffer overrun will not cause a
3321 crash. The only effect of the bug therefore would be for locate
3322 to change group to a random group ID since groups[0] is
3323 uninitialised. On my test system this random group ID is 0
3324 anyway. The effect does not depend on any externally-controllable
3325 information, so it is unlikely this is exploitable. This bug is
3326 detailed as bug# 19923.
3328 2007-05-19 James Youngman <jay@gnu.org>
3330 * find/find.1: Spurious .R directives (.R is not a directive)
3331 should be .B. This fixes Savannah bug #19871.
3332 * build-aux/man-lint.sh: New file; verifies that the specified
3333 manual pages do not provoke error messages from troff. This is
3334 used to detect further occurrences of Savannah bug #19871.
3335 * find/Makefile.am (dist-hook): Run findutils-check-manpages,
3336 which invokes man-lint.sh.
3337 * locate/Makefile.am (dist-hook): ditto
3338 * xargs/Makefile.am (dist-hook): ditto
3340 * .cvsignore: Ignore ylwrap, which automake-1.10 wants us to have
3341 a copy of for some reason
3343 * import-gnulib.sh (main): New option -a which just runs the
3344 autotools without reimporting gnulib.
3346 * Makefile.am (jy-regex-fix): The previous explanatory comment
3347 refers to the jy-regex-fix target, not to dist-hook, so it has
3350 2007-05-08 James Youngman <jay@gnu.org>
3352 * find/defs.h (struct predicate.args): str is now const.
3354 * find/parser.c (get_comp_type): get_comp_type now takes a const
3357 (get_relative_timestamp): ditto. Also use collect_arg().
3358 (collect_arg_stat_info): New function; collects a command-line
3359 argument and returns its xstat information, in one go.
3360 error(1,...) is called if the stat fails.
3361 (parse_anewer): Use collect_arg().
3362 (parse_cnewer): ditto
3363 (parse_fprint): ditto
3364 (parse_fstype): ditto
3365 (parse_group): ditto
3366 (parse_ilname): ditto
3367 (parse_iname): ditto
3368 (parse_iwholename): ditto
3369 (parse_lname): ditto
3370 (insert_depthspec): ditto
3372 (parse_newer): ditto
3373 (parse_wholename): ditto
3375 (parse_regextype): ditto
3376 (insert_regex): ditto
3377 (parse_samefile): ditto
3380 (insert_type): ditto
3382 (parse_size): When the size argument is invalid but consists only
3383 of a valid suffix char, avoid issuing an error message about a
3384 blank argument. Append the suffix letter again.
3385 (parse_xdev, parse_ignore_race, parse_noignore_race, parse_warn,
3386 parse_xtype): Remove casts to void for some function parameters
3387 that were, in fact, used.
3389 * find/testsuite/find.gnu/fprint-unwritable.exp: new test
3390 * find/testsuite/find.gnu/fprint0_stdout.exp: new test
3391 * find/testsuite/find.gnu/fprint0_stdout.xo: new test
3392 * find/testsuite/find.gnu/mindepth-arg.exp: new test
3393 * find/testsuite/find.gnu/mindepth-arg.xo: new test
3394 * find/testsuite/find.gnu/mindepth-badarg.exp: new test
3395 * find/testsuite/find.gnu/print_stdout.exp: new test
3396 * find/testsuite/find.gnu/print_stdout.xo: new test
3397 * find/testsuite/find.gnu/samefile-missing.exp: new test
3398 * find/testsuite/find.gnu/samefile-p-brokenlink.exp: new test
3399 * find/testsuite/find.gnu/samefile-p-brokenlink.xo: new test
3400 * find/testsuite/find.gnu/used-invarg.exp: new test
3401 * find/testsuite/find.gnu/used-missing.exp: new test
3402 * find/testsuite/find.gnu/user-invalid.exp: new test
3403 * find/testsuite/find.posix/group-empty.exp: new test
3404 * find/testsuite/find.posix/group-missing.exp: new test
3405 * find/testsuite/find.posix/name-missing.exp: new test
3406 * find/testsuite/find.posix/size-invalid.exp: new test
3407 * find/testsuite/find.posix/size-missing.exp: new test
3408 * find/testsuite/find.posix/typearg.exp: new test
3409 * find/testsuite/find.posix/user-empty.exp: new test
3410 * find/testsuite/find.posix/user-missing.exp: new test
3412 2007-05-06 James Youngman <jay@gnu.org>
3414 * find/tree.c: (costlookup): Added pred_fls to the optimiser's
3415 predicate cost lookup table.
3417 * lib/printquoted.c (print_quoted): Change return value from void
3418 to int, to allow the caller to detect failures.
3419 * lib/printquoted.h (print_quoted): Change declaration
3422 * find/defs.h (struct format_val): Incldue a 'filename' member so
3423 that we can provide more useful error messages (e.g. when we fail
3424 to flush or close an output file).
3425 (nonfatal_file_error): declare new function.
3427 * find/util.c (traverse_tree): Utility function which calls a
3428 callback on every node of the parse tree.
3429 (flush_and_close_output_files): Flush all output streams. Close
3430 all output files. Report any errors.
3431 (cleanup): Use traverse_tree() to invoke
3432 complete_pending_execdirs().
3433 (report_file_err): refactored error reporting function, extracted
3434 from fatal_file_error.
3435 (nonfatal_file_error): New function.
3437 * find/pred.c (checked_fprintf): New function, which performa an
3438 fprinf(), and checkes the result. If the operation resulted in an
3439 error, a nonfatal error message is issued.
3440 (checked_print_quoted): Ditto, for print_quoted rather than
3442 (checked_fwrite): Ditto for fwrite instead of fprintf.
3443 (checked_fflush): Ditto for fflush
3444 (do_fprintf): Use the checked_*() functions rather than their
3445 direct counterparts, to ensure that I/O errors are detected. This
3446 fixes Savannah bug #19416.
3447 (pred_fls): Use args.printf_vec instead of args.stream, which has
3449 (pred_ls): just call pred_fls.
3450 (pred_fprint0): use args.printf_vec, instead of the now removed
3452 (pred_print0): just call pred_fprint0
3454 * find/parser.c: (insert_fprintf): Make the caller collect the
3455 format argument from the argument list.
3456 (open_output_file): Enhance to set up defaults in
3457 our_pred->args.printf_vec as well as opening the output file.
3458 Also record the filename for possible later use in an error
3460 (collect_arg): Convenience function for collecting an argument
3461 from the argument list.
3462 (insert_fls): Refactored the body of parse_fls out so that
3463 parse_ls can use it.
3464 (parse_fls): call insert_fls.
3466 (parse_fprint): Instead of setting up our_pred->args.printf_vec
3467 manually, call open_output_file() to do it.
3468 (parse_print): Same, but by calling open_stdout().
3469 (insert_fprint): Make the caller collect the filename argument,
3470 and delegate the setup of our_pred->args.printf_vec to either
3471 open_output_file() (for parse_fprint and parse_fprint0) or
3472 open_stdout (parse_print0).
3473 (parse_fprint0): Use collect_arg().
3474 (parse_print0): Use insert_fprint(), just like parse_fprint0.
3475 (parse_printf): Use collect_arg().
3476 (parse_fprintf): Use collect_arg().
3478 2007-05-05 James Youngman <jay@gnu.org>
3482 * find/parser.c (parse_samefile): Hold a file descriptor open on
3483 the reference file in order to prevent pred_samefile getting
3484 fooled by inode reuse. Pay attention to race conditions on
3485 systems lacking O_NOFOLLOW when the -P option is in force. This
3486 fixes Savannah bug #19806.
3488 * find/defs.h (struct samefile_file_id): New struct, like dir_id
3489 but including a file descriptor on the reference file.
3491 * find/pred.c (pred_type): -type should return false if the file
3492 has mode 00000, as opposed to having an assertion failure. This
3493 fixes Savannah bug #16378.
3495 * find/ftsfind.c (consider_visiting): Issue a warning message if
3496 none of the mode bits are set for a file (i.e. st_mode==00000).
3497 * find/util.c (get_statinfo): ditto
3498 * find/util.c (hook_fstatat): Introduced debug code (normally
3499 disabled) for testing Savannah bug #16378.
3501 2007-05-01 James Youngman <jay@gnu.org>
3503 * find/find.c (wd_sanity_check): corrected the type of %ld fprintf
3504 arguments in error messages.
3505 * find/fstype.c: include "error.h" for the declaratio of error().
3506 * find/ftsfind.c: include "error.h" for the declaratio of
3507 error(). Include dircallback.h for the correct declararion of
3509 * find/parser.c: include getdate.h (for declaration of getdate)
3510 and error.h (for the declaration of error).
3511 (find_parser): Removed unused variable p.
3512 * find/pred.c (pred_timewindow): Removed unused variable delta.
3513 (do_fprintf): Removed unused variable cc.
3514 * find/tree.c: Include error.h (for the declaration of error()).
3515 (build_expression_tree): removed sourious extra arguments in call
3517 * find/util.c: include error.h.
3518 * lib/buildcmd.h (get_line_max): Comment out unused function.
3519 * lib/listfile.c: Include dircallback.h.
3520 * locate/code.c: Include errno.h, erorr.h, progname.h and
3522 (inerr): New function for reporting read errors.
3523 (outerr): New function for reporting output errors.
3524 (main): Call inerror when fgets fails. Call outerr when fwrite
3525 or putc or putw fails.
3526 * locate/frcode.c (put_short): Return boolean value indicating
3528 (outerr): New function for reporting write errors.
3529 (main): Call outerr if call to putc() or puts() or put_short()
3531 * locate/locate.c (search_one_database): diagnose corruption if a
3532 traditional-style database is too short to include a complete
3535 2007-04-30 James Youngman <jay@gnu.org>
3537 * find/defs.h: Change all predicate functions to take a const
3538 char* argument as the pathname, not a char*. Modify the parser
3539 table definition accordingly.
3540 * find/parser.c: Ditto
3541 * find/pred.c: Ditto
3542 * find/pred.c (do_fprintf): copy the pathname string for the %H
3543 and %h cases, since we can no longer modify the string in place.
3544 * lib/listfile.c (print_name, list_file,
3545 print_name_without_quoting, print_name_with_quoting): Use const
3546 char * param for pathname.
3547 * lib/listfile.h (list_file): Use const char * param for
3550 2007-04-29 James Youngman <jay@gnu.org>
3552 * find/defs.h: Declare fatal_file_error(), a function for
3553 reporting immediately-fatal file errors, which appropriately
3554 quotes the file name. The function does not return. Also define
3555 ATTRIBUTE_NORETURN. Record the currently-required quoting style
3558 * find/find.c, find/ftsfind.c, find/parser.c, find/pred.c,
3559 find/util.c: Call fatal_file_error() for fatal file errors. Use
3560 quotearg_n_style() to quote filenames which are used in error
3561 message that aren't fatal. Use options.err_quoting_style as the
3562 quoting style. This fixes Savannah bug #18203.
3563 * locate/locate.c: ditto
3564 * xargs/xargs.c: ditto
3566 * lib/listfile.c: To use alloca, just #include <alloca.h>. Gnulib
3567 handles the rest. Also these days, <stdlib.h> and <string.h> can
3568 just be included unconditionally.
3569 * lib/qmark.c: Fixed comment on first line describing the module.
3571 2007-04-29 Michael Haubenwallner <michael.haubenwallner@salomon.at> (tiny change)
3573 * find/defs.h (pred_open) Rename to pred_openparen to avoid
3574 problems with the macrtos which build the parser tabnles on
3575 platforms where 'open' is in fact a macro whcih expands to
3576 open64. The problem was that token pasting put pred_open64 into
3577 the parser table, but the function was still defined as
3578 parse_open. This fixes Savannah bug #19371.
3580 * find/parser.c (parse_open, parse_close): ditto. Also change
3581 repferences to pred_open and pred_close similarly.
3582 * find/parser.c (parse_openparen, parse_closeparen): ditto
3584 2007-04-28 James Youngman <jay@gnu.org>
3586 * find/testsuite/find.gnu/deletedir.exp,
3587 find/testsuite/find.gnu/deletedir.xo: New test.
3588 * find/testsuite/find.gnu/deletefile.exp,
3589 find/testsuite/find.gnu/deletefile.xo: New test.
3590 * find/testsuite/Makefile.am: Distribute the new tests
3591 deletefile.exp and deletedir,exp, with their expected-output (.xo)
3593 * find/testsuite/config/unix.exp (find_start): Add a new "setup"
3594 parameter called just before each time find is invoked. This
3595 allows last-minute tasks to be performed. This feature is
3596 essential for find commands that modify the filesystem, since
3597 otherwise we cannot use our strategy of invoking both binaries at
3598 each optimisation level.
3600 * find/util.c (optionh_stat, optionp_stat, optionl_stat): Assert
3601 that state.cwd_dir_fd is valid.
3603 * find/parser.c (parse_delete): Set need_stat to false, since we
3604 don't need the stat information in pred_delete.
3605 * find/pred.c (pred_delete): If unlinkat() with a zero flags
3606 parameter fails with errno==EISDIR, just try again with
3607 flags=AT_REMOVEDIR. That way we normally avoid the cost of a
3608 stat. If we happen to have the stat information to hand anyway,
3609 we make sure we get it right the first time.
3611 * lib/buildcmd.c (bc_init_controlinfo): Eliminate confusing extra
3612 variable arg_max. Add return value
3613 BC_INIT_CANNOT_ACCOMODATE_HEADROOM for the case where the
3614 environment itself is not too large, but the required headroom
3615 cannot also be accomodated. The caller now passes in the amount
3616 of headroom required.
3617 (bc_use_sensible_arg_max): Use the environment size consistently;
3618 this is accounted for already in posix_arg_size_max, so there is
3619 no need to re-measure the size of the environment.
3620 * lib/buildcmd.h: Define BC_INIT_CANNOT_ACCOMODATE_HEADROOM and
3621 add the headroom parameter to the prototype of bc_init_controlinfo().
3622 * xargs/xargs.c (main): Define XARGS_POSIX_HEADROOM as 2048 and
3623 use that symbolic value. Pass XARGS_POSIX_HEADROOM to
3624 bc_init_controlinfo(). Handle the case where
3625 BC_INIT_CANNOT_ACCOMODATE_HEADROOM is returned by
3626 bc_init_controlinfo().
3627 * find/parser.c (new_insert_exec_ok): Pass the required headroom to
3628 bc_init_controlinfo() and handle the error return
3629 BC_INIT_CANNOT_ACCOMODATE_HEADROOM.
3631 * xargs/xargs.1: Correct the description of the default value and
3632 maximum value for the -s option of xargs.
3634 * xargs/xargs.c (main): Modify the assertions not to assume that
3635 bc_ctl.arg_max is 2KiB less than ARG_MAX, since sysconfig() may
3636 have returned a value for _SC_ARG_MAX which is greater. For
3637 example, AIX 5.3 can do this. This should fix Savannah bug
3640 2007-04-25 James Youngman <jay@gnu.org>
3642 * find/tree.c (predlist_dump, predlist_merge_nosort): These
3643 functions were unused and commented out. Removed.
3644 (mark_stat) No longer used. Removed.
3645 (mark_type) No longer used. Removed.
3647 * find/parser.c (new_insert_exec_ok): When checking for {} in the
3648 arguments to -exec..., use mbsstr() rather than strstr() in order
3649 to cope bettwe with multibyte locales.
3651 * lib/buildcmd.c: Don't define mbsstr() locally. Instead, call
3654 2007-04-24 James Youngman <jay@gnu.org>
3656 * lib/buildcmd.c: Added some comments outlining how we might
3657 change the implementation to support figuring out the real ARG_MAX
3660 2007-04-23 James Youngman <jay@gnu.org>
3662 * find/defs.h (struct predicate_performance_info): New data
3663 structure for holding perofmance statistics.
3664 (struct predicate: include predicate_performance_info
3665 (apply_predicate): change from macro to function
3666 (pred_is): new macro, for predicate identity testing
3667 (enum DebugOption): Added DebugSuccessRates
3668 * find/find.1: Document option "-D rates" which turns on
3670 * doc/find.texi: ditto
3671 * find.c (main): Call show_success_rates() before exiting.
3672 (apply_predicate): remove the macro defintion, declare equivalent
3674 * find/ftsfind.c (main): Call show_success_rates() before
3675 exiting. Use apply_predicate().
3676 (show_outstanding_execdirs): use pred_is().
3680 2007-04-22 Eric Blake <ebb9@byu.net>
3682 * xargs/xargs.c (main): Don't assume LINE_MAX exists (i.e. is
3685 * locate/updatedb.sh (PRUNEPATHS): Exclude /proc by default.
3687 2007-04-22 James Youngman <jay@gnu.org>
3689 * doc/Makefile.am: When cross-compiling, 'make clean' should not
3690 delete doc/regexprops.texi, becaue we can't regenerate it. Fixes
3691 Savannah bug #19658.
3693 * locate/Makefile.am (BUILT_SOURCES): Automatically generate
3694 dblocation.texi, which records the default database location.
3695 * doc/find.texi: Collect the default database location from
3696 ../locate/dblocation.texi, and use LOCATE_DB in various places.
3697 Document the fact that updatedb can generate slocate-compatible
3698 databases. Document the --dbformat option of updatedb.
3699 * locate/frcode.c (main): Implemented the -S option which allows the
3700 generation of an slocate secure database.
3701 * locate/updatedb.sh: New option --dbformat which selects which
3702 database format to use.
3703 * locate/updatedb.1 (--dbformat): Document the new option.
3706 * find/testsuite/find.gnu/access.exp: fixed a typo which prevented
3707 the test correctly being skipped when run as root. This re-fixes
3708 Savannah bug# 18414, I hope.
3710 2007-04-21 James Youngman <jay@gnu.org>
3714 * find/locate/locatedb.5: Clarifications to the description of the
3715 LOCATE02 format. Organised the material under a number of
3716 headings. Documented the slocate database format.
3718 2007-04-21 James Youngman <jay@gnu.org>
3720 * find/testuite/Makefile.am (EXTRA_DIST_EXP): added
3721 find/testsuite/find.posix/sv-bug-19617.exp
3723 2007-04-20 Maxim V. Dziumanenko <dziumanenko@gmail.com>
3725 * po/uk.po: New Ukranian translation.
3726 * configure.in: Added "uk" for Ukranian.
3728 2007-04-19 Peter Breitenlohner <peb@mppmu.mpg.de> (tiny change)
3730 * locate/bigram.c (main): Set the initial pathname to the empty
3731 string, to avoid decompression problems if the initial pathname
3732 begins with a space. This fixes Savannah bug #19484.
3733 * locate/code.c (main): ditto
3735 2007-04-19 James Youngman <jay@gnu.org>
3737 * locate/updatedb.1 (--help): Option name should be bold, not
3740 * find/testsuite/find.gnu/execdir-hier.exp: Avoid running
3741 -execdir based tests if "." is on $PATH. Fixes Savannah bug
3743 * find/testsuite/find.gnu/execdir-in-unreadable.exp: ditto
3745 * find/testsuite/config/unix.exp (touch): New procedure touch,
3746 replacing "exec touch" for greater efficiency.
3747 * find/testsuite/find.posix/depth1.exp: Change "exec touch" to
3749 * find/testsuite/find.posix/files-not-expressions1.exp: ditto
3750 * find/testsuite/find.posix/files-not-expressions2.exp: ditto
3751 * find/testsuite/find.posix/files-not-expressions3.exp: ditto
3752 * find/testsuite/find.posix/links.exp: ditto
3753 * find/testsuite/find.posix/perm-vanilla.exp: ditto
3754 * find/testsuite/find.posix/sv-bug-15235.exp: ditto
3755 * /find/testsuite/find.posix/sv-bug-19613.exp: ditto
3757 * find/testsuite/find.gnu/access.exp: Fix savannah bug #18414 by
3758 skipping the test if the user can read any file (e.g. is root or
3759 is an Admin user under Cygwin).
3761 2007-04-17 James Youngman <jay@gnu.org>
3763 * import-gnulib.config (gnulib_version): Use the 2007-04-17
3764 version of gnulib to fix a compilation error on Cygwin. This
3765 fixes Savannah bug #19619.
3767 * find/testsuite/find.posix/sv-bug-19605.exp: New test, for
3768 Savannah bug #19605.
3769 * find/testsuite/find.posix/sv-bug-19617.exp: New test, for
3770 Savannah bug #19617.
3771 * find/ftsfind.c (consider_visiting): if fts_read() returns
3772 enf->fts_info==FTS_NS, check for and diagnose a symbolic link
3773 loop. This fixes Savannah bugs #19605 and #19617.
3775 * find/find.c (process_path): collect the stat information for
3776 directories even if we already have the mode information, because
3777 we need to use the members st_nlink and st_rdev in for the leaf
3778 optimisation and loop detection, respectively. This fixes
3779 Savannah bug #19616.
3781 * find/ftsfind.c (is_fts_enabled): Return a copy of ftsoptions,
3782 not a copy of the (uninitialised) input argument. This fixes
3783 Savannah bug #19615.
3785 * find/ftsfind.c (consider_visiting): If fts_read() returned
3786 FTS_NS, then remember that the stat information is not valid, and
3787 therefore don't set state.have_type or state.have_stat. This
3788 fixes Savannah bug #19613.
3790 * find/testsuite/find.posix/sv-bug-91613.exp,
3791 * find/testsuite/find.posix/sv-bug-91613.xo: New test for Savannah
3792 bug 19613 (assertion failure on symbolic link loop).
3794 * find/testsuite/config/unix.exp: Correctly diagnose a test case
3795 which fails because find was expected to fail and instead
3797 * find/testsuite/find.gnu/exec-many-rtn-failure.exp: The child
3798 process in this test should return non-zero, not zero. Therefore
3799 run "false" instead of "true".
3801 2007-04-15 James Youngman <jay@gnu.org>
3805 * find/find.1: "-printf %b": blocks are 512 bytes. Fixes
3806 Savannah bug #19596.
3808 * doc/Makefile.am (regexprops.texi): Do not use $(RM) because many
3809 versions od make do not set it, and so it expands to nothing.
3810 This avoids suprious emission of the regexprops.texi file to stdout.
3812 * find/find.c (main, safely_chdir_lstat, safely_chdir_nofollow):
3813 Only use O_LARGEFILE if it is #defined (NetBSD-3.1 does not define
3815 * find/ftsfind.c (main): ditto
3816 * find/pred.c (pred_empty, prep_child_for_exec): ditto
3819 * import-gnulib.config: Update to gnuliv 2007-04-14.
3821 * lib/Makefile.am, import-gnulib.sh: Create lib/gnulib-version.c
3822 in import-gnulib.sh, not in lib/Makefile.
3824 * build-aux/Makefile.am: New file; distribute check-tstfiles.sh.
3826 * locate/Makefile.am: mkinstalldirs is now in build-aux.
3828 * doc/Makefile.am: We also need getdate.texi.
3830 2007-04-14 James Youngman <jay@gnu.org>
3832 * doc/.cvsignore: Ignore getdate.texi
3834 * find/defs.h: #include "buildcmd.h" near the top of the file, not
3837 * all: Pass O_LARGEFILE when opening directories.
3839 * all: Changes to allow us to use the FTS_CWDFD mode of fts().
3840 These are quite extensive changes, and are detailed below.
3842 * find/defs.h (struct exec_val): New member dirfd, the directory
3843 in which the exec should take place.
3844 (is_fts_enabled): Tell the caller which flags are passed to
3846 (get_start_dirfd): New function. Returns value of start_desc.
3847 (get_current_dirfd): New function. Returns the fd of the
3848 directory fts is currently traversing. If this is the current
3849 directory, AT_FDCWD is returned.
3850 (complete_pending_execdirs): takes a new argument, indicating
3851 where the exec is to take place. Ugh.
3852 (get_info): the file name is taken from state.rel_pathname, so
3853 we don't need it as a function argument.
3854 (enum DebugOption): Added DebugExec ("-D exec").
3855 (struct state): Added cwd_dir_fd, the directory we are examining
3856 with fts(). If fts() is not in use, this is AT_FDCWD. Also added
3857 execdirs_outstanding, which is a boolean which tells us if there
3858 are any not-yet-execed -execdir or -okdir actions (with +). This
3859 is not really used yet.
3860 * find/ftsfind.c (set_close_on_exec): New function.
3861 (get_current_dirfd): Return an fd open on the directory that fts()
3862 is currently examining.
3863 (left_dir): Signal that our previous ides of which dirctory fts is
3864 searching is now out of date.
3865 (inside_dir): Indicate which directory fts is now searching.
3866 (complete_execdirs_cb): Callback for run_in_dir() to complete
3867 pending execdirs in this directory.
3868 (show_outstanding_execdirs): Supports "-D exec"
3869 consider_visiting(): Do not allow building-up of pending execdirs,
3870 as a workaround to Savannah bug #18466.
3871 (ftsoptions): Make this a static module variable.
3872 * find/parser.c (insert_exec_ok): New parameter describing which
3873 directory the exec should occur in.
3874 (parse_version): for FTS, add a list of options being used.
3875 * find/pred.c (pred_and, pred_comma): No need to pass the relative
3876 path name to get_info(), it can pull it from state.rel_pathname.
3877 (pred_delete): use unlinkat().
3878 (pred_empty): use openat().
3879 (new_impl_pred_exec): Accept an fd parameter describing where the
3880 exec is to take place.
3881 (pred_executable, pred_writable, pred_readable): Use run_in_dir()
3882 to ensure that access() is called in a working directory which is
3883 suitable for the pathname we pass in.
3884 (prep_child_for_exec): In the child process, change to the
3885 appropriate directory becore the exec().
3886 * find/util.c (debugassoc): Support "-D exec".
3887 (get_info): No longer need to pass the relative path to
3889 (do_complete_pending_execdirs): Refactored body of what used to be
3890 complete_pending_execdirs().
3891 (complete_pending_execdirs): Pull body out into
3892 do_complete_pending_execdirs() and call that only if there is work
3894 (fallback_stat, optionh_stat, optionp_stat, optionl_stat): Use fstatat().
3895 (get_start_dirfd): New access function for starting_desc.
3896 * find/testsuite/find.gnu/execdir-hier.exp: New test
3897 * find/testsuite/find.gnu/execdir-hier.xo: Expected outut for new test
3898 * lib/dircallback.c, lib/dircallback.h: New function,
3899 run_in_dir(), which runs a callback function in a specified
3901 * lib/listfile.c: Use run_in_dir() to call readlink() in the right
3903 (get_link_name_at): Call get_link_name_cb via run_in_dir.
3904 (get_link_name_cb): New callback function, wrappting
3907 * find/testsuite/find.gnu/execdir-pwd.exp: Since we have disabled
3908 thebuilding-up of command lines for -execdir, Savannah bug #18466
3909 has been neutralised (but not fixed - we just don't allow the
3910 problem circumstance to occur).
3912 2007-04-09 James Youngman <jay@gnu.org>
3914 * doc/find.texi: Change fully-specified @node directives to
3915 single-argument @node directives in order to accomodate the
3916 inclusion of getdate.texi.
3918 * doc/find.texi: Document -newerXY.
3920 * doc/find.texi (Security Considerations): updated to describe
3921 differences in the fts-based implementation.
3923 * find/find.1: Indicate that testing the birth time where this is
3924 not supported produces a negative result for files where the birth
3925 time is not known (or a fatal error if the file of interest is a
3928 2007-04-08 James Youngman <jay@gnu.org>
3930 * configure.in: Set @AUXDIR@ (to the location of the build-aux
3932 * build-aux/check-testfiles.sh: New script, which checks that all
3933 the DejaGnu test files have been included in the distribution and
3934 (more helpfully) lists any that are missing.
3935 * Makefile.am (findutils-check-testfiles): Use
3936 build-aux/check-testfiles.sh.
3937 * locate/testsuite/Makefile.am (EXTRA_DIST_EXP): distribute
3938 locate/testsuite/locate.gnu/sv-bug-14535.exp.
3940 * config.rpath, depcomp, missing: Moved into build-aux/.
3941 * configure.in(AC_CONFIG_AUX_DIR): Find aux files in $SRCDIR/build-aux,
3944 2007-03-31 James Youngman <jay@gnu.org>
3946 * find/tree.c (build_expression_tree): Issue more specific error
3947 messages; distinguish the case where the predicate is invalid from
3948 the cases where a required argument is missing, and a supplied
3949 argument is invalid.
3951 * import-gnulib.config (gnulib_version): Update to 2007-03-30
3954 2007-03-28 James Youngman <jay@gnu.org>
3956 * find/defs.h (set_stat_placeholders): utility function for
3957 initialising the sturct stat fields that NetBSD doesn't always set
3958 (like st_birthtime where the file is on a filesystem not
3959 supporting birthtime).
3960 * find/util.c: set_stat_placeholders(): new function
3961 (get_statinfo): Call set_stat_placeholders().
3962 (optionh_stat, optionl_stat, optionp_stat): ditto
3963 * find/find.c (main, wd_sanity_check, safely_chdir_lstat,
3964 process_dir): use set_stat_placeholders().
3965 * find/parser.c (parse_anewer, parse_cnewer, parse_newer,
3966 parse_newerXY): ditto.
3967 (get_stat_Ytime): Support birth time ('B').
3968 (parse_newerXY): Support st_birthtime.
3969 * find/fstype.c (set_fstype_devno): Use set_stat_placeholders().
3970 * find/pred.c (pred_xtype): Use set_stat_placeholders().
3971 (pred_newerXY): Support birth time.
3972 (pred_fprintf, format_date): ditto ("%Bx").
3974 2007-03-25 James Youngman <jay@gnu.org>
3976 * xargs/xargs.c (main): For "xargs --show-limits" where stdin is a
3977 terminal, warn the user that the program specified (or /bin/echo)
3978 will be run at least once, if that is what will happen.
3980 2007-03-24 James Youngman <jay@gnu.org>
3982 * import-gnulib.sh: Added option -d, allowing the user to use a
3983 local version of gnulib, perhaps because they have local changes.
3985 2007-03-13 James Youngman <jay@gnu.org>
3987 * find/parser.c (parse_quit): Estimated success rate of -quit is
3990 2007-03-08 James Youngman <jay@gnu.org>
3992 * find/find.1 (TESTS): Document -newerXY, indicate that reference
3993 files are only examined once.
3994 (HISTORY): Indicate when various features were added
3995 (BUGS): Indicate that -ok ignores LC_COLLATE.
3997 2007-03-07 James Youngman <jay@gnu.org>
3999 * import-gnulib.config: (gnulib_version): Use gnulib version
4001 (modules): Added getdate
4003 * find/Makefile.am (LDADD): Added @LIB_CLOCK_GETTIME@ for
4004 clock_gettime(), if it is available.
4006 * find/defs.h: (enum xval): New enumeration, representing the
4007 value of X used in the -newerXY test. It is stored in the reftime
4008 member of 'union args'.
4009 (struct predicate): reftime is also used by -newerXY.
4010 (enum arg_type): Added ARG_SPECIAL_PARSE for -newerXY, because the
4011 parsing function needs to look at the name of the test.
4012 (struct options): start_time is now a struct timespec, not a
4015 * find/parser.c: (parse_newerXY): New parsing function for
4016 -newerXY, a feature copied from FreeBSD (also present other BSD
4017 implementations too)
4018 (get_stat_Ytime): New function; returns st_atime, st_mtime or
4019 st_ctime from struct stat, as a timespec, as required according to
4020 the value of Y in -newerXY.
4021 (found_parser): Factored the tail out of find_parser.
4022 (find_parser): Moved tail into found_parser. Add special handling
4024 (do_parse_xmin): New argument xv, indicating the value to which
4025 predicate->reftime.xval should be set.
4026 (parse_amin): Pass XVAL_ATIME to do_parse_xmin.
4027 (parse_cmin): Pass XVAL_CTIME to do_parse_xmin.
4028 (parse_mmin): Pass XVAL_MTIME to do_parse_xmin.
4029 (parse_newer): Set args.reftime.xval to XVAL_MTIME.
4031 * find/pred.c (pred_table): added pred_XY.
4032 (pred_fls): options.start_time is now a struct timespec, so just
4033 pass the tv_sec member to list_file.
4035 (pred_newerXY): New function, implementing -newerXY.
4037 * find/tree.c (costlookup): pred_newerXY needs stat information.
4038 (build_expression_tree): For predicates of type ARG_SPECIAL_PARSE,
4039 pass them in the name of the predicate (that is, don't advance
4042 * find/util.c (now): New function for setting options.start_time.
4043 Use nanoseconds where it is available.
4044 (set_option_defaults): Use now() rather than time().
4046 2007-03-03 James Youngman <jay@gnu.org>
4048 * import-gnulib.sh: Pass --with-tests to gnulib-tool so that relevant
4049 gnulib unit tests are built and are run for "make check".
4051 * configure.in (AC_CONFIG_FILES): Add tests/Makefile (the makefile
4052 for the gnulib unit tests).
4054 * Makefile.am: Add 'tests' to SUBDIRS.
4056 * .cvsignore: Add 'tests'.
4058 * import-gnulib.config (modules): Also use Gnulib modules
4059 mbscasestr and mbsstr in order to perform correct string searching
4060 in multibyte strings, in order to fix Savannah bug #14535.
4062 * locate/testsuite/locate.gnu/sv-bug-14535.exp: new test case for
4063 Savannah bug #14535.
4065 * locale/locate.c (visit_substring_match_nocasefold): Use mbsstr
4066 rather than strstr, in order to correctly support multibyte
4068 (visit_substring_match_casefold): Use mbscasestr rather than
4069 strstr in order to correctly support case-folding in a multibyte
4070 environment (e.g. with UTF-8 characters outside the normal ASCII
4071 range). This fixes Savannah bug #14535.
4072 (struct casefolder): No longer needed, removed
4073 (visit_casefold): No longer needed, removed.
4074 (lc_strcpy): No longer needed, removed.
4075 (search_one_database): Removed redundant variable need_fold and
4076 the code which used to set it. It had controlled the adding of
4077 the visitor function visit_casefold, but that function itself is
4078 no longer required. Also there is now no need to pass in a
4079 lower-case argument to visit_substring_match_casefold, so don't
4080 pass that in the context argument.
4082 * locate/locate.c (usage): Fixed typo.
4084 2007-03-01 James Youngman <jay@gnu.org>
4086 * doc/find.texi (Multiple Files): Document the construct
4087 -exec sh -c 'cmd "$@" final-args' {} + - fixing Savannah bug
4090 2007-02-28 James Youngman <jay@gnu.org>
4092 * import-gnulib.config: New file. Specifies which version of
4093 Gnulib we need to check out and build from.
4095 * import-gnulib.sh: Use import-gnulib.config.
4097 * README-CVS: Describe the new method of building from CVS.
4099 * lib/gnulib-version.h, lib/gnulib-version.sh: New files; code for
4100 reporting which version of Gnulib we built findutils from.
4102 * lib/Makefile.am: Build gnulib-version.c out of
4103 ./gnulib-version.config by using lib/gnulib-version.sh.
4105 * Makefile.am: Ship import-gnulib.config and import-gnulib.sh.
4107 * .cvsignore: Ignore gnulib-cvs
4109 * lib/.cvsignore: Ignore gnulib-version.c
4111 * find/parser.c, locate/code.c, locate/locate.c, xargs/xargs.c:
4112 Report which version of Gnulib we were built from.
4114 2007-02-25 James Youngman <jay@gnu.org>
4116 * find/find.c (process_dir): Removed duplicated (shadow)
4117 declaration of did_stat. Assert that we did not use subdirs_left
4118 if subdirs_unreliable is true.
4120 * find/parser.c (parse_size): Removed unused variable rate.
4121 (parse_time): Removed unused variable num_days_approx.
4122 (get_num): Removed unused variables ok and suffixes.
4124 * find/pred.c (do_fprintf): Indicate that the function needs a
4125 return value (referring to Savannah bug #19146).
4127 * find/tree.c (predlist_dump): Commented out unused function
4128 (predlist_merge_nosort): Commented out unused function
4129 (getrate): Returns type is float, so return 1.0f not 1.0.
4130 (calculate_derived_rates): Removed unused variable rate. Use a
4131 switch statement rater than ifs.
4133 * find/util.c (usage): Removed unused variable i.
4135 * lib/buildcmd.c (bc_do_insert): Removed unused variable
4137 (bc_init_controlinfo): annotate a line (with #warning) which is
4140 * locate/locate.c: #include <grp.h> for the benefit of the
4141 setgroups() call in drop_privs.
4142 (slocate_db_pathname): Commented out unused variable.
4143 (set_max_db_age): error command has no format directive, so
4144 remove the unused extra argument.
4145 (looking_at_slocate_db): Removed unused variables magic and
4146 lenwanted. Fix bug where result is indeterminate (due to falling
4147 off the end of the function) if the first character is a nondigit.
4148 (search_one_database): Eliminate (spurious) compiler warning
4149 rlating to possible use before initialisation of slocate_seclevel.
4151 * xargs/xargs.c (get_char_oct_or_hex_escape): Eliminate spurious
4152 compiler warning on variable p.
4153 (main): Removed unused varible env_too_big
4156 2007-02-24 James Youngman <jay@gnu.org>
4158 * find/parser.c (pred_sanity_check): define this function even for
4159 _NDEBUG, but do nothing in that case.
4160 (estimate_timestamp_success_rate): correct (invert) the sense of
4161 the subtraction used to find the file's age.
4163 * import-gnulib.sh (findutils_modules): Import Gnulib modules
4164 xstrtod and timespec.
4166 * find/parser.c (get_comp_type): Refactored out of get_num.
4167 (get_num): call get_comp_type to find the comparison type.
4168 (get_relative_timestamp): new function replacing get_num_days.
4169 (get_num_days): Remove.
4170 (do_parse_xmin): Support fractional arguments and
4171 nanosecond timestamps.
4175 * xargs/xargs.c (read_line): Give a warning message if a NUL is
4176 found in the input (this function is called only when -0 is not in
4179 * xargs/xargs.c (nullwarning_given): New variable indicating if
4180 the NULL character warning had already been issued.
4182 * doc/find.texi (Multiple Files): Describe how trailing blanks are
4183 handled when -L is in effect.
4185 * xargs/xargs.c (read_line): Use an enum rather than
4186 preprocessor macro values for the lexer state.
4188 * lib/savedirinfo.c (free_dirinfo): Fixed memory leak (trivial
4189 patch from Supriya Kannery)
4191 2007-01-22 James Youngman <jay@gnu.org>
4193 * .cvsignore (install-sh): Ignore, since the install-sh file is no
4194 longer held in the findutils CVS repository.
4196 * find/testsuite/config/unix.exp (find_start): allow a test to be
4197 skipped for either the old or the new find executable.
4198 * find/testsuite/find.gnu/execdir-pwd.exp,
4199 find/testsuite/Makefile.am:
4200 New test, covering Savannah bug #18466. This test currently fails
4201 for the ftsfind binary and passes for the oldfind binary. Due to
4202 a limitation in the way that we perform the test, we can't tell
4203 the test suite to expect a failure in the new binary but not the
4204 old. Therefore we skip the test for the old binary.
4206 * lib/regeprops.c (describe_regex_syntax): fixed a typo in the text
4207 * doc/find.texi (Multiple Files): fixed a typo
4209 2007-01-16 James Youngman <jay@gnu.org>
4211 (ctime_format): format the time manually (rather than using ctime)
4212 in order to include the sub-second part of the time.
4213 (weekdays, months): new static variables used by ctime_format.
4214 (format_date): append a the sub-second part of the timestamp to
4215 the seconds part of date/time output.
4217 2007-01-15 James Youngman <jay@gnu.org>
4219 * find/defs.h (time_val): define struct; use timespec to hold time
4220 in the 'reftime' member.
4221 (args): use struct timespec instead of time_t for predicates
4222 -newer, -anewer, -cnewer. * find/parser.c (includes): include
4224 (parse_anewer, parse_cnewer, parse_newer): use struct timespec to
4225 hold timestamps. * find/pred.c (compare_ts): new function for
4226 comparing timestamps in struct timespec.
4227 (pred_anewer, pred_cnewer, pred_newer): use compare_ts() to
4228 compare timestamps (hence takinng acoung of sub-second
4230 * find/ftsfind.c: Various improvements to comments.
4231 (is_fts_enabled): Newline before function name to comply with GNU
4234 2007-01-13 James Youngman <jay@gnu.org>
4236 * lib/regexprops.c (describe_regex_syntax): fixed typo
4238 * xargs/xargs.c (read_line): Fixed Savannah bug# 18714; VT and FF
4239 are not separators, according to POSIX (in the POSIX locale).
4241 * xargs/testsuite/Makefile.am,
4242 xargs/testsuite/input/formfeeds.xi,
4243 xargs/testsuite/input/verticaltabs.xi,
4244 xargs/testsuite/xargs.posix/sv-bug-18714.exp,
4245 xargs/testsuite/xargs.posix/sv-bug-18714.xo,
4246 xargs/testsuite/xargs.posix/sv-bug-18714b.exp,
4247 xargs/testsuite/xargs.posix/sv-bug-18714b.xo: Tests for Savannah
4250 * xargs/xargs.c (usage): Removed suprious "[" in --help output
4251 (fixes Savannah bug #18384).
4253 * locate/locate.c: Implement the option --max-database-age.
4254 (main) Accept the option.
4255 (set_max_db_age): Parse the argument.
4257 * locate/locate.c (dolocate): If the database is more than N days
4258 old, indicate its actual age in the warning message we produce.
4260 * locate/locate.1, docs/find.texi: Document --max-database-age
4262 * THANKS: Thank Dean Gaudet for the idea of -sparse.
4264 * po/findutils.pot: Updated from Translation Project
4266 * po/ga.po, po/pl.po, po/nl.po, po/tr.po, po/hu.po: Updated from
4267 the Translation Project
4269 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4271 * doc/find.texi: Fix some typos. (tiny change)
4273 2007-01-07 James Youngman <jay@gnu.org>
4275 * find/parser.c (parse_perm), find/testsuite/find.gnu/perm000.exp,
4276 find/testsuite/find.gnu/perm000.xo: -perm /000 is now quivalent
4277 to -perm -000, as dscussed in Savannah bug #14748. The warning
4278 message we issue when the user does this now explains that the
4279 defintion changed as we promised it would in 2005.
4281 * xargs/xargs.c (read_line): Correctly handle quoted empty
4282 arguments occurring first or last on a line (by adding an empty
4283 argument to the output). Fixes Savannah bug #18713.
4285 * xargs/testsuite/xargs.sysv/sv-bug-18713.exp,
4286 xargs/testsuite/xargs.sysv/sv-bug-18713.xo,
4287 xargs/testsuite/input/empty.xi: Test case for Savannah bug #18713.
4290 2006-12-29 James Youngman <jay@gnu.org>
4292 * find/testsuite/config/unix.exp:
4293 Verify that find_start is invoked with wither a p (pass) or an f
4296 * lib/listfile.c, lib/listfile.h:
4297 define find_blocksize() and provide a declaration for get_link_name()
4299 * find/testsuite/config/unix.exp: Updated copyright years.
4301 * 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:
4302 Avoid tests using -execdir if $PATH contains a relative directory
4305 Also flag $PATH values containing relative directories as being dangerous.
4307 * find/parser.c, find/defs.h, find/util.c:
4308 Instead of selecting the old or new exec handling code with the NEW_EXEC macro, just use the new code all the time
4310 * locate/testsuite/config/unix.exp:
4311 Fixed Savannah bug #13252, test suite failure caused by the fact that 'file normalize' is not available in Tcl 8.3
4313 * NEWS, find/pred.c:
4314 Fixed Savannah bug #18433, compilation failure with configure --enable-debug
4316 2006-12-28 James Youngman <jay@gnu.org>
4318 * NEWS: Document addition of %S.
4320 * find/defs.h, find/find.1, find/parser.c, find/pred.c:
4321 Implemented %S (sparseness) printf format, and general refactoring and cleanup of printf predicate
4323 2006-12-01 James Youngman <jay@gnu.org>
4325 * NEWS, configure.in: Begin work on findutils 4.2.30
4328 Fix compilation error for oldfind if --enable-debug was passed to configure
4330 * NEWS, configure.in: Prepare for work on findutils-4.3.3
4332 2006-11-25 James Youngman <jay@gnu.org>
4336 * find/testsuite/Makefile.am: Added test case for Savannah bug #17782
4338 * doc/textinfo.tex: Removed; we now use the version supplied
4341 * m4/mkinstalldirs.m4: Added this file. It's an excerpt from an
4342 old version of gnulib's m4/nls.po file. The current version of
4343 gnulib does not expand MKINSTALLDIRS, but gettext-0.14.6's version
4344 of po/Makefile.in.in expects it to be expanded. This m4 file
4347 2006-11-20 James Youngman <jay@gnu.org>
4349 * po/et.po, po/bg.po, po/pl.po, po/nl.po, po/tr.po: Updated
4350 translations for Bulgarian, Estonian, Dutch, Polish and Turkish.
4352 2006-11-08 James Youngman <jay@gnu.org>
4354 * find/testsuite/Makefile.am:
4355 Oops, indicate the right directory for the new test files
4357 * 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:
4358 Savannah bug#18222 - test case
4360 * ChangeLog, lib/buildcmd.c:
4361 Fixed Svannah bug #17782 ('./' prefix added at start of arg while it should be added at the start of the expansion of {})
4363 * find/ftsfind.c (process_all_startpoints): Set
4364 state.starting_path_length for every pathname argument.
4365 This fixes Savannah bug #18222.
4367 * find/pred.c (pred_prune): -prune should have an effect only if we are
4368 currently considering a directory (Savannah bug #15531).
4370 2006-10-15 James Youngman <jay@gnu.org>
4372 * lib/buildcmd.c: Fixed Savannah bug #17782, in which "find
4373 -execdir echo "foo {}" runs 'echo ./foo filename' instead of the
4374 correct command 'echo foo ./filename'.
4376 * po/hu.po, po/sl.po: Updated Hungarian and Slovenian po files
4378 2006-08-21 James Youngman <jay@gnu.org>
4380 * find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.gnu/sv-bug-17490.exp:
4381 Fixed Savannah bug #17490, which was a coiredump when -regex ZZZ was the final test on the command line
4383 2006-08-20 James Youngman <jay@gnu.org>
4385 * find/parser.c: Merged the fix for the trailing % in "find -printf".
4387 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
4389 Port recent fixes for symbolic modes involving X from gnulib,
4390 and clarify the documentation in this area.
4391 * doc/find.texi: Use "file mode bits" when talking about
4392 all the file mode bits (including setuid, setgid, and sticky),
4393 and "permissions" when talking only about permissions bits
4394 (read, write, execute/search). Use "execute/search" to
4395 talk about the x bit, since it means both. You do not need
4396 permission to the linked-to file to follow a symlink for
4397 syscalls like "stat", but you do need search permission for
4398 the directories you traverse. Clarify the explanation of
4399 -perm. Use "that" instead of "which" when "which" isn't
4400 quite correct English.
4401 (Mode Bits): Renamed from Permissions. All uses changed.
4402 * doc/perm.texi: Sync from coreutils 6.0.
4403 * find/defs.h (struct perm_val.val): Now an array of two items,
4404 one for non-directories, and one for directories. This is
4405 to handle symbolic modes like +X correctly.
4406 * find/parser.c (parse_perm): Likewise. Also, adjust to
4407 latest gnulib interface for mode_adjust.
4408 * find/pred.c (pred_perm): Likewise.
4409 * find/testsuite/Makefile.am (EXTRA_DIST_XO): Add find.posix/perm-X.xo.
4410 (EXTRA_DIST_EXP): Add find.posix/perm-X.exp.
4411 * find/testsuite/find.posix/perm-X.exp: New file.
4412 * find/testsuite/find.posix/perm-X.so: New file.
4414 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
4416 Port to latest gnulib, and simplify the bootstrapping procedure.
4417 * intl: Remove this directory and everything in it.
4418 * depcomp, install-sh, missing, mkinstalldirs, doc/texinfo.tex:
4419 Remove these files from CVS, as they are now gotten from gnulib.
4420 * README-CVS: Don't recommend "autoreconf -i", as it doesn't work
4422 * import-gnulib.sh (findutils_files): New var. Grab this stuff
4424 (findutils_modules): Add fopen-safer; remove stdio-safer. This
4425 adjusts to latest gnulib.
4426 (modules): Remove obsolete reference to intl_modules.
4427 * .cvsignore: Remove stamp-h; add stamp-h1.
4428 * doc/.cvsignore: Add regexprops.texi.
4429 * find/.cvsignore: Add oldfind.
4430 * lib/.cvsignore: Add .deps, regexprops.
4431 * m4/.cvsignore: Add Makefile.
4432 * po/.cvsignore: Add stamp-po.
4434 2006-08-19 James Youngman <jay@gnu.org>
4436 * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/bigprefix1.exp:
4437 Explicit checks for parefixes which are within range of a short, but outside the one-byte range
4439 * locate/testsuite/locate.gnu/bigprefix1.exp, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
4442 * locate/testsuite/Makefile.am, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
4443 Patch from Tavis Ormandy; check frcode handles initial space end encodes paths with more than 2^16 characters in the common prefix (tiny change)
4445 * locate/frcode.c: Changes to avoid overflows
4447 2006-08-11 James Youngman <jay@gnu.org>
4450 Avoid producing an invalid database if the first item begins with a space
4452 2006-08-10 James Youngman <jay@gnu.org>
4454 * find/pred.c, import-gnulib.sh, lib/listfile.c:
4455 Updated callers of the gnnulib filemode module so that they work with the 2006-07-09 version of gnulib
4457 * config.rpath: Updated config.rpath from autotools
4459 2006-08-08 James Youngman <jay@gnu.org>
4461 * locate/locatedb.h:
4462 Automatically verify (at compile time) that the frcode datastream
4463 cannot get desynchronised.
4466 Fixed Savannah bug #10494 (-maxdepth does not yield the same stat savinf in ftsfind as oldfind)
4468 * find/ftsfind.c: display fts_level for find -D search
4470 * find/util.c: Support find -D search
4473 If the user specified -E but the database is an slocate database, do
4474 not produce a list of files they cannot stat. Issue an error message
4475 explaining the problem.
4478 Issue states messages in a way which indicates more clearly what's
4479 happening when the numbers are reduced because not every filename
4480 matched the pattern.
4482 * locate/locate.c: Better error checking in drop_privs().
4484 2006-08-07 James Youngman <jay@gnu.org>
4486 * NEWS, locate/locate.c, locate/locatedb.h:
4487 Added support for slocate database format
4490 Removed unused code (tivial patch from Miloslav Trmac).
4492 * xargs/xargs.c: Removed unused code.
4495 Clarify that the output format for locate -S differs from BSD's.
4497 * NEWS, find/find.1:
4498 Savannah bug #15360: explain global vs. positional options more clearly in the manual page
4500 * NEWS: Typo in subsection header (* should be **).
4502 * NEWS, find/find.1:
4503 Savannah bug #15360: explain global vs. positional options more clearly in the manual page
4505 * doc/find.texi: Fixed some clumsy phrasing
4507 * NEWS, configure.in:
4508 Now diverging again from the released tarball, so change once more to -CVS version number suffixes
4510 2006-08-06 James Youngman <jay@gnu.org>
4512 * locate/locate.c: Fixed a typo in a comment.
4514 * NEWS, configure.in: Moving on towards 4.3.2...
4518 * find/testsuite/config/unix.exp:
4519 Check that we can see the find.o file in the right position relative
4520 to $base_dir to ensure that we are indeed testing the program we just built.
4522 * find/testsuite/config/unix.exp:
4523 Be more paranoid about whether we're really checking the right version
4526 * NEWS, configure.in: Prepare for release of 4.3.1
4528 * doc/find.texi: Document the -O and -D options
4530 * find/defs.h, find/find.1, find/util.c:
4531 'find -D help' now explains the available debugging options
4533 * 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:
4534 Make dist changed all the po files again
4536 2006-08-05 James Youngman <jay@gnu.org>
4538 * NEWS: Described more changes in 4.3.1.
4540 * locate/testsuite/config/unix.exp:
4541 Set the environment variable so that updatedb knows where to find it; it's not in BINDIR yet during 'make check'
4543 * 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:
4544 Make dist changed all the po files again :)
4546 * po/et.po, po/vi.po: UPdated the Estonian and Vietnamese translations
4548 * NEWS, configure.in: Prepare for release of findutils-4.2.28
4550 * 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:
4551 Make dist changed all the po files again :)
4553 * configure.in: Added Bulgarian translation.
4555 * po/bg.po: Include Bulgarian translation
4557 * configure.in: Added Bulgarian translation.
4559 * po/et.po, po/vi.po: Updated Estonian and Vietnamese translations
4561 * NEWS: Removed spurious comma.
4563 * NEWS: Listed the updated translations.
4565 * find/parser.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
4566 Fixed Savannah bug#16738, find does not subtract environment size in find .. -exec {} +
4568 * NEWS: Updated the list of bugfixes etc.
4570 2006-06-15 James Youngman <jay@gnu.org>
4572 * NEWS: Described recent changes
4574 * configure.in: fix to how we invoke the gnulib regex module
4577 Savannah bug #16269: avoid confusion over what type of quotes to use
4580 * find/parser.c: Option -nowarn should not itself produce a warning
4582 * find/defs.h: Remoevd useless declaration of last_pred
4584 2006-06-14 James Youngman <jay@gnu.org>
4586 * 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:
4587 Updated translation files ga pl sv tr nl ca vi bg fr
4589 * locate/updatedb.sh:
4590 Fixed Savannah bug #16579 (su false should be su -c false)
4592 2006-04-01 James Youngman <jay@gnu.org>
4595 Fixed Savannah bug #15800: "Hard link count is wrong" reports wrong
4598 2006-03-31 James Youngman <jay@gnu.org>
4600 * po/hu.po: Updated Hungarian translation
4602 2006-01-04 James Youngman <jay@gnu.org>
4604 * find/testsuite/find.posix/sizetype.exp, find/testsuite/find.posix/sizetype.xo, find/testsuite/find.posix/typesize.exp, find/testsuite/find.posix/typesize.xo:
4605 Additional tests for -type -size and -size -type
4607 * 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:
4608 Initial implementation of a cost-based optimiser
4610 2005-12-23 James Youngman <jay@gnu.org>
4612 * find/parser.c: Refactor of parse_[acm]time
4614 * find/defs.h, find/find.c, find/finddata.c, find/ftsfind.c, find/tree.c, find/util.c:
4615 last_pred can be a static in tree.c rather than a global variable
4617 * find/tree.c, find/finddata.c:
4618 Moved some global data out of finddata.o and into static variables in tree.c
4620 * 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:
4621 Fixed many compilation warnings
4623 * find/find.c, find/ftsfind.c, find/util.c:
4624 Evaluating the predicates can change the contents of the data structure (for example to add another exec item)
4626 * find/defs.h, find/find.c, find/ftsfind.c, find/tree.c, find/util.c:
4627 Re-factored a lot of common expression-handling code out of find.c and ftsfind.c, mainly into tree.c
4629 * find/find.c, find/ftsfind.c, find/tree.c:
4630 Savannah bug #15271: more helpful error messages for cases where there is a missing expression
4632 2005-12-20 James Youngman <jay@gnu.org>
4634 * 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:
4635 Savannah bug #15195: more helpful error messages for 'find . ( )' or 'find . \!'
4637 * ChangeLog: Added entries for recent changes.
4639 * find/defs.h, find/find.c, find/ftsfind.c, find/testsuite/find.posix/bracket-depth.exp, find/util.c:
4640 Further fix to bug# 15235: a leading comma is a filename not an expression
4642 * find/defs.h, find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.posix/empty-parens.exp, find/tree.c:
4643 Accept 'find ( -depth )' but reject 'find ( )'
4645 * 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:
4648 * find/testsuite/find.gnu/delete.exp:
4649 Use the new find program, and the new way of locating it (/ instead of )
4651 * find/testsuite/Makefile.am: Added bracket-depth.exp.
4653 * NEWS, configure.in: We have moved on from 4.3.0
4655 * 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:
4656 Avoid getting confused by filename arguments of which the first
4657 character looks like a predicate, for example ',x' or '!x' or
4658 '(x' (Savannah bug #15235).
4660 2005-12-20 James Youngman <jay@gnu.org>
4662 * find/defs.h, find/find.c, find/ftsfind.c,
4663 find/testsuite/find.posix/bracket-depth.exp, find/util.c: Further
4664 fix to bug# 15235: a leading comma is a filename not an expression
4666 * find/defs.h, find/parser.c, find/testsuite/Makefile.am,
4667 find/testsuite/find.posix/empty-parens.exp, find/tree.c: Accept
4668 'find ( -depth )' but reject 'find ( )'
4670 * find/testsuite/find.gnu/delete.exp: Use the new find program,
4671 and the new way of locating it ($OLDFIND/$FTSFIND instead of $FIND)
4673 * find/testsuite/Makefile.am: Added bracket-depth.exp.
4675 * NEWS, configure.in: We have moved on from 4.3.0
4677 * find/defs.h, find/find.c, find/ftsfind.c,
4678 find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
4679 find/testsuite/find.posix/files-not-expressions1.exp,
4680 find/testsuite/find.posix/files-not-expressions1.xo,
4681 find/testsuite/find.posix/files-not-expressions2.exp,
4682 find/testsuite/find.posix/files-not-expressions2.xo,
4683 find/testsuite/find.posix/files-not-expressions3.exp,
4684 find/testsuite/find.posix/files-not-expressions3.xo, find/util.c:
4685 Avoid getting confused by filename arguments of which the first
4686 character looks like a predicate, for example ',x' or '!x' or '(x'
4687 (Savannah bug #15235).
4689 2005-12-19 James Youngman <jay@gnu.org>
4691 * find/testsuite/config/unix.exp:
4692 Run every test twice, once with the old (non-fts) binary and once with
4693 the new (fts-enabled) binary.
4695 2005-12-19 Eric Blake <ebb9@byu.net>
4697 * find/testsuite/Makefile.am,
4698 find/testsuite/find.posix/sv-bug-15235.xo,
4699 find/testsuite/find.posix/sv-bug-15235.exp: New tests for Savannah
4702 * NEWS, find/find.1, doc/find.texi (Invoking find): Document bug
4703 fix for Savannah bug 15235.
4705 2005-12-16 James Youngman <jay@gnu.org>
4707 * xargs/xargs.1, xargs/xargs.c: Fixed bug# 15211, that xargs
4708 --show-limits is not documented in the manpage or in the usage
4711 2005-12-12 James Youngman <jay@gnu.org>
4715 * find/testsuite/find.gnu/access.exp:
4716 Don't leave junk files lying around the place
4718 * README-CVS: Update the the instructions for getting gnulib; the
4719 CVS arrangements at Savannah have changed.
4721 * ChangeLog, NEWS, doc/find.texi, doc/perm.texi, find/defs.h, find/parser.c:
4722 Merged changes from 4.2.x branch again
4724 * NEWS, doc/find.texi, find/defs.h, find/find.c, find/ftsfind.c,
4725 find/parser.c, find/pred.c, find/util.c, lib/listfile.c,
4726 lib/listfile.h: Initial code to allow control over how -ls quote
4727 (or does not quote) control characters; not enabled yet
4729 2005-12-11 James Youngman <jay@gnu.org>
4731 * ChangeLog, THANKS, xargs/xargs.c:
4732 Fixed spelling errors in Bob Proulx's name. Sorry, Bob.
4734 2005-12-10 James Youngman <jay@gnu.org>
4737 Aaron Hawley: Updated perm.texi from the coreutils distribution
4740 Avoid using entries which have the same name as POSIX library
4741 functions (fprintf, printf, exec) as the implementation is allowed to
4742 #define these. That generates hard-to-grok compilation errors.
4744 2005-12-10 Andreas Metzler <gnu@downhill.at.eu.org>
4746 * ChangeLog, NEWS, configure.in, find/defs.h, find/parser.c:
4747 Applied patch from Andreas Metzler fixing Savannah bug #15181:
4748 implicit declaration of parse_openparen
4750 2005-12-08 James Youngman <jay@gnu.org>
4752 * doc/find.texi: Typo and spelling corrections from Aaron Hawley
4754 2005-12-05 James Youngman <jay@gnu.org>
4756 * Released findutils-4.2.27
4758 2005-12-05 James Youngman <jay@gnu.org>
4760 * doc/find.texi, find/find.1, locate/locate.1, xargs/xargs.1:
4761 Savannah patch #3775 from Aaron Hawley: reconciling man pages
4762 differences; did not apply the patch, but resolved all the
4763 remaining issues manually by updating the documentation (mostly
4764 the Texinfo documentation, which was missing a number of specific
4765 technical statements about the behaviour of various options)
4767 2005-12-04 James Youngman <jay@gnu.org>
4769 * doc/find.texi: Document --show-limits
4772 Correctly display the size of the argument buffer we really allocated.
4774 * doc/find.texi, find/find.1, find/parser.c, find/pred.c, NEWS:
4775 Savannah bug #14748 (which this change does NOT fix): issue
4776 warning of future changes in the behaviour of -perm /000
4778 2005-11-30 James Youngman <jay@gnu.org>
4781 Typo correction from Benno Schulenberg <benno@nietvergeten.nl>
4784 2005-11-29 James Youngman <jay@gnu.org>
4787 Typo "Ilegal"; change to "Invalid" since this is not really illegal!
4788 Bug report by Primoz Peterlin.
4790 * lib/regexprops.c, xargs/xargs.c:
4791 Prefer the word 'Invalid' or the phrase 'not allowed' over
4792 'Illegal', as per the GNU coding standards, and as per the
4793 suggestion from Benno Schulenberg
4795 2005-11-24 James Youngman <jay@gnu.org>
4797 * NEWS, lib/buildcmd.c, lib/buildcmd.h: Merge to trunk from 4.2.x fixes
4800 Deleted inaccurate comment about the default value of ctl->args_per_exec.
4802 * NEWS, lib/buildcmd.c, lib/buildcmd.h:
4803 Be more conservative about the total number of arguments we will
4804 allow (to avoid exec limits on Linux/PPC)
4806 2005-11-23 James Youngman <jay@gnu.org>
4808 * NEWS: Bug #14921 has been fixed.
4811 Savannah bug #14921: when a Linux bind filesystem is in use, find
4812 would expand '-printf %F' to 'none' if a bind mount targetted the same
4813 filesystem as the one containing the file to be described.
4815 * NEWS: Updated to describe recent changes
4817 * doc/find.texi, find/find.1: Documented find -printf %M
4819 * lib/buildcmd.c, xargs/testsuite/Makefile.am,
4820 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
4821 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
4822 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
4823 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo:
4824 Ensure that the test suite still passes even if the current
4825 system's value of ARG_MAX is different from the development/test
4828 * lib/buildcmd.c: reindent and untabify
4830 * configure.in: The CVS code is moving on from the previous release.
4832 2005-11-22 James Youngman <jay@gnu.org>
4834 * ChangeLog: Updated with recent changes.
4836 2005-11-21 James Youngman <jay@gnu.org>
4838 * locate/testsuite/config/unix.exp:
4839 Even if we expect locate to return a nonzero status, the test should
4840 still fail if updatedb fails!
4842 * locate/testsuite/locate.gnu/ignore_case2.exp:
4843 Set the current directory for updatedb. This test case is supposed to
4844 fail because the filename is not matched, not because updatedb fails!
4846 * locate/updatedb.sh:
4847 Check the binaries actually exist in the place we expect.
4849 2005-11-20 James Youngman <jay@gnu.org>
4851 * locate/locate.1, xargs/xargs.1: Escape '-' as '\-' where appropriate.
4854 Escape '-' as '\-' where appropriate. Fixes last part of bug #14556.
4856 2005-11-19 James Youngman <jay@gnu.org>
4858 * doc/find.texi, find/find.1:
4859 Applied edited form of Andreas Metzler's -perm /mode documentation
4860 patch resolving Savannah bug #14619.
4863 In the success case, extendbuf() should preserve the previous value of
4864 errno. Fixes Savannah bug #14842.
4866 * xargs/testsuite/Makefile.am: Added new test files
4869 Correctly indicate the default regular expression syntax (fixes
4870 Savannah bug #14836).
4872 * NEWS, configure.in: Released findutils-4.2.26
4874 * ChangeLog, NEWS, lib/buildcmd.c,
4875 xargs/testsuite/inputs/16383-ys.xi,
4876 xargs/testsuite/inputs/32767-ys.xi,
4877 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
4878 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
4879 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
4880 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: Applied
4881 bugfix from Jim Meyering (tiny change), where many short arguments
4882 would cause xargs (and probably find -exec .. {} +) to fail
4883 because execve() returns E2BIG, which we should avoid
4885 * xargs/testsuite/inputs/16383-ys.xi,
4886 xargs/testsuite/inputs/32767-ys.xi,
4887 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
4888 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
4889 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
4890 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: New file.
4892 * po/be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
4893 findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
4894 ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
4895 ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po,
4896 zh_TW.po: Updated Portuguese .po file and did update-po
4898 2005-11-18 Jim Meyering <jim@meyering.net> (tiny change)
4900 * lib/buildcmd.c (bc_push_arg): When exec'ing, don't exceed
4901 Linux's limit on the maximum number of command line arguments.
4903 2005-11-11 James Youngman <jay@gnu.org>
4905 * NEWS, find/find.c, find/fstype.c: Savannah bug #14922: if we need the
4906 list of mounted filesystems but it is not available, exit fatally
4907 with a message. If it is not available but we don't need it,
4908 there is no need for an error.
4910 * po/ro.po, ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po,
4911 zh_CN.po, zh_TW.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po,
4912 pt_BR.po, be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po,
4913 fi.po, findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po,
4914 it.po, ja.po: Updated Polish translation
4916 2005-10-31 James Youngman <jay@gnu.org>
4919 Removed redundant additional description of "--regextype".
4921 2005-10-08 James Youngman <jay@gnu.org>
4923 * find/find.c, lib/regextype.c: Fixed Savannah bug #14616, which
4924 was that c99 code had crept in and it didn't compile on c89
4927 * doc/find.texi: Savannah patch #4371 from Andreas Metzler; the
4928 argument of -I is mandatory
4930 2005-09-21 James Youngman <jay@gnu.org>
4932 * xargs/xargs.1, xargs/xargs.c: Clarified the -E option
4934 2005-09-20 James Youngman <jay@gnu.org>
4936 * NEWS, configure.in, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
4937 Documentation clarification: -L and -I take a mandatory argument;
4940 2005-09-17 James Youngman <jay@gnu.org>
4943 Fixed Savannah bug #14550 - if environment is too large to allow
4944 exec() to work, we cannot even use "xargs --help".
4947 Avoid the use of -perm +mode, using -perm /mode instead. From comment
4948 by Andreas Metzler (though I didn't read the patch).
4950 * ChangeLog, doc/find.texi, find/find.1, xargs/xargs.1:
4951 Typo fix from A Costa (tiny change)
4953 * NEWS: Corrections for find manual page - symbolic permissions.
4956 Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
4957 'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
4959 2005-09-17 A Costa <agcosta@gis.net> (tiny change)
4961 docs/find.texi: Fixed typo
4962 find/find.1: Fixed typo
4963 xargs/xargs.1: Fixed typo
4965 2005-09-17 James Youngman <jay@gnu.org>
4967 * NEWS: Corrections for find manual page - symbolic permissions.
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-06 James Youngman <jay@gnu.org>
4975 * xargs/xargs.c: Typo in "IEEE" in a comment.
4977 2005-09-04 James Youngman <jay@gnu.org>
4979 * find/defs.h, find/find.c, find/parser.c, find/pred.c,
4980 Work around compilation failure with GCC 4 and AIX 5.1, in which
4981 open is #defined to open64
4983 * po/be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
4984 findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
4985 ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
4986 ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po,
4987 zh_TW.po: Work around compilation failure with GCC 4 and AIX 5.1,
4988 in which open is #defined to open64
4990 2005-09-03 James Youngman <jay@gnu.org>
4992 * find/testsuite/find.gnu/quit.exp: Fixed Savannah bug#14390, by
4993 avoiding an accidental assumption in quit.exp that directory
4994 entries are returned by readir() in any particular order
4996 * NEWS, configure.in, doc/find.texi, xargs/testsuite/Makefile.am,
4997 xargs/testsuite/inputs/helloworld.xi,
4998 xargs/testsuite/xargs.gnu/delim-o.exp,
4999 xargs/testsuite/xargs.gnu/delim-o.xo, xargs/xargs.1,
5000 xargs/xargs.c: Added the --delimiter option to xargs, resolving
5001 Savannah support request sr #102914
5003 * ChangeLog, NEWS, configure.in: Released findutils-4.2.25
5005 * po/sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po, sl.po, be.po,
5006 ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
5007 findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
5008 ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
5009 ru.po, rw.po, sk.po: Did update-po
5011 2005-09-02 James Youngman <jay@gnu.org>
5013 * doc/find.texi, find/find.1:
5014 Improved documentation in response to Savannah bug #14376
5016 2005-09-01 James Youngman <jay@gnu.org>
5018 * po/ChangeLog, ChangeLog: Updated with recent changes.
5020 * locate/locate.c: Removed unused struct stringbuf.soffs.
5022 * doc/find.texi: Typo fix from Jim Meyering (tiny change)
5024 2005-09-01 Jim Meyering <jim@meyering.net>
5026 * locate/locate.c (struct stringbuf) [soffs]: Remove unused member.
5027 (locate): Remove initialization, too.
5029 2005-09-01 James Youngman <jay@gnu.org>
5031 * doc/find.texi: Typo fix from Jim Meyering (tiny change)
5033 2005-08-30 James Youngman <jay@gnu.org>
5035 * find/defs.h, find/find.c, find/fstype.c, find/pred.c:
5036 Attempted fix for compilation when AFS is #defined
5038 2005-08-24 James Youngman <jay@gnu.org>
5040 * po/sl.po: Updated from Translation Project
5042 2005-08-13 James Youngman <jay@gnu.org>
5044 * find/find.1: Remind the user to quote the pattern argument to -iname.
5046 2005-08-12 James Youngman <jay@gnu.org>
5048 * NEWS: Corrected typo.
5050 2005-08-11 James Youngman <jay@gnu.org>
5052 * po/fr.po: Updated French translation and added new PO file zh_TW.po
5053 for Chinese (traditional)
5055 2005-08-09 James Youngman <jay@gnu.org>
5057 * NEWS: Indicate that regexprops.texi is built on Cygin now that
5058 Savannah bug #14025 has been fixed.
5060 * lib/Makefile.am, lib/regexprops.c: Fixed compilation failure on
5061 Cygwin - Savannah Bug #14025 (tiny change, three lines), reported
5062 and fixed by Eric Blake
5064 * find/testsuite/Makefile.am,
5065 find/testsuite/find.posix/sv-bug-14070.exp,
5066 find/testsuite/find.posix/sv-bug-14070.xo: Added new test case for
5067 SourceForge bug #14070
5069 * find/testsuite/find.posix/sv-bug-14070.exp,
5070 find/testsuite/find.posix/sv-bug-14070.xo: New file.
5072 * find/defs.h, find/ftsfind.c, find/pred.c, find/util.c:
5073 Ensure we can still build with --enable-debug
5075 * find/testsuite/config/unix.exp,
5076 find/testsuite/find.gnu/execdir-one.exp,
5077 find/testsuite/find.gnu/execdir-root-only.exp,
5078 find/testsuite/find.gnu/sv-bug-12230.exp: If . is on $PATH,
5079 indicate that the -execdir tests cannot be carried out, as opposed
5080 to indicating that those tests fail
5082 2005-08-07 James Youngman <jay@gnu.org>
5084 * NEWS: Indicated that some test suite files have been renamed.
5086 * xargs/testsuite/Makefile.am, xargs/testsuite/inputs/eof.xi,
5087 xargs/testsuite/inputs/eof1.xi,
5088 xargs/testsuite/xargs.sysv/eof.exp,
5089 xargs/testsuite/xargs.sysv/eof.xo,
5090 xargs/testsuite/xargs.sysv/eof1.exp,
5091 xargs/testsuite/xargs.sysv/eof1.xo,
5092 xargs/testsuite/xargs.posix/lc_l2.exp,
5093 xargs/testsuite/xargs.posix/lc_l2.xo,
5094 xargs/testsuite/xargs.sysv/l2.exp,
5095 xargs/testsuite/xargs.sysv/l2.xo,
5096 xargs/testsuite/xargs.sysv/lc_l2.exp,
5097 xargs/testsuite/xargs.sysv/lc_l2.xo,
5098 xargs/testsuite/xargs.posix/L2.exp,
5099 xargs/testsuite/xargs.posix/l2.exp,
5100 xargs/testsuite/xargs.posix/L2.xo,
5101 xargs/testsuite/xargs.posix/l2.xo,
5102 xargs/testsuite/xargs.posix/uc_L2.exp,
5103 xargs/testsuite/xargs.posix/uc_L2.xo: Work around problems with
5104 CVS clients on case-insentitive operating systems
5106 * debian/Changelog: Removed Changelog file since changelog is the
5107 one we should be using and having both files upsets Cygwin
5108 systems which cannot tell the dirrerence between changelog and
5112 If DEBUG is defined, show the symbolic names fro fts_info values.
5114 * find/ftsfind.c: Added additional diagnostics.
5116 2005-08-02 James Youngman <jay@gnu.org>
5119 Updated Vietnamese and Turkish translations from Translation Project
5121 * 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:
5124 * po/et.po, sk.po, ro.po:
5125 Updated Romanian, Slovak and Estonian translations from Translation Project
5127 2005-08-01 James Youngman <jay@gnu.org>
5129 * ABOUT-NLS, INSTALL, Makefile.am, configure.in, depcomp,
5130 doc/texinfo.tex, install-sh, missing, mkinstalldirs: By adding the
5131 missing AM_GNU_GETTEXT_VERSION call, allowed autopoint to update
5132 those files of which it has updated copies.
5134 * po/Makevars.template, po/Makefile.in.in, po/findutils.pot:
5135 Using AM_GNU_GETTEXT_VERSION, allowed gettext to update the infrastructure
5137 * po/Rules-quot, po/boldquot.sed, po/en@boldquot.header, po/en@quot.header, po/insert-header.sin, po/quot.sed:
5138 Files added by autopoint now that we are using AM_GNU_GETTEXT_VERSION
5140 * find/testsuite/Makefile.am: Added find.gnu./perm-slash.{exp,xo}.
5142 * po/nl.po: Updated Dutch translation from Translation Project
5144 * po/ga.po: Updated Irish translation from the Translation Project
5146 * po/da.po: Updated Danish translation from the Translation Project
5148 * po/ca.po: Updated Catalan translation from Translation Project
5150 2005-07-31 James Youngman <jay@gnu.org>
5152 * find/testsuite/excuses.txt: We now have tests for -perm.
5154 * NEWS, configure.in, find/parser.c,
5155 find/testsuite/find.gnu/perm-slash.exp,
5156 find/testsuite/find.gnu/perm-slash.xo: Fixed bug which caused find
5157 -perm /440 to be treated the same as find -perm 440
5159 * find/testsuite/Makefile.am:
5160 Generic tests for -perm -NNN and -perm NNN
5162 * find/testsuite/excuses.txt: New file - list of test cases that
5163 still need to be written, along with excuses why they haven't been
5166 * find/testsuite/find.posix/perm-vanilla.exp,
5167 find/testsuite/find.posix/perm-vanilla.xo: Generic tests for -perm
5170 * find/testsuite/find.gnu/inum.exp:
5171 Ensure that the test would fail if -inum just always returned true
5173 * find/testsuite/Makefile.am, find/testsuite/find.gnu/ilname.exp,
5174 find/testsuite/find.gnu/ilname.xo,
5175 find/testsuite/find.gnu/inum.exp, find/testsuite/find.gnu/inum.xo,
5176 find/testsuite/find.gnu/lname.exp,
5177 find/testsuite/find.gnu/lname.xo,
5178 find/testsuite/find.gnu/xtype.exp,
5179 find/testsuite/find.gnu/xtype.xo,
5180 find/testsuite/find.posix/links.exp,
5181 find/testsuite/find.posix/links.xo: New test cases for -ilname,
5182 -inum, -lname, -xtype
5184 * find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
5185 find/testsuite/find.gnu/delete.xo,
5186 find/testsuite/find.gnu/iregex1.exp,
5187 find/testsuite/find.gnu/iregex1.xo,
5188 find/testsuite/find.gnu/regex1.exp,
5189 find/testsuite/find.gnu/regex1.xo,
5190 find/testsuite/find.gnu/regex2.exp,
5191 find/testsuite/find.gnu/regex2.xo,
5192 find/testsuite/find.gnu/samefile-copy.exp,
5193 find/testsuite/find.gnu/samefile-copy.xo,
5194 find/testsuite/find.gnu/samefile-link.exp,
5195 find/testsuite/find.gnu/samefile-link.xo,
5196 find/testsuite/find.gnu/samefile-same.exp,
5197 find/testsuite/find.gnu/samefile-same.xo,
5198 find/testsuite/find.gnu/samefile-symlink.exp,
5199 find/testsuite/find.gnu/samefile-symlink.xo: Further test cases
5201 * find/find.1: Indicate that -delete implies -depth (find.texi
5202 already mentioned this).
5204 * find/testsuite/Makefile.am:
5205 Brought the list of .exp and .xo files in Makefile.am into sync with
5206 the actual contents of the CVS repository.
5208 * find/testsuite/Makefile.am, find/testsuite/find.gnu/depth-d.exp,
5209 find/testsuite/find.gnu/depth-d.xo,
5210 find/testsuite/find.gnu/empty.exp,
5211 find/testsuite/find.gnu/empty.xo,
5212 find/testsuite/find.gnu/execdir-one.exp,
5213 find/testsuite/find.gnu/execdir-one.xo,
5214 find/testsuite/find.gnu/false.exp,
5215 find/testsuite/find.gnu/false.xo,
5216 find/testsuite/find.gnu/follow-basic.exp,
5217 find/testsuite/find.gnu/follow-basic.xo,
5218 find/testsuite/find.gnu/gnu-or.exp,
5219 find/testsuite/find.gnu/gnu-or.xo,
5220 find/testsuite/find.gnu/gnuand.exp,
5221 find/testsuite/find.gnu/gnuand.xo,
5222 find/testsuite/find.gnu/gnunot.exp,
5223 find/testsuite/find.gnu/gnunot.xo,
5224 find/testsuite/find.gnu/iname.exp,
5225 find/testsuite/find.gnu/iname.xo,
5226 find/testsuite/find.gnu/ipath.exp,
5227 find/testsuite/find.gnu/ipath.xo,
5228 find/testsuite/find.gnu/iwholename.exp,
5229 find/testsuite/find.gnu/iwholename.xo,
5230 find/testsuite/find.gnu/path.exp, find/testsuite/find.gnu/path.xo,
5231 find/testsuite/find.gnu/print0.exp,
5232 find/testsuite/find.gnu/print0.xo,
5233 find/testsuite/find.gnu/quit.exp, find/testsuite/find.gnu/quit.xo,
5234 find/testsuite/find.gnu/true.exp, find/testsuite/find.gnu/true.xo,
5235 find/testsuite/find.gnu/wholename.exp,
5236 find/testsuite/find.gnu/wholename.xo,
5237 find/testsuite/find.posix/and.exp,
5238 find/testsuite/find.posix/and.xo,
5239 find/testsuite/find.posix/exec-one.exp,
5240 find/testsuite/find.posix/exec-one.xo,
5241 find/testsuite/find.posix/grouping.exp,
5242 find/testsuite/find.posix/grouping.xo,
5243 find/testsuite/find.posix/name.exp,
5244 find/testsuite/find.posix/name.xo,
5245 find/testsuite/find.posix/posixnot.exp,
5246 find/testsuite/find.posix/posixnot.xo,
5247 find/testsuite/find.posix/prune.exp,
5248 find/testsuite/find.posix/prune.xo: Added new test cases for many
5249 of the actions and tests of find
5251 * find/find.c (default_prints):
5252 not a static function, so do not declare it as one.
5254 * m4/withfts.m4: Fixed underquoted definition of FIND_WITH_FTS.
5255 [this change is currently on a branch only]
5257 2005-07-30 James Youngman <jay@gnu.org>
5259 * find/finddata.c, find/ftsfind.c, find/parser.c, find/pred.c,
5260 find/util.c, m4/Makefile.am, m4/withfts.m4: Initial attempt to
5261 convert find to use gnulib's fts()
5262 [this change is currently on a branch only]
5264 * find/finddata.c, find/ftsfind.c, m4/withfts.m4: New file.
5265 [this change is currently on a branch only]
5267 * NEWS, configure.in, find/Makefile.am, find/defs.h, find/find.c,
5268 import-gnulib.sh: Initial attempt to convert find to use gnulib's
5269 fts() [this change is currently on a branch only]
5271 2005-07-29 James Youngman <jay@gnu.org>
5273 * NEWS, configure.in
5274 Prepared for the release of findutils-4.2.24
5276 * ChangeLog: Updated with recent changes.
5278 * NEWS, find/find.1, doc/find.texi:
5279 Indicate that -ok and -okdir redirect stdin from /dev/null.
5281 * NEWS: Explain the directory link count change more throroughly.
5283 * NEWS: Fixed bug #13973.
5285 * find/pred.c (pred_fprintf): Fix Savannah bug #13973: Modify the
5286 handling of -printf %Y so that it no longer modifies stat_buf
5288 * find/testsuite/find.gnu/printf-symlink.exp,
5289 find/testsuite/find.gnu/printf-symlink.xo: Detect Savannah bug
5290 #13973: pollution of stat_buf by the %Y directive (trivial change
5291 from Andreas Metzler)
5293 * INSTALL, depcomp, doc/texinfo.tex, install-sh, missing, mkinstalldirs:
5294 Updated auxilliary files from the automake-1.9 distribution
5297 Introduce new Automake conditional, CROSS_COMPILING, true when we are corss compiling
5300 If we decline to follow a symbolic link due to the safety check, issue a more self-explanatory warning message
5302 * lib/Makefile.am: Don't build regexprops if we are cross compiling
5305 Depend on the regex.h file rather than the 'regexprops' binary,
5306 because the header file will always exist even if we are doing "make
5307 dist". Otherwise "make distcheck" fails because it tries to rebuild
5308 find.info while the source-directory is read-only.
5310 2005-07-28 James Youngman <jay@gnu.org>
5313 Say "other users" rather than "rest of the world" when talking about
5314 Unix permissions. Fixes Savannah bug #4246.
5316 2005-07-27 James Youngman <jay@gnu.org>
5318 * xargs/testsuite/Makefile.am: Added new test case 'childfail.exp'.
5321 Updated the description of the safe-dir-change operation to reflect
5322 what find now does on systems that lack O_NOFOLLOW.
5324 * NEWS, find/parser.c: Indicate in the output of find --version if
5325 the leaf optimisation is enabled or not
5327 * find/find.c: Fixed typo.
5329 * find/find.c: If the link count of a directory starts off less
5330 than two, disable the leaf optimisation for this directory.
5332 2005-07-26 James Youngman <jay@gnu.org>
5334 * lib/regexprops.c: Further small corrections from Karl.
5337 Reordered the sections in the manual to put the "Common Tasks" and
5338 "Worked Examples" chapters together.
5340 * configure.in, find/find.c: Allow the leaf optimisation to be
5341 disabled by default with the configure option
5342 --disable-leaf-optimisation
5344 * find/find.c: Removed old code for antuqie version of savedir().
5346 * lib/regextype.c: Put the syntaxes in alphabetical order.
5348 * lib/regexprops.c: Karl made some more readability suggestions.
5350 2005-07-24 James Youngman <jay@gnu.org>
5352 * doc/Makefile.am: If the regexprops program has changed we should
5353 re-run it, since it will probably now produce different output
5356 Allow the caller to detect if one regex type is identical to another.
5359 Define the preprocessor macro FINDUTILS for that code int he lib/
5360 directory can be slightly more reusable.
5363 Allow the caller to detect if one regex type is identical to another.
5366 Made Texinfo style corrections suggested by Karl Berry.
5368 2005-07-22 James Youngman <jay@gnu.org>
5370 * xargs/testsuite/xargs.posix/childfail.exp, xargs/xargs.c: Fix
5371 Savannah bug #13878, in which xargs deals incorrectly with child
5372 failure, returning 0 when it should return 123
5374 2005-07-17 James Youngman <jay@gnu.org>
5376 * find/find.1: (tiny change) Corrections by Greg Wooledge
5378 2005-07-16 James Youngman <jay@gnu.org>
5380 * doc/find.texi: Updates following comments by Dave Gilbert.
5382 * NEWS: Corrected a typo.
5385 Added in the example about updating an aggregate timestamp file.
5387 2005-07-15 James Youngman <jay@gnu.org>
5389 * po/da.po: Updated Danish translation from translation project
5391 2005-07-14 James Youngman <jay@gnu.org>
5393 * NEWS, doc/Makefile.am, doc/find.texi, lib/Makefile.am,
5394 lib/regexprops.c, lib/regextype.c, lib/regextype.h: Added
5395 --regextype and -regextype options to locate and find
5396 respectively, and documented these
5398 * doc/find.texi: We use GNU Emacs regexps by default now.
5401 We require GNU sort in order for locate to handle newlines correctly,
5404 2005-07-10 James Youngman <jay@gnu.org>
5407 Applied several documentation improvement patches from Aaron Hawley
5409 * ChangeLog, NEWS: Updated with recent changes.
5411 * NEWS: Recent gnulib changed have fixed -iregex
5413 * doc/find.texi, xargs/xargs.1:
5414 Tiny patch from Andreas Metzler: xargs -I is like xargs -i, but the latter is deprecated
5416 2005-07-06 James Youngman <jay@gnu.org>
5418 * find/defs.h, find/find.c, find/parser.c, find/pred.c:
5419 Fixed Savannah bug #13650; programs run by -exec cannot read stdin
5421 2005-07-04 James Youngman <jay@gnu.org>
5423 * NEWS: *** empty log message ***
5426 Added a "Worked Examples" section. It currently only contains a
5427 (long) example about deleting files.
5429 * .cvsignore: Some extra stuff to ignore.
5431 2005-07-03 James Youngman <jay@gnu.org>
5433 * find/Makefile.am: Don't need regexprops.c really...
5435 * lib/regextype.c, lib/regextype.h:
5436 New files for selecting regex type based on a keyword
5438 * locate/locate.1: Documented the fact that we now use Emacs-style
5439 regexps, not POSIX EREs, for compatibility with find -regex.
5441 * lib/Makefile.am, locate/locate.c, doc/find.texi,
5442 find/Makefile.am, find/defs.h, find/find.1, find/find.c,
5443 find/parser.c: Fixed Savannah bug #13495: find now uses
5444 Emacs-style regexps by default
5446 2005-07-02 James Youngman <jay@gnu.org>
5448 * configure.in, find/defs.h, find/fstype.c, find/parser.c,
5449 intl/dcigettext.c, lib/buildcmd.c, lib/listfile.c,
5450 lib/savedirinfo.c, locate/locate.c, xargs/xargs.c: Assume unistd.h
5451 is present - avoid using HAVE_UNISTD_H
5453 2005-07-01 Jim Meyering <jim@meyering.net>
5455 With `-fprint F' or `-fprintf F', don't write diagnostics
5456 to F when stderr is closed.
5458 * find/parser.c: Include "stdio-safer.h".
5459 (open_output_file): Use fopen_safer, not fopen.
5460 * import-gnulib.sh (findutils_modules): Add stdio-safer.
5462 2005-07-01 James Youngman <jay@gnu.org>
5465 Aaron pointed out a potentially-confusing sentence. I fixed it.
5467 * find/defs.h, find/find.1, find/find.c, find/parser.c,
5468 find/pred.c, find/util.c: Allow consistency-checking of the
5469 predicates, checking for example that actions all have side
5472 2005-06-29 James Youngman <jay@gnu.org>
5474 * doc/find.texi: Applied patch from Aaron Hawley (Savannah patch
5475 #3751: Typos and small suggestions to find.texi)
5477 2005-06-27 James Youngman <jay@gnu.org>
5479 * ChangeLog, locate/locate.c: Applied patch from Bas Van Gompel to
5480 move match counting into a (new) visitor function
5482 * NEWS, configure.in: No longer 4.2.23, as we're moving on now
5484 2005-06-24 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
5486 * locate/locate.c (visit_count, visit_limit): New functions.
5487 (locate): Use visit_limit or visit_count. Simplify main loop.
5488 (main) Bail out early when limit is reached.
5490 2005-06-20 James Youngman <jay@gnu.org>
5493 Removed some code which had already been disabled via the preprocessor.
5495 2005-06-19 Dmitry V. Levin <ldv@altlinux.org>
5497 * lib/savedirinfo.c: Fix two compilation warnings (which would
5498 prevent compilation if "-Wall -Werror" is in effect).
5500 2005-06-19 James Youngman <jay@gnu.org>
5502 * ChangeLog: Indicate that we made (are making) a release.
5504 * ChangeLog, NEWS, configure.in: Preparing to release 4.2.23
5506 * doc/find.texi: Fixed Texinfo syntax error in previous change
5508 * doc/find.texi, xargs/xargs.1:
5509 Document the fact that the -i and -L options are currently
5510 incompatible (Savannah bug 13041).
5512 * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
5513 reject trailing slashes in updatedb's --prunepaths, bacsue these
5514 will never be matched
5516 * NEWS: Released findutils-4.2.23.
5518 * doc/find.texi, xargs/xargs.1:
5519 Document the fact that the -i and -L options are currently
5520 incompatible (Savannah bug 13041).
5522 * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
5523 reject trailing slashes in updatedb's --prunepaths, because these
5524 will never be matched.
5526 2005-06-18 James Youngman <jay@gnu.org>
5528 * po/ga.po, tr.po: Updated Irish and Turkish translations.
5530 * po/pl.po: Did update-po
5533 Updated Polish translation file from the Translation Project
5535 * 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:
5538 2005-06-18 Martin Buchholz (tiny change)
5540 * find/defs.h, find/find.c, find/parser.c, doc/find.texi: Fix
5541 typos/spelling errors (mostly in source code comments).
5543 2005-06-18 Dmitry V. Levin <ldv@altlinux.org>
5545 Additional documentation tweaks for -execdir/-okdir actions.
5546 * find/parser.c (parse_help): Mention -execdir and -ordir options.
5547 * doc/find.texi, find/find.1: Additionally document new options.
5549 2005-06-12 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
5551 * locate/locate.c: Implement --all (-A).
5553 * NEWS, doc/find.texi, locate/locate.1: Document locate --all (-A)
5555 2005-06-12 James Youngman <jay@gnu.org>
5557 * find/find.c, NEWS:
5558 Savannah bug #13381 (Debian bug 313081): if we have O_NOFOLLOW,
5559 safely_chdir() does not need to call stat(). However, process_dir()
5560 used to rely on using that stat information. To work around this
5561 problem, there is now an output parameter in safely_chdir() which
5562 indicates if the stat buffer is valid.
5563 This bug has possible security implications.
5565 * find/find.1, doc/find.texi:
5566 Applied patch from Andreas Metzler, improving the wording for the
5567 documentation of the %k and %b format directives. This patch does
5568 not require a copyright assignment as it consists of several
5569 copies of the same small wording change.
5571 2005-06-11 James Youngman <jay@gnu.org>
5573 * find/find.1: Corrected spelling error 'writeable' to 'writable'.
5575 * find/find.1, locate/locate.1:
5576 Fixed Savannah bug #13363, typos in manpages (tiny change)
5578 2005-06-10 James Youngman <jay@gnu.org>
5580 * find/find.c, lib/savedirinfo.c, lib/savedirinfo.h: Switch to a
5581 new scheme for saving directory entry data which is extensible to
5582 allow additional data to be saved.
5584 2005-06-09 James Youngman <jay@gnu.org>
5586 * locate/testsuite/config/unix.exp:
5587 Use the new normalize_dir procedure throughout.
5589 * locate/testsuite/config/unix.exp: Move the normalisation into a
5590 procedure. Don't rely on the "file normalize" command being
5591 available (it's new in Tcl 8.4).
5593 2005-06-08 James Youngman <jay@gnu.org>
5595 * ChangeLog, NEWS, configure.in: Updated for recent changes
5598 Explain that you should put the argument of -name in quotes.
5601 Added a new "NON-BUGS" section pointing out things that look like bugs
5602 but are caused by mistakes or misunderstandings.
5604 * doc/find.texi, locate/locate.1: Applied Bas van Gompel's patch
5605 which allows the database to be read from stdin.
5608 Read the database in by using the "visitor" pattern. Modified file
5609 header comment to indicate that we no longer use the efficient
5610 algorith described in ;login:. Emit an error message if the
5611 LOCATE_PATH variable implies that we should read stdin twice.
5612 Most of this code is from Bas van Gompel.
5614 * AUTHORS: Credit Bas van Gompel for his work on locate.
5616 * lib/printquoted.h: Appled patch from Bas - fixing compiler warning.
5618 2005-06-07 James Youngman <jay@gnu.org>
5620 * ChangeLog, NEWS, configure.in: Updates prior to release
5622 * config.rpath: Added file required for 'make dist'
5624 * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
5625 po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
5626 po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
5627 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
5628 po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po,
5629 po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po:
5630 updated the po files for release
5632 * xargs/testsuite/Makefile.am:
5633 Added in all the test files from Dmitry V. Levin.
5635 2005-06-08 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
5637 * NEWS, locate/locate.1, doc/find.texi: Document usage of `-'
5638 to refer to stdin in database-path for locate.
5639 * locate/locate.c: Change prototype for visitors and processors
5640 throughout. Move reading the database and generating base_name
5641 into visitors. Allow `-' to refer to stdin in database-path.
5643 * lib/printquoted.h: Include stdio.h.
5645 2005-06-07 James Youngman <jay@gnu.org>
5647 * COPYING, debian/copyright, depcomp, doc/texinfo.tex,
5648 find/defs.h, find/find.c, find/fstype.c, find/parser.c,
5649 find/pred.c, find/testsuite/config/unix.exp, find/tree.c,
5650 find/util.c, import-gnulib.sh, intl/Makefile.in,
5651 intl/bindtextdom.c, intl/config.charset, intl/dcgettext.c,
5652 intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c,
5653 intl/dngettext.c, intl/explodename.c, intl/finddomain.c,
5654 intl/gettext.c, intl/gettext.h, intl/gettextP.h,
5655 intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
5656 intl/libgettext.h, intl/libgnuintl.h, intl/loadinfo.h,
5657 intl/loadmsgcat.c, intl/localcharset.c, intl/locale.alias,
5658 intl/localealias.c, intl/ngettext.c, intl/plural.c, intl/plural.y,
5659 intl/ref-add.sin, intl/ref-del.sin, intl/textdomain.c,
5660 lib/buildcmd.c, lib/buildcmd.h, lib/extendbuf.c, lib/extendbuf.h,
5661 lib/forcefindlib.c, lib/listfile.c, lib/listfile.h,
5662 lib/modetype.h, lib/nextelem.c, lib/nextelem.h, lib/printquoted.c,
5663 lib/printquoted.h, lib/qmark.c, lib/savedirinfo.c,
5664 lib/savedirinfo.h, lib/strspn.c, lib/wait.h, lib/waitpid.c,
5665 locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c,
5666 locate/locatedb.h, locate/testsuite/config/unix.exp,
5667 locate/updatedb.sh, missing, po/fetch-po-files,
5668 xargs/testsuite/config/unix.exp, xargs/xargs.c:
5669 Updated the FSF's postal address
5671 * ChangeLog: Corrected Bas's email address.
5673 * locate/locate.c: Updated copyright years.
5675 2005-06-07 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
5677 * locate/locate.c: Fold case once, only when needed.
5679 2005-06-07 James Youngman <jay@gnu.org>
5681 * NEWS: Updated with recent changes.
5683 * mdate-sh: Use the mdate-sh from automake
5685 * find/parser.c, find/pred.c, find/tree.c, find/util.c,
5686 lib/Makefile.am, lib/forcefindlib.c, lib/listfile.c,
5687 lib/listfile.h, locate/code.c, locate/locate.c, find/defs.h,
5688 find/find.c: Fix Savannah bug #13324: Fix compiler warnings for
5692 Fixed Savannah bug #13325: Quoting of output filenames in locate
5696 Fixed Savannah bug #13319: C9X-ism in parser.c (declaration after
5699 * find/pred.c, lib/Makefile.am, lib/listfile.c, lib/nextelem.c,
5700 lib/printquoted.c, lib/printquoted.h, lib/qmark.c, NEWS,
5701 doc/find.texi, find/defs.h, find/find.1, find/parser.c: Fixed
5702 Savannah bug #13303, find should filter out non-printable
5703 characters if outputting to tty
5705 2005-05-30 James Youngman <jay@gnu.org>
5707 * locate/locate.c: rename new_locate() to locate() since
5708 old_locate() has gone the way of the dodo.
5710 2005-05-29 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
5712 Add a ``--print'' (``-p'') option. (to cancel side-effects of -c/-S)
5713 Allow ``--statistics'' in combination with non-options.
5714 * doc/find.texi: Add documentation for locate --print (-p), and the
5715 use of non-options with --statistics.
5716 * locate/locate.1: ditto.
5717 * locate/locate.c: Read each database only once.
5719 2005-05-23 Paul Eggert <eggert@cs.ucla.edu>
5721 Adjust to recent gnulib changes.
5722 * import-gnulib.sh: Get config.rpath from gnulib/build-aux,
5724 * find/parser.c (parse_perm): Ignore umask when parsing
5725 symbolic permissions. Adjust to new modechange API.
5727 2005-05-16 James Youngman <jay@gnu.org>
5729 * find/find.c, find/parser.c, find/pred.c, find/tree.c:
5730 Trivial change: don't use i18n support for debug-only messages
5732 * ChangeLog: Added ChangeLog entry crediting Dmitry
5734 2005-05-09 James Youngman <jay@gnu.org>
5737 The previous change fixed Savannah bug #12999. This change doesn't do
5738 anything, it's only intended to be a place to record the Savannah bug
5739 ID we've just fixed.
5742 Oops. Initialise the variable which indicates which regex syntax to
5743 use. We use POSIX basic regular expressions.
5746 Suggestion by Ed Avis: point out that "-name foo/bar" will almost
5747 always evaluate to false. Suggest to the user what alternatives they
5750 2005-05-02 James Youngman <jay@gnu.org>
5753 Added Dimitry (his new test suite contribution required a copyright
5756 2005-05-03 Dmitry V. Levin
5758 * Added xargs test suite tests by Dmitry V. Levin, together with
5759 bugfixes which ensure that the tests pass.
5761 2005-04-18 James Youngman <jay@gnu.org>
5763 * Added test suite tests for Bas van Gompel's changes.
5765 2005-04-18 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
5767 * doc/find.texi: Document locate --non-existing (-E).
5768 * locate/locate.1: Ditto.
5769 * locate/locate.c: Implement --non-existing (-E).
5771 2005-04-04 James Youngman <jay@gnu.org>
5773 * configure.in, import-gnulib.sh:
5774 We no longer need gnulib/m4/Makefile.am
5776 * po/vi.po: Updated Vietnamese translation
5778 * locate/updatedb.sh:
5779 Savannah bug #12491: Only use the "-s" option to "su" if it is
5782 2005-04-01 James Youngman <jay@gnu.org>
5784 * locate/locate.1, locate/updatedb.1, xargs/xargs.1: Trivial
5785 change from A Costa <agcosta@gis.net>, fixing typos in manual
5786 pages for xargs, locate and updatedb; fixes Savannah bug #12500,
5789 2005-03-22 James Youngman <jay@gnu.org>
5791 * import-gnulib.sh: Include the new gnulib module stat-macros
5794 CVS code is (will shortly be) no longer identical to the 4.2.20 release
5796 2005-03-17 James Youngman <jay@gnu.org>
5798 * configure.in: Preprare for release of 4.2.20.
5800 * NEWS: Updated prior to release of 4.2.20.
5802 * ChangeLog: Updated with recent changes.
5804 * THANKS: Thank Bas van Gompel, but only once.
5806 * THANKS: Thank Bas van Gompel and Aaron S. Hawley.
5808 * po/vi.po: Updated Vietnamese PO file
5810 2005-03-10 James Youngman <jay@gnu.org>
5812 * po/nl.po: Updated Dutch PO file
5814 2005-03-08 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
5816 * import-gnulib.sh: Re-enable creation of gnulib/m4/Makefile.am.
5818 2005-03-07 James Youngman <jay@gnu.org>
5820 * Released findutils-4.2.19.
5822 * find/testsuite/find.posix/sizes.exp:
5823 Use 2>/dev/null instead of 2>&1, because Tcl understands the former
5826 * find/testsuite/Makefile.am: Also distribute sv-bug-12181.xo.
5828 * find/testsuite/Makefile.am: Distribute sv-bug-12181.
5830 * find/testsuite/Makefile.am: Distribute sv-bug-12230.
5832 * NEWS: Updated with new news.
5834 * ChangeLog: Brought up to date.
5836 * lib/buildcmd.c, find/testsuite/find.gnu/sv-bug-12230.exp: Fixed
5837 Savannah bug #12230, in which '-exec echo == {} +' is always run,
5838 even if there were no matched files.
5840 2005-03-06 James Youngman <jay@gnu.org>
5842 * ChangeLog: Added latest changes.
5844 * po/pt.po, configure.in: Added Portuguese translation
5846 2005-03-04 James Youngman <jay@gnu.org>
5848 * configure.in: Modernized the way we call AC_INIT and
5851 * locate/locate.c, find/pred.c, find/find.c:
5852 Eliminated some compiler warnings
5854 * find/pred.c: Clarified the meaning of a comment.
5856 * find/testsuite/Makefile.am: Added sizes.exp, sizes.xo.
5858 * find/testsuite/find.posix/sizes.xo,
5859 find/testsuite/find.posix/sizes.exp: Added tests for -size
5862 2005-03-03 James Youngman <jay@gnu.org>
5865 safely_chdir_lstat(): if we didn't end up in the right place, and then
5866 fchdir() fails, we can't return to the directory we started in.
5867 Therefore, issue a fatal error message and exit.
5869 2005-03-01 James Youngman <jay@gnu.org>
5871 * find/find.c, find/testsuite/find.posix/sv-bug-12181.exp,
5872 find/testsuite/find.posix/sv-bug-12181.xo: Fixed SourceForge bug
5873 12181 (find -H symlink-to-dir reports 'Too many Symbolic links')
5874 and bug 12044 (find still hangs on dead NFS filesystems on
5877 2005-02-28 James Youngman <jay@gnu.org>
5879 * doc/find.texi: Typo: O_NOFOLLOW, not O_FOLLOW
5882 Suggestion from Martin Buchholz; unset CDPATH to prevent "cd" echoing
5885 2005-02-27 James Youngman <jay@gnu.org>
5887 * README: Indicate how the reader can verify the release.
5889 2005-02-26 James Youngman <jay@gnu.org>
5891 * po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po,
5892 po/zh_CN.po, po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po,
5893 po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot,
5894 po/fr.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
5895 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
5896 po/pt_BR.po, po/ro.po, po/ru.po: Added new Vietnamese translation
5898 * configure.in: Added new Vietnamese translation.
5900 2005-02-25 James Youngman <jay@gnu.org>
5902 * po/ga.po: Updated Irish po file
5904 2005-02-23 James Youngman <jay@gnu.org>
5906 * Makefile.am: Fix Savannah bug #12064 - 'make distclean' deletes
5907 regex.c but should not.
5909 * find/testsuite/Makefile.am,
5910 find/testsuite/find.gnu/printf-h.exp,
5911 find/testsuite/find.gnu/printf-h.xo: Added test case for Savannah
5912 bug #12085 (-printf %h).
5914 * NEWS, doc/find.texi, find/find.1, find/pred.c:
5915 %h now expands to '.' instead of nothing.
5917 2005-02-22 James Youngman <jay@gnu.org>
5920 Fixed Savannah bug #12099 (misinterpretation of system versions
5921 leading to possible incorrect disabling of O_NOFOLLOW). Reported by
5925 For the %h format, don't bail out early as the format might contain
5928 2005-02-21 James Youngman <jay@gnu.org>
5930 * find/find.c: Fixed accidental C99 dependency.
5932 2005-02-20 James Youngman <jay@gnu.org>
5934 * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
5935 po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
5936 po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
5937 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
5938 po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sl.po, po/sr.po,
5939 po/sv.po, po/tr.po, po/zh_CN.po: Updated italian translation
5941 * doc/find.texi: Corrected a typo.
5944 Read the mounted device list afer parsing the command line, so that
5945 for example "find --version" still works (in response to Savannah bug
5948 * configure.in: We've moved on from findutils-4.2.18.
5950 2005-02-19 James Youngman <jay@gnu.org>
5952 * NEWS: Corrected the summary of the "find -depth" bug.
5954 2005-02-16 James Youngman <jay@gnu.org>
5956 * NEWS, configure.in: Prepared for release of 4.2.18.
5958 * ChangeLog: Updated prior to release of 4.2.18.
5960 * find/testsuite/Makefile.am:
5961 Distribute the test cases for the recent "find -depth" bug.
5963 * find/testsuite/find.posix/depth1.exp, find/testsuite/find.posix/depth1.xo:
5964 Added test case for find -depth bug reported by Joseph S. Myers
5967 If -depth is in effect, processing of the subdirectories invalidates
5968 the information in 'state'. Therefore once we get around to
5969 processing the predicates, restore the information that we keep in
5970 'state' and in 'stat_buf'.
5972 2005-02-15 James Youngman <jay@gnu.org>
5974 * ChangeLog: Updated with recent changes
5977 Emphasise that -L causes find to recurse into subdirectories pointed
5978 to by symbolic links.
5981 Patch to find.1 from Aaron Hawley <Aaron.Hawley@uvm.edu>:
5983 * Notes about -H actually apply to -L.
5984 * Said paragraph is duplicated two paragraphs later.
5985 * Typos: nno, ibmue, surrpounding
5987 2005-02-15 Aaron Hawley <Aaron.Hawley@uvm.edu>
5989 * find/find.1: Notes about -H actually apply to -L. Said
5990 paragraph is duplicated two paragraphs later. Also typos: nno,
5993 2005-02-13 James Youngman <jay@gnu.org>
5995 * find/find.1: Miscellaneous small clarifications and improvements.
5997 * doc/find.texi: Added Info nodes and menus under "Changing the
5998 Current Working Directory" so that it doesn't generate such a huge
6001 * find/find.c: Parenthesise #if defined(...).
6003 2005-02-13 Dmitry V. Levin <ldv@altlinux.org>
6005 * find/find.c: remove test code snippet (time(NULL) was used to
6006 place a marker for spotting with strace(), but was not actually
6009 * find/find.c (safely_chdir_nofollow): must not fall back on
6010 safely_chdir_lstat() because that will expose it to race condition
6011 exploits, making it pointless.
6013 * find/find.c (safely_chdir_lstat): Move
6014 complete_pending_execdirs() up into safely_chdir(), because we
6015 need to do that in either case.
6017 2005-02-12 James Youngman <jay@gnu.org>
6019 * configure.in, doc/find.texi, find/defs.h, find/find.c,
6020 find/parser.c: Fix for Savannah bug #11879, that
6021 init_mounted_dev_list() causes find to hang on systems which are
6022 clients to dead NFS servers
6024 2005-02-10 James Youngman <jay@gnu.org>
6026 * doc/find.texi: Talk about the problem where find will not work
6027 if you have a filesystem mounted from an unresponsive NFS server.
6029 2005-02-09 James Youngman <jay@gnu.org>
6031 * find/find.1: Indicate that $TZ affects from printf-format
6032 results, and add extra cross-references in the SEE ALSO section.
6034 2005-02-08 James Youngman <jay@gnu.org>
6036 * xargs/testsuite/Makefile.am: Distribute the .xe files also.
6038 * Makefile.am: Check that we have the right number of .xe files in
6039 the distribution also.
6041 * ChangeLog, NEWS, configure.in
6042 Preparing to release findutils-4.2.17
6044 2005-02-07 James Youngman <jay@gnu.org>
6046 * find/testsuite/config/unix.exp: Re-sort the .xo file using the
6047 calling user's locale, because our 'pre-sorted' .so output file
6048 may not be sorted with the same collating order as 'sort' used to
6049 order the output of "find. Bug spotted by Vin Shelton and Dimitry
6052 * find/testsuite/Makefile.am:
6053 New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
6055 * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
6056 find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
6057 Fix for starting point /foo/bar/baz where bar is a symlink but baz
6058 is not - we should chdir into bar there even if it is a symbolic
6061 2005-02-07 James Youngman <jay@gnu.org>
6063 * find/testsuite/Makefile.am:
6064 New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
6066 * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
6067 find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
6068 Fix for starting point /foo/bar/baz where bar is a symlink but baz
6069 is not - we should chdir into bar there even if it is a symbolic
6072 2005-02-06 James Youngman <jay@gnu.org>
6075 -size: Clarification - -size gives a result consistent with 'wc -c'
6078 * Makefile.am, find/testsuite/Makefile.am,
6079 find/testsuite/find.gnu/execdir-root-only.exp,
6080 find/testsuite/find.gnu/execdir-root-only.xo,
6081 locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
6082 dist-hook: Ensure that we distribute all the .po files and all the
6085 * po/pl.po: Updated Polish translation from TP website
6087 2005-02-05 Dmitry V. Levin <ldv@altlinux.org>
6089 * find/parser.c, find/pred.c: Additional tweaks for
6090 -execdir/-okdir actions.
6092 * find/parser.c (new_insert_exec_ok): Disable ignore_readdir_race
6093 for -execdir/-okdir.
6095 * find/pred.c (pred_execdir, pred_okdir): Use state.rel_pathname
6096 instead of basename(pathname). Do not add "./" prefix for
6099 * find/find.c (process_top_path): Treat "/" similarly to ".".
6101 * xargs/testsuite/xargs.posix/savannah-11865.exp,
6102 xargs/testsuite/xargs.posix/savannah-11865.xo, xargs/xargs.c:
6103 Fixed Savannah bug #11866 (not resetting number of used chars in
6104 the command buffer) - reported by Dimitry V. Levin
6106 2005-02-05 James Youngman <jay@gnu.org>
6109 Added thanks for Dimitry - has produced many patches, bugfixes and
6113 Fixed Savannah bug #11866: typo in pred_okdir() renders it useless
6116 Savannah bug #11861: undefined symbol 'basename' on IRIX 5.3
6118 * NEWS, configure.in, po/be.po, po/ca.po, po/el.po, po/eo.po,
6119 po/fi.po, po/ga.po, po/hr.po, po/hu.po, po/ja.po, po/lg.po,
6120 po/ms.po, po/ro.po, po/sl.po, po/sr.po, po/zh_CN.po: Added new
6123 * ChangeLog: Updated from CVS prior to release of 4.2.16.
6125 * po/ChangeLog: Updated from CVS.
6127 * NEWS, configure.in: Preparing to release 4.2.16
6129 * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
6130 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
6131 po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sl.po, po/sv.po,
6132 po/tr.po: make update-po prior to 'make distcheck'
6134 * po/fetch-po-files: This is the first version we actually used.
6136 * find/find.c: process_top_path() fixed compilation warning.
6138 * find/find.c: process_top_path(): avoid processing this item if
6139 we can't chdir to the basename of the named file.
6141 * lib/Makefile.am: Always build forcefindlib.c
6143 * locate/locate.c: Say 'base name' rather than 'basename' in comments
6145 * find/pred.c, find/find.c: process_top_path(): Proper bugfix for
6146 correct handling of items at depth 0 (i.e. specified on the
6147 command line) - do an extra chdir to ensure that we're in the
6148 directory containing the item before calling process_path().
6149 Hnece also undo the previous 'quick fix' for the same problem
6152 -execdir no longer has to treat anything as special, even at depth 0.
6154 2005-02-03 James Youngman <jay@gnu.org>
6156 * doc/find.texi, find/pred.c: When state.curdepth is 0, our
6157 working directory is not the directory containing the file we are
6160 2005-02-02 James Youngman <jay@gnu.org>
6163 To allow compilation on cygwin, use base_name(), not basename().
6165 * po/tr.po: Updated Turkish translation from TP
6167 * po/ro.po: Updated Romanian translation from TP
6169 * po/da.po, po/et.po: Updated translations from MT project website
6171 2005-02-01 James Youngman <jay@gnu.org>
6173 * ChangeLog: Updated from CVS log.
6175 2005-01-31 James Youngman <jay@gnu.org>
6177 * find/find.c, lib/nextelem.c, lib/nextelem.h, locate/code.c,
6178 locate/frcode.c, locate/testsuite/config/unix.exp,
6179 xargs/testsuite/config/unix.exp, xargs/xargs.c: Updated/corrected
6180 the email address for David MacKenzie, one of the original authors
6183 * doc/Makefile.am: The HTML version of the manual generated for
6184 the GNU project website has each node in a separate file, not each
6185 chapter in a separate file; adjust filenames accordingly
6187 * find/parser.c, find/pred.c, lib/savedirinfo.c:
6188 Removed some unused variables (patch from Dmitry V. Levin)
6191 Patch from Dmitry V. Levin <ldv@altlinux.org>: Add subfs to the list
6192 of filesystems which are likely to be automounted.
6194 * m4/findlib.m4: Corrected typo (pointed out by Dmitry V. Levin).
6196 * find/testsuite/config/unix.exp,
6197 find/testsuite/find.gnu/name-period.xo,
6198 find/testsuite/find.gnu/posix-dflt.xo,
6199 find/testsuite/find.gnu/posix-h.xo,
6200 find/testsuite/find.gnu/posix-l.xo,
6201 find/testsuite/find.gnu/printf.exp,
6202 find/testsuite/find.gnu/printf.xo: Systems differ in the order in
6203 which filenames are returned by readdir. Hence sort the output of
6204 'find' before comparing against the expected-output file. We
6205 therefore also have the lines in the .xo files ready-sorted.
6207 * po/ca.po: Updated from Translation Project
6209 * po/ChangeLog: Updated from CVS logs.
6211 * po/de.po, es.po, et.po, fr.po, gl.po, id.po, it.po, ko.po, nl.po,
6212 pl.po, pt_BR.po, ru.po, sk.po, sv.po, tr.po, da.po: Ran update-po
6214 * po/be.po, ca.po, el.po, eo.po, fi.po, hr.po, hu.po, ja.po, lg.po,
6215 ms.po, ro.po, sl.po, sr.po, zh_CN.po: Added new translation files
6216 from the Translation Project web site
6218 * po/da.po, de.po, es.po, et.po, fr.po, ga.po, gl.po, id.po, it.po,
6219 ko.po, nl.po, pl.po, pt_BR.po, ru.po, sk.po, sv.po, tr.po: Updated
6220 .po files from the Translation Project site
6222 2005-01-30 James Youngman <jay@gnu.org>
6225 Added rules for extra targets that we buld to update the web site.
6227 2005-01-29 James Youngman <jay@gnu.org>
6229 * configure.in: No longer version 4.2.15 - we've changed the manual.
6232 Clarified the txt about adding extra tests with post-processing via
6233 xargs, and recommend -execdir instead for security reasons.
6235 * doc/find.texi: Patch from Karl Berry:
6236 - more entries for the dir file
6237 - use @copying so the copyright ends up in the HTML etc. output.
6238 (This is the only really important change.)
6239 - put @contents after the title page, for conventional toc location.
6240 - use @ifnottex to wrap the Top node instead of @ifinfo, for the sake of
6243 * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
6244 po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
6245 po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
6246 po/sv.po, po/tr.po: Prepared to release findutils-4.2.15
6248 * ChangeLog: Updated from CVS log.
6250 2005-01-28 James Youngman <jay@gnu.org>
6253 Make --enable-d_type-optimization and --enable-d_type-optimisation
6256 * configure.in: Assume --enable-d_type-optimisation by default
6258 * find/parser.c: Indicate which features are enabled/disabled
6260 * locate/testsuite/config/unix.exp:
6261 Clean up the files left behind by the locate_textonly test
6263 2005-01-27 James Youngman <jay@gnu.org>
6265 * doc/find.texi: Documented --regex.
6267 * NEWS, locate/locate.1, locate/locate.c, locate/testsuite/Makefile.am, locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/regex1.exp:
6268 Implemented locate --regex - but needs documenting in Texinfo manual.
6270 2005-01-25 James Youngman <jay@gnu.org>
6272 * configure.in: Bumped version no.
6275 Document --mmap and --stdio as being synonyms of -m and -s.
6278 Document --mmap and --stdio as synonyms of -m and -s.
6281 Document -m and -s (both no-ops) in the usage message.
6283 * doc/find.texi, locate/locate.1: Document -m and -s as no-ops.
6285 * ChangeLog: Updated for release of findutils-4.2.14.
6287 * 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:
6288 Preparing to release findutils-4.2.14
6290 2005-01-25 James Youngman <jay@gnu.org>
6292 * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
6293 po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
6294 po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
6295 po/sv.po, po/tr.po: Preparing to release findutils-4.2.14
6297 2005-01-24 James Youngman <jay@gnu.org>
6299 * Makefile.am: Work around the fact that automake-1.7 actually
6300 works, and correctly distributes regex.c; hence dist-hook should
6301 only copy gnulib/lib/regex.c if this has not already been done.
6303 * find/defs.h, find/find.c, find/pred.c,
6304 find/testsuite/Makefile.am,
6305 find/testsuite/find.gnu/printf-symlink.exp,
6306 find/testsuite/find.gnu/printf-symlink.xo,
6307 find/testsuite/find.gnu/xtype-symlink.exp,
6308 find/testsuite/find.gnu/xtype-symlink.xo: Fixes for -xtype and
6309 -printf %Y, which had been the wrong way around.
6311 * NEWS: Avoid including the find.gnu subdirectory in the
6312 distributed file more than once
6315 Move the printing of the statistics into a new function, print_stats()
6317 * find/testsuite/Makefile.am: Avoid including the find.gnu
6318 subdirectory in the distributed file more than once
6321 We need the regex module anyway, to allow compilation on Solaris
6323 2005-01-23 James Youngman <jay@gnu.org>
6326 Invoke gl_INCLUDED_REGEX directly to ensure successful compilation on
6327 systems like Solaris, which lacks those functions in libc (fixes GNU
6328 Savannah bug #11710).
6330 * locate/locate.1: -S is a synonym for --statistics
6332 * doc/find.texi: Documented the new -H, -L and -P options.
6334 * locate/locate.1, locate/locate.c: Implement options -L
6335 (default), -H and -P, which mean the same things as for find,
6336 except for the fact that the default is -L rather than -P
6338 * find/find.1: Corrected definition of the exit status for -quit.
6340 * find/find.c, find/pred.c: If DEBUG_STAT is set, issue a debug
6341 message when we call chdir() so that we can figure out what is
6342 actually being stat()ed
6344 * locate/updatedb.sh:
6345 Removed spurious newline from help message (bug report from Karl
6348 * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
6349 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
6350 po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po,
6351 Makefile.am, NEWS, configure.in, find/defs.h, find/find.c,
6352 find/parser.c, find/pred.c, find/tree.c, find/util.c,
6353 import-gnulib.sh, lib/savedirinfo.c: Merged the d_type
6354 optimisation code; this is disabled by default, and can be enabled
6355 with 'configure --enable-d_type-optimisation'
6358 Updated optimisation NEWS item to indicate the effect on runtime.
6360 2005-01-22 James Youngman <jay@gnu.org>
6362 * NEWS, configure.in: Prepare for release of findutils-4.2.12
6364 * ChangeLog: Brought up to date with recent changes.
6366 * Makefile.am, import-gnulib.sh, po/Makefile.in.in, po/Makevars,
6367 po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
6368 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
6369 po/pl.po, po/pt_BR.po, po/remove-potcdate.sin, po/ru.po, po/sk.po,
6370 po/sv.po, po/tr.po: Switch to using the gnulib gettext module, to
6371 ensure that 'make distcheck' works with current xgettext,
6374 * find/testsuite/config/unix.exp:
6375 Oops, we do need to clean up after all.
6377 2005-01-21 James Youngman <jay@gnu.org>
6379 * xargs/testsuite/Makefile.am: Added name of missing input file.
6381 * find/testsuite/Makefile.am:
6382 Distribute a few files that we had forgotten about
6384 * xargs/testsuite/Makefile.am: Added some missing files.
6386 * lib/Makefile.am: Also need buildcmd.h.
6388 * xargs/testsuite/Makefile.am: Fixed a typo.
6390 * NEWS: Indicate the d_type performance improvement
6392 2005-01-18 James Youngman <jay@gnu.org>
6394 * lib/savedirinfo.h: Added on d_type_optimisation also
6396 * lib/savedirinfo.c: Added on branch d_type_optimisation also.
6398 * find/pred.c: Added assert that we actually know the file type by
6399 the time pred_type() is called
6401 * find/find.c: Always initialise state.have_stat = false when
6402 starting to work with a new file
6404 2005-01-17 James Youngman <jay@gnu.org>
6406 * ChangeLog: Brought up to date with recent changes.
6408 * NEWS: Documented the changes so far.
6410 * find/testsuite/find.gnu/exec-many-rtn-success.xo:
6411 Expected output for exec-many-rtn-success.exp
6414 Indicate that -quit still ensures that pending commands are invoked
6417 Indicate that -quit still causes partial command lines to be invoked,
6418 but there are some types of fatal error which leave such commands
6421 * find/defs.h, find/find.c, find/pred.c, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
6422 Fixed savannah bug #11625 Wrong return status for -exec ... \; when command fails; also execute any pending commands when doing -quit
6424 * 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:
6425 Various test cases for succeeding and failing forms of -exec \; and -exec {} +
6427 * find/pred.c: "-exec ... {} +" always returns "true".
6429 * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
6430 Implemented d_type optimisation but not working correctly, so currently disabled
6432 * lib/savedirinfo.h, lib/savedirinfo.c:
6433 Initial implementation (temporarily disabled).
6435 * lib/Makefile.am: Resolved merge conflict.
6438 Make sure nextelem.h is included in the list of sources.
6440 * find/parser.c, lib/nextelem.c, lib/nextelem.h, locate/locate.c:
6441 Use prototypes for next_element() to make sure it is called correctly.
6443 2005-01-16 James Youngman <jay@gnu.org>
6445 * find/find.c, find/pred.c:
6446 When completing incomplete multiple execs, use 'eval_tree' not 'predicates'
6449 Oops, initialise state->cmd_initial_argv_chars to zero.
6452 Document the way that -execdir and -okdir will refuse to wqork if ">"
6453 is on $PATH. Also document -okdir in the manpage.
6456 -execdir and -okdir are insecure if $PATH includes the current
6457 directory, and so they refuse to work if the user has done that.
6460 Oops; for -exec ... {} +, pass arguments to bc_push_arg() in the right
6461 order. Problem spotted by Geoff Clare.
6463 * TODO: Removed items which have now been done.
6465 * lib/buildcmd.c: Tidied up formatting of arg list for bc_do_insert
6467 2005-01-15 James Youngman <jay@gnu.org>
6469 * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo:
6470 Added extra tests for more printf formats; patch by Andreas Metzler
6473 Ensure that the new long options have a relevang short option too.
6474 Also bring usage message into line with the options actually
6475 supported. Thanks to Bas van Gompel for noticing this defect.
6478 Escape "-" in SYNOPSIS. Thanks to Bas van Gompel for noticing this
6481 * ChangeLog: Fixed typos.
6484 Documented -execdir, and the "+" variants of -exec and -execdir.
6486 * find/find.1: Documented -execdir.
6489 Updated to bring into line with bc_*() interface changes
6491 * ChangeLog: Updated with recent changes.
6493 * find/defs.h, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h:
6494 Implemented -execdir and -okdir
6496 * find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
6497 First working version of -exec ...+
6499 2005-01-09 James Youngman <jay@gnu.org>
6501 * find/defs.h, find/find.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
6502 Initial implementation of -exec ..{} +, but currently disabled since not yet working
6504 2005-01-08 James Youngman <jay@gnu.org>
6506 * find/find.c: Fixed typo in comment.
6508 * find/defs.h, find/find.c, find/parser.c, find/pred.c:
6509 We now understand but do not implement -execdir (a *BSD invention, and a very useful security enhancement) and -okdir (the obvious companion to it)
6511 * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
6512 The GNU coding standard requires a space between the function name and
6513 its parenthesised argument list.
6516 Understand the -exec ... {} \+ construction (for multiple
6517 replacement). No support yet.
6520 Indicate that empty elements in the dbpath are treated as synonyms for
6521 the default database.
6524 Support empty elements in the dbpath as synonyms for the default
6525 database. These colons can be leading, trailing or in the middle of
6526 the string. We no longer com,plain if the user does this.
6529 If curdir_ok is 0 and an element is empty, return "" instead of NULL
6530 so that the caller knows to keep calling us.
6532 * find/find.c, find/pred.c, import-gnulib.sh, locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
6533 Savannah bug 11517: find, xargs, locate, etc. should not hide write failures; patch from Jim Meyering
6535 * 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:
6536 changed .pot creation date
6538 * THANKS, AUTHORS: Take into account the FSF copyright-assignments list
6541 If -quit is used, the exit value can be nonzero if errors have occurred.
6544 Removed incorrect comment about -H, -P and -follow in HISTORY.
6546 2005-01-07 James Youngman <jay@gnu.org>
6548 * lib/Makefile.am, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
6549 Refactored xargs to use an external library function from the new file buildcmd.c
6551 * configure.in: no longer the same as the released 4.2.11 version
6553 2005-01-06 James Youngman <jay@gnu.org>
6555 * xargs/testsuite/inputs/lines.xi, xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/Makefile.am:
6556 Tests for the -L option
6558 * xargs/testsuite/config/unix.exp: When a test fails, show the diffs
6560 * xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/xargs.posix/l2.xo:
6561 tests for the -l option
6563 * xargs/testsuite/Makefile.am: Added extra test files
6565 * xargs/testsuite/xargs.sysv/trace.exp, xargs/testsuite/xargs.sysv/trace.xe, xargs/testsuite/xargs.sysv/trace.xo:
6566 Added tests for the -t option
6568 * 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:
6569 Use a blanks-only input file for cases where there is supposed to be no output
6571 * xargs/testsuite/inputs/blank.xi: Initial version.
6574 Corrected a typo; also indicate that it's impossible to use xargs
6575 securely due to the race condition.
6577 2005-01-05 James Youngman <jay@gnu.org>
6580 Fixed Savannah bug 11495: fallthrough from -printf format processing
6581 from 'n' case to 'd' case.
6583 2005-01-03 James Youngman <jay@gnu.org>
6586 Oops. Had duplicated an entire section. Fortunately this was after
6587 @bye, so there was no adverse effect.
6591 * doc/find.texi, locate/locate.1: document locate -S
6593 * configure.in, doc/find.texi, locate/locate.1, locate/locate.c:
6594 Support locate -b as a synonym for locate --basename
6596 * 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:
6599 * find/testsuite/config/unix.exp:
6600 Clean up (delete) find.out at at the end of the test.
6602 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c, find/pred.c:
6603 Implemented the -samefile test for find
6605 2005-01-02 James Youngman <jay@gnu.org>
6607 * ChangeLog: Updated with recent changes.
6610 Bas van Gompel: two-line patch to locate.c to make locate's -i and -w
6611 options work if -e is in use.
6613 * THANKS: Added Bas van Gompel.
6616 Bas van Gompel: (visit_exists) when testing for the existence of the
6617 file, check the real filename [printname], not the case-converted
6618 filename [testname]. Really these argument names are badly chosen.
6620 * find/find.1, doc/find.texi:
6621 Improved the documentation for -perm, with plenty of examples,
6622 following a comment by Dan Jacobson that the comment "Symbolic modes
6623 use mode 0 as a point of departure" is baffling and unhelpful.
6626 Suggestion and patch from Bas van Gompel: (new_locate): Fix display of
6627 negative compression ratios.
6629 2004-12-31 James Youngman <jay@gnu.org>
6631 * NEWS: Brought up to date with recent changes
6634 Don't need to nest the "race conditions with..." sections so deeply.
6636 * doc/find.texi: Corrected some spelling errors.
6638 * doc/find.texi: Added new "Security Considerations" chapter.
6640 2004-12-23 James Youngman <jay@gnu.org>
6643 Applied bugfixes from Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>.
6644 (lc_strcpy): Zero-terminate result.
6645 (add_visitor): Update lastinspector.
6646 (visit_substring_match_casefold): fix off-by-one error.
6647 (new_locate): Move visit_exists down to improve performance.
6648 (new_locate): Don't fold case when getting stats.
6650 2004-12-19 James Youngman <jay@gnu.org>
6653 Indicate that "cd /; find tmp -wholename /tmp" will never match anything.
6655 * doc/find.texi: Documented locate --statistics.
6657 * locate/locate.1: Documented the --statistics option.
6659 * locate/locate.c: Added support for the -S option.
6661 2004-12-12 James Youngman <jay@gnu.org>
6663 * NEWS: Added a summary of the changes so far.
6665 * find/tree.c: Made some of the error messages more self-explanatory
6667 * find/pred.c: Print pointers with %p, not %x.
6669 * find/find.c: Moved option data into struct options.
6671 * find/find.1: clarifications
6673 * find/testsuite/find.gnu/comma.exp:
6674 Limit the amount of searching with maxdepth.
6676 * doc/find.texi: clearer description of how -prune works
6678 * ChangeLog: Removed duplicate entry.
6680 * configure.in, find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
6681 Separated ariables representing current state from variable representing option information
6683 2004-12-11 James Youngman <jay@gnu.org>
6685 * find/parser.c: Readability improvement to the usage message.
6687 * find/find.c: Oops. Fixed unmatched #endif.
6689 * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo, THANKS, configure.in, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
6690 Fixed Savannah bug #11280
6693 Remember to set path_length and curdepth in process_top_path().
6695 2004-12-07 James Youngman <jay@gnu.org>
6697 * find/fstype.c: Use xstat() not stat() to examine things.
6699 * find/find.c: Explain why #ifdef EOVERFLOW.
6701 * find/find.c: EOVERFLOW is not defined on UNICOS.
6703 * NEWS: Corrected typo.
6705 2004-12-06 James Youngman <jay@gnu.org>
6707 * ChangeLog: Brought up to date.
6709 * NEWS, configure.in: releasing 4.2.10
6711 * 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:
6714 * ChangeLog: Updated prior to release of finsutils-4.2.10.
6716 * import-gnulib.sh, find/fstype.c:
6717 Use gnulib's mountlist module instead of grokking it ourselves.
6720 Removed all the out-of-date cruft for grokking getmntent().
6723 Added the -I and -L options; also -E takes an argument which is not optional.
6725 2004-12-05 James Youngman <jay@gnu.org>
6727 * README, configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c:
6728 Allow debug output to be turned on or off by saying --enable-debug on the configure command line
6731 Removed disparaging (it is now, it probably wasn't then) comment about
6732 the production-readiness of Automake.
6734 * README: Qualify remarks about POSIX compliance.
6736 * NEWS, configure.in: Preparation for release 4.2.9
6738 * 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:
6741 * ChangeLog: Brought up to date.
6744 Avoid duplicate error message when we cannot chdir() into a subdirectory.
6746 * THANKS: Added recent thankees.
6749 Brought up to date with respect to the current set of fixed bugs.
6751 * NEWS, xargs/xargs.1, xargs/xargs.c:
6752 Implemented POSIX options -L, -I and -E
6754 2004-12-03 James Youngman <jay@gnu.org>
6757 -xdev is an option, not a test. Fixes Savannah bug 11192.
6759 * find/find.1, xargs/xargs.1:
6760 Escape dashes with a backslash (for fix Savannah bug 11189).
6762 2004-11-27 James Youngman <jay@gnu.org>
6765 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.
6767 * find/find.1: "necessary" only has one "C".
6770 If stat() fails with ELOOP, we issue a diagnostic message.
6772 2004-11-26 James Youngman <jay@gnu.org>
6774 * find/find.c: Removed some unused code.
6776 * Makefile.am: Don't do anything in the 'intl' subdirectory
6779 Enhanced safely_chdir() to the point where the test suite passes, and report infinite loops in the directory hierarchy
6782 belt and braces; ensure that SYMLINK_NEVER_DEREF has value zero
6785 Describe our strategy for detecting and reporting infinite loops
6787 2004-11-24 James Youngman <jay@gnu.org>
6790 Updated the discussion of th error messages for findutils-4.2.8.
6792 * configure.in: Next version will be 4.2.9...
6795 Don't issue a warning if we notice the mounting of a filesystem that's
6796 likely just to be an automounter.
6798 * doc/find.texi, find/find.1:
6799 Explain how rounding is performed for -atime and friends.
6802 Once we collect enough arguments (for the value specified by the -n
6803 option) to do an exec(), do it immediaely instead of waiting for the
6804 next one to arrive. This fixes Savannah bug #7340.
6806 * ChangeLog, configure.in, NEWS: Prepare to release 4.2.8.
6808 * NEWS: Updates for 4.2.8.
6810 * configure.in: check for sys/types.h
6813 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.
6816 Declarations of xmalloc() and friends belong in xalloc.h, not in defs.h
6818 * find/parser.c: avoid signed/unsigned warning, and #include xalloc.h
6821 Changed to alloc get_mounted_devices() to compile on Solaris
6824 Automake requires GNU m4, so point out that the reader needs that.
6826 * find/defs.h, find/find.c, find/fstype.c:
6827 When wd_sanity_check() fails, enumerate the mounted devices, rather than the mounted filesystem names
6829 * NEWS: prepare for 4.2.8
6832 Look for some Solaris headers which are used by get_mounted_devices()
6834 * lib/Makefile.am: don't build savedirtypes yet
6836 * 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:
6840 Avoid suprious output of the test data when the tests fail.
6842 2004-11-21 James Youngman <jay@gnu.org>
6844 * 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:
6845 Messages changed again
6847 * ChangeLog, configure.in: Preparing to release 4.2.7.
6849 * NEWS: Updated for release of 4.2.7.
6851 * import-gnulib.sh: Also need canonicalize module.
6854 When checking to see if a filesystem has changed state, use an
6858 No need to pause to allow James to view his handiwork, it (allegedly)
6862 Oops. Check for setlocale() to re-enable the i18n support which was
6863 accidentally disabled in 4.2.5.
6866 Check to see if the new directory is a transitioned mount point by
6867 using its ABSOLUTE name, if we can figure it out.
6870 Added guidance on some of the error messages. Not the most common
6871 ones, but the ones where the user might most benefit from some handy
6872 hints or an explanation of what is going on.
6875 Actually emit an error message if we fail to stat a symlink (for
6876 reasons other than nonexistence of the link and infinite loop).
6878 * doc/texinfo.tex: Updated texinfo.tex
6880 * NEWS, configure.in, find/find.c, find/fstype.c:
6881 Enable the 'Warning: filesystem XXX has recently been mounted' check on Solaris, which prevents it exiting fatally when traversing an automount mount point
6883 * 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:
6884 messages changed again
6886 * NEWS: Implemented xargs --arg-file.
6888 * doc/find.texi, xargs/xargs.1, xargs/xargs.c, NEWS:
6889 Implemented xargs --arg-file
6892 Where a filesystem was recently (un)mounted, try togive its full name
6895 Try to avoid requesting -lsun if we don't seem to need it (e.g. on
6896 UNICOS where it is not present and trying to link against it produces
6899 * find/defs.h, lib/modetype.h: Guard against multiple inclusion
6902 We now need <mntent.h> even if we are not using getmntent() to figure
6903 out the type of a filesystem, because wd_sanity_check() needs to
6904 enumerate the system mount points.
6906 * configure.in: Next release will be 4.2.7.
6909 get_mounted_filesystems() should use getmntent() if that function is
6910 present, rather than just if configure didn't find anything better for
6911 filesystem_type_uncached() to use than that.
6914 If -delete is the only action on a file, don't assume the default
6917 * 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:
6918 Preparation to release findutils-4.2.6.
6920 * find/Makefile.am, xargs/Makefile.am:
6921 Enable checking of support for --version and --help
6923 * locate/Makefile.am:
6924 Con't check command-line options for frcode, code or bigram
6926 * locate/code.c: Support --version and --help.
6928 * ChangeLog: *** empty log message ***
6930 * find/defs.h, find/find.c, find/fstype.c, lib/Makefile.am, lib/extendbuf.c, lib/extendbuf.h, NEWS:
6931 Avoid fatal error if automount mounts a filesystem on a directory because we chdir()ed into it
6933 * configure.in: Next release will be 4.2.6.
6936 Indicate that the '-' flag does work for most fields. Also provide
6937 an example of using the comma operator to traverse the filesystem just
6938 once but search for more than one thing.
6940 * doc/find.texi: Indicate that the '-' flag does work for most fields.
6942 2004-11-19 James Youngman <jay@gnu.org>
6944 * configure.in: releaseing findutils-4.2.5
6946 * find/testsuite/Makefile.am, locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
6947 If a directory has no Makefile.am, omit it from the parent's DIST_SUBDIRS - automake-1.9 requires this
6949 * 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:
6950 updated by make distcheck
6952 * ChangeLog, NEWS: Updated for release 4.2.5.
6954 * find/find.1, doc/find.texi:
6955 Tell the reader that format flags may not work as they expect.
6958 Use the correct name for the macro gl_AC_TYPE_LONG_LONG (not
6959 jm_AC_TYPE_LONG_LONG).
6961 2004-11-15 James Youngman <jay@gnu.org>
6964 Avoid test -e because not all systems are POSIX-compliant (bug
6965 #11005). Also don't need regex module any more if we're not building
6968 * Makefile.am, configure.in:
6969 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
6972 Use @ref not @xref for a reference at the beginning of a sentence.
6975 Make sure gnulib.lib is on the #include path (Savannah bug #11002)
6978 Use base_name instead of basename - fixes Savannah bug 11003.
6980 * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, locate/bigram.c, locate/locate.c:
6981 Don't need banner to emphasise the location of the call to jy_SORTZ
6983 2004-11-12 James Youngman <jay@gnu.org>
6985 * 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:
6986 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]
6988 2004-11-11 James Youngman <jay@gnu.org>
6990 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c:
6991 Implemented -H and -L options.
6993 * find/util.c: Added in the -H and -L options on the usage message.
6995 2004-11-10 James Youngman <jay@gnu.org>
6997 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
6998 Implemented %M and %A+ format specifiers
7000 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
7001 Documented the fact that only %d and %m format specifiers honour the various formatting flags
7004 Get the right number of bytes in a Kilobyte (hint: it's not 1048; that
7005 was a typo, honest :)
7007 * po/pl.po: Applied Polish translations
7009 2004-11-08 James Youngman <jay@gnu.org>
7011 * 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:
7012 distcheck changed the po files again
7014 * locate/Makefile.am:
7015 Make install-data-hook honour the setting of DESTDIR so that "make
7016 DESTDIR=/tmp/foo install" works and puts localstater in the right
7019 * configure.in: We're now working on findutils-4.2.5.
7021 * doc/find.texi, xargs/xargs.1:
7022 Point out that xargs -i only splits input items at newlines
7024 * ChangeLog: Indicate that we released 4.2.4.
7026 * ChangeLog: Updated for release 4.2.4
7028 * NEWS, configure.in: Prepare for release of 4.2.4.
7030 * NEWS: Brought up to date with latest changes.
7032 * 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:
7033 Turn warning messages off by default if stdin is not a tty; allow these to be controlled explicitly by options -warn and -nowarn
7035 * po/et.po, po/it.po: Updated translation files
7037 * po/sk.po: New translation file
7039 * po/fr.po, po/nl.po, po/tr.po: Updated translation files
7041 * configure.in: Added Slovak (sk) language.
7044 Enforcing a lower limit on the value specified by -s makes the test
7045 suite fail. Removed that lower limit.
7047 * locate/Makefile.am: Oops, multilocate doesn't exist yet.
7049 * NEWS: *** empty log message ***
7051 * doc/find.texi, locate/updatedb.1, locate/updatedb.sh:
7052 Added option --findoptions to updatedb
7054 * locate/Makefile.am, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
7055 Fixed section numbers in manpage titles and cross-references
7057 * NEWS, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
7058 Increased the default argument length and improved POSIX compliance of the handling of out-of-range values for the -s option
7060 2004-11-07 James Youngman <jay@gnu.org>
7063 Added in the extra files we need to distribute, nullsort.m4
7064 order-bad.bin order-good.bin
7066 * doc/find.texi: Documented locate's --limit option
7068 * locate/locate.1, locate/locate.c:
7069 Implmented --limit and corrected the implementation of the -i option.
7071 2004-11-06 James Youngman <jay@gnu.org>
7073 * NEWS, doc/find.texi, locate/locate.1:
7074 Documented --wholename and --basename and updated the NEWS file
7077 Give the autogen commands in a form that you can usefully cut and paste into a shell
7079 * NEWS: Options --null and --count) for locate
7082 Don't return '.' for an empty path element, because the path we are splitting may not be intended to contain directories
7084 * configure.in: we're working on findutils-4.2.4 now
7086 * locate/Makefile.am: Substitute @SORT_SUPPORTS_Z@
7089 Documented new locate option --null and newline handling
7091 * locate/locate.1, locate/locate.c:
7092 New locate options --null, --wholename, --basename, --count
7094 * locate/frcode.c, locate/updatedb.1, locate/updatedb.sh:
7095 correctly handle newlines in the file names
7097 * configure.in: Determine if sort -z works
7099 * m4/nullsort.m4, m4/order-bad.bin, m4/order-good.bin:
7100 jy_SORTZ: a macro to determine if the system has a sort command with a working -z option
7102 2004-11-01 James Youngman <jay@gnu.org>
7104 * NEWS: Fixed "find -printf '%H\n'".
7107 Avoid segfault if -printf %H is used where the matched file was the default, unspecified starting point, the current directory
7109 2004-10-31 James Youngman <jay@gnu.org>
7111 * find/find.1, find/parser.c: NetBSD also supports -d.
7113 * find/find.1, doc/find.texi:
7114 Documented the behaviour of -daystart and -follow in more detail
7116 * find/parser.c: Corrected the usage message.
7119 When deciding whether to issue a warning about options following
7120 non-options, ignore any options whose position affects the tests
7121 (i.e. -daystart and -follow).
7123 * find/parser.c: -daystart is a positional option like -follow.
7126 Issue a warning message if an option is specified after a test or an
7127 action (because the user might have believed that the behaviour of the
7128 option is in some way conditional on the preceding tests).
7130 * locate/updatedb.sh:
7131 Oops; removed some test code that I shouldn't have checked in.
7133 * locate/updatedb.sh:
7134 Indicate that the old locate database format will shortly be unsupported.
7137 Use @direntry instead of hard-coding START-INFO-DIR-ENTRY inside @ifinfo.
7139 * locate/updatedb.1: Updated default location of locatedb file.
7142 Updated to give correct FTP location and to not talk about "test"
7143 versions of automake, which are no longer required.
7145 * locate/updatedb.sh:
7146 Incorporated the default list of filesystems to avoid from the Debian
7147 package. Also added /afs and /sfs to the default pruned paths.
7149 * configure.in: Released findutils 4.2.3
7151 * 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:
7152 did make distcheck, which updates these files
7154 * find/defs.h, find/fstype.c:
7155 Use const qualifier in arguments to filesystem_type() to allow callers with const variables to use them
7157 * ChangeLog: Updated.
7159 * NEWS: Added new news.
7162 Extra diagnositcs for the case where we have the error "%s changed
7163 during execution of %s" - that is when we chdir back to the parent
7164 directory only to find that it has changed.
7166 2004-10-30 James Youngman <jay@gnu.org>
7168 * .cvsignore, NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
7169 Implemented the -quit action
7171 * NEWS, doc/find.texi, find/find.1, find/parser.c, find/pred.c:
7172 Refactored time handling routines in preparation for support of absolute timestamp comparison predicates
7175 Applied Savannah patch #2952 ("getline off-by-one bugfix").
7177 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
7178 Added -delete action (Savannah patch #3454 with additions)
7181 Applied Savannah patch #2692 (allowing get_short to process negative integers).
7184 If we are iossuing an error message because $FIND_BLOCK_SIZE is set,
7185 ignore the setting of errno.
7187 * find/parser.c: More fixes for pedantic compiler warnings
7189 * NEWS, find/parser.c, find/tree.c: Eliminated some compiler warnings
7191 * find/find.c, find/parser.c, find/pred.c:
7192 Various fixes for compiler warninga sbout unreachable code or unused function arguments
7194 * intl/plural.y: Silence compiler warning about unused argument.
7196 * locate/testsuite/Makefile.am:
7197 Subdirectory "inputs" does not exist, so remove it from DIST_SUBDIRS.
7200 Corrected the explanation of why we have to use no parentheses around
7201 the String argument to the N_ macro in its expansion.
7203 * configure.in: Nextr release is 4.2.3.
7205 * configure.in: IOndicate this is no longer the pristine release.
7208 Oops, comments for release 4.2.0 should have said 20480 bytes, not 2480.
7211 The -ls predicate should not truncate usernames. Fixes Savannah bug #10800.
7213 * find/fstype.c, locate/locate.c:
7214 Fixes for Savannah bug #3727 (Intel icc compilation errors).
7216 2004-10-25 James Youngman <jay@gnu.org>
7218 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
7219 Support -printf %D, which prints the device number of the containing filesystem
7221 * locate/updatedb.sh:
7222 Avoid confusion between James Woods and James Youngman, by using the
7223 disambiguating surname.
7225 * find/parser.c: Use RE_ICASE instead of re->translate.
7227 * configure.in, find/parser.c, find/pred.c, xargs/xargs.c:
7228 No need to #define _GNU_SOURCE if we use gl_INIT.
7230 2004-10-24 James Youngman <jay@gnu.org>
7232 * ChangeLog: Prepared to release findutils-4.2.2.
7234 * 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:
7235 Updates prior to release of 4.2.2
7237 * NEWS: Updated with news for findutils-4.2.2.
7239 * 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:
7240 Corrected typo in the address of the FSF office
7242 * lib/strspn.c: Updated FSF address.
7244 * m4/.cvsignore: 'cvs status' should ignore Makefile.in
7246 * 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:
7247 Use gnulib-tool --import to import the gnulib code, rather than the odd way we were doing it before
7249 * 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:
7250 Work round an apparent compiler bug in HP-UX 11.23 for
7254 Work around what appears to be a C compiler bug in HP-UX 11.23 for
7257 * INSTALL, depcomp, install-sh, missing, mkinstalldirs:
7258 Updated from automake
7260 * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c, find/find.c:
7261 Avoid use of exit() within main, to silence warnings about unreachable code
7263 2004-10-22 James Youngman <jay@gnu.org>
7265 * doc/find.texi: Syntax corrections.
7267 * doc/find.texi: Indicate that "-exec {}+" is not yet supported.
7269 * find/find.1: Indicate that "{}+" is not yet supported.
7271 * find/testsuite/find.gnu/name-period.xo, find/testsuite/find.gnu/name-period.exp, find/find.1, doc/find.texi:
7272 The -name predicate must allow '*' to match '.foo' as demanded by IEEE
7273 Std 1003.2-1992 Interpretation #126.
7276 Remove use of FNM_PERIOD for -name as demanded by IEEE Std 1003.2-1992
7279 * find/parser.c: Fix for compilation (on AIX 4.3) with GCC 2.x.
7282 Changed the erorr message issued when there is an unmatched quote to
7283 point out that the user might have wanted to use the -0 option instead.
7285 2004-10-17 James Youngman <jay@gnu.org>
7288 Define intmax_t if it is not already defined - allows parser.c to compile on AIX 4.3
7291 Adjust version number to indicate that this s/w has moved on since the
7294 * configure.in: preparing to release 4.2.1
7296 * ChangeLog: updated with current changes
7298 * README-CVS: Updated to go with newer version of gnulib.
7300 * 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:
7301 preparation for release
7303 * NEWS: Mention the changes to "trap".
7305 * NEWS: Brought up to date.
7308 Use xalloc-die module from gnulib, since that has now been split out
7311 Check fnmatch() when other predicates that rely on fnmatch() are used.
7313 * find/parser.c: bug #10701: find needs fnmatch sanitycheck on startup
7315 2004-10-16 James Youngman <jay@gnu.org>
7318 Switch to requirement for GNU fnmatch because it supports FNM_CASEFOLD.
7320 * locate/updatedb.sh:
7321 Bug #9465: use of signal numbers for 'trap' is deprecated. Should use
7323 http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html,
7324 which indicates that support for signal numbers is optional, while
7325 support for signal names is mandatory.
7328 Indicate that this is the CVS version (once again) now that findutils
7329 4.2.0 has been released.
7331 * 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:
7332 findutils 4.1.20 check-in for tagging
7334 2004-10-02 James Youngman <jay@gnu.org>
7336 * po/Makefile.in.in:
7337 Search in $(top_srcdir) for mkinstalldirs, since that's where we keep it.
7339 * NEWS: Brought up to date, organised more clearly, and tidied up.
7341 * NEWS: brought up to date with recent changes
7343 * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/ignore_case1.exp, locate/testsuite/locate.gnu/ignore_case3.exp, locate/updatedb.sh:
7344 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
7347 Fixed usage of human_readable() in '%k' format specifier to fix a bug
7348 reported by Dmitry V. Levin (arguments to human_readable() were
7349 specified in the wrong order, which resulted in a floating-point
7352 2004-08-08 James Youngman <jay@gnu.org>
7354 * locate/updatedb.sh:
7355 cd to / to avoid inability to examine the current directory if we're
7356 invoked via cron (and hence in root's home directory for example).
7358 * doc/find.texi, find/find.1:
7359 Deprecate -path and -ipath in favour of -wholename and -iwholename
7362 As per RMS's suggestion, deprecate -path and -ipath in favour of
7363 -wholename and -iwholename.
7366 Fixed Savannah bug #9923, in which get_short() returns large positive
7367 ints when it should be returning negative shorts.
7370 Applied documentation improvements suggested by Dan Jacobson
7371 <jidanni@jidanni.org>.
7374 Don't check size_of_environment against arg_max since that causes the
7377 * xargs/xargs.1, xargs/xargs.c: Better documentation for the -i option
7379 2004-05-03 James Youngman <jay@gnu.org>
7382 document the various suffixes for -size and also the new
7383 option -ignore_readdir_race
7386 Fixes Savannah bug #8623 (failure to check consistency of data
7387 read from locate database)
7389 * locate/updatedb.sh:
7390 Resolves Savannah bug 4380, that updatedb generates an empty
7391 database if one of the commands fails
7393 * NEWS: Talk about -ignore_readdir_race
7396 Documented -ignore_readdir_race and -noignore_readdir_race
7399 -ignore_readdir_race should have no effect if the reason for the
7400 failure of stat(2) was anything other than ENOENT.
7402 * find/defs.h, find/find.c, find/parser.c:
7403 Fixed Savannah bug 4391 (readdir race condition leading to
7404 spurious error messages)
7406 2004-04-24 James Youngman <jay@gnu.org>
7408 * README-CVS: Corrected the instructions for getting gnulib via CVS.
7410 2004-04-13 James Youngman <jay@gnu.org>
7413 Actioned Savannah bug #8558 (find complains when it tries to recurse
7414 into directories that it had removed).
7416 2004-03-13 James Youngman <jay@gnu.org>
7418 * ChangeLog: Updated from checkin comments.
7421 Oops, there is no access to the predicate name table if DEBUG is
7425 Detect arithmetic overflow (poorly) in insert_time(), which diagnoses
7426 the failure to handle large arguments to -mtime. The existing code
7427 does careful computation and then bungs the value into a time_t, which
7428 ruins all our careful effort. The new code is not a great
7429 improvement. We just check the result to detect overflow, rather than
7430 actually avoiding the overflow.
7433 Fixed Debian bug #185202 by checking for any trailing predicates after
7434 the top-level invocation of get_expr() has done its work.
7436 * locate/locate.1, xargs/xargs.1:
7437 Fixed Debian bug 175372, inappropriate 'L' suffixes on manual
7438 page section indicators
7441 Removed "L" suffixes from manual page section indicators, to fix
7444 * debian/updatedb.conf:
7445 Updated with list of filesystems from current Debian release. This
7446 includes devfs, for example.
7449 Modified documentation of "-s" option to take into account the fix for
7453 Fixed Debian bug #176201, "xargs enviroment size limited to 20k", by
7454 reading a patch offered by Bob Proulx and implementing something
7455 substantially similar myself.
7457 2004-01-03 James Youngman <jay@gnu.org>
7460 Indicate that prep_child_for_exec() fixes Savannah bug #3992.
7463 Attach the stdin of xargs' child process to /dev/null so that if it
7464 tries to read from its stdin it doesn't consume any of the list of
7465 files that xargs is trying to use.
7468 Documented that the -regex option follows Gnulib's re_match()
7471 * NEWS, locate/locate.c: Applied Savannah patch 2108
7473 * xargs/xargs.c: Applied Savannah patch 1500
7475 * find/find.1, doc/find.texi:
7476 Improved the documentation for the %k and %b format specifiers to
7477 -printf (Savannah bug #5034). Also pointed out that this handling is
7478 different to that used by the "b" and "k" suffixes with "-size".
7480 * find/find.1: Improved the documentation for %k (Savannah bug #5034).
7483 Improved the documentation for -print0 in the manpage, fixing Debian
7486 * README-CVS, find/pred.c, lib/listfile.c:
7487 Brought up-to-date with change in gnulib's human.c - we no longer
7488 use human_readable_inexact(), because it is no longer provided.
7490 2003-08-08 James Youngman <jay@gnu.org>
7493 Documented the fact that -printf also supports the '\0' escape code.
7494 Added "STANDARDS CONFORMANCE" section.
7496 2003-08-02 James Youngman <jay@gnu.org>
7499 Explain that braces are not special when performing filename matching
7503 added example of the use of -exec to the EXAMPLES section
7505 * find/fstype.c, locate/locate.c:
7506 Savannah bug #4295 - implicit declarations of ctype.h functions
7509 Savannah bug #4279 - missing newline on locate help message
7511 * find/find.1, xargs/xargs.1:
7512 Improved discussion of the -print0 option of find and the -0 option of xargs
7514 2003-06-26 James Youngman <jay@gnu.org>
7517 Remove reference to nonexistent module "basename" ("dirname" exists
7518 and we already use that).
7520 2003-06-21 James Youngman <jay@gnu.org>
7523 Indicate that xargs stops immediately if a command exits with status 255
7526 Document the fact that xargs exits immediately with an error message
7527 if the command it executes exits with a status of 255.
7529 2003-06-18 James Youngman <jay@gnu.org>
7532 Indicate that -fls and friends always create their output file
7534 2003-06-16 James Youngman <jay@gnu.org>
7536 * ChangeLog, find/find.1, locate/locate.1, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
7537 Added BUGS section to manual pages. This section includes information about known bugs and how to report new bugs.
7539 * AUTHORS: Identify the current maintainer.
7541 * TODO: Removed the TODO items which have now been done.
7543 * THANKS: Added Bruno Haible and Bob Proulx.
7545 * xargs/xargs.c: xargs/xargs.c (DO_MULTIBYTE): New macro.
7546 (mbstrstr): New function.
7547 (do_insert): Use it instead of strstr.
7549 * config.guess, config.sub:
7550 Use config.guess and config.sub from automake
7553 Bruno Haible: (fstype_to_string) Don't define this function if
7554 HAVE_F_FSTYPENAME_IN_STATFS is defined.
7557 Bruno Haible: Prefer the 4.4BSD API (if present) to the 4.3BSD API,
7558 because some 4.4BSD systems have <mntent.h> but no /etc/mtab file.
7560 * doc/find.texi, find/find.1:
7561 Applied patch 1498 (documenting the backslash escape sequence)
7563 * locate/updatedb.sh: Applied (my own version of) Savannah patch 1601.
7566 Applied Savannah patch #1547 (document the fact that printf
7567 field-width specifiers are supported).
7570 Applied Savannah patch #1499 (adds final newline to usage message).
7572 2003-06-14 James Youngman <jay@gnu.org>
7574 * NEWS, configure.in:
7575 Updated version number to 4.2.0-CVS [not ready for release yet]
7577 * 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
7578 also need stpcpy (e.g. for Solaris)
7580 * intl/dcigettext.c:
7581 plural_lookup: don't use a variable called "index", because we may
7582 have done "#define strchr index", in which case using a variable
7583 called index will prevent us calling strchr(p, ch) in the same scope.
7585 * 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:
7586 Updated copyright years and the address of the FSF
7588 * aclocal.m4, config.h.in, configure:
7589 Removed files that are generated from other files (e.g. configure)
7591 * NEWS: Updated NEWS file for 4.1.20.
7593 * 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:
7594 Updates to the i18n files to ensure that 'make dist' succeeds
7596 * lib/posix/.cvsignore, lib/posix/Makefile.am,
7597 lib/posix/Makefile.in, lib/posix/regex.h, lib/strftime.c,
7598 lib/strncasecmp.c, lib/strspn.c, lib/strstr.c, lib/strtol.c,
7599 lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, lib/wait.h,
7600 lib/waitpid.c, lib/xalloc.h, lib/xgetcwd.c, lib/xmalloc.c,
7601 lib/xstat.in, lib/xstrdup.c, lib/xstrtol.c, lib/xstrtol.h,
7602 lib/xstrtoul.c, lib/xstrtoul.h, lib/xstrtoumax.c, lib/yesno.c,
7603 locate/Makefile.am, locate/Makefile.in, locate/locate.c,
7604 locate/testsuite/Makefile.in, m4/.cvsignore, m4/ChangeLog,
7605 m4/Makefile.am, m4/Makefile.am.in, m4/Makefile.in, m4/README,
7606 m4/afs.m4, m4/assert.m4, m4/c-bs-a.m4, m4/check-decl.m4,
7607 m4/codeset.m4, m4/d-ino.m4, m4/d-type.m4, m4/error.m4,
7608 m4/fnmatch.m4, m4/fnmatchcase.m4, m4/fstypename.m4, m4/getline.m4,
7609 m4/gettext.m4, m4/glibc.m4, m4/glibc21.m4, m4/iconv.m4,
7610 m4/inttypes_h.m4, m4/isc-posix.m4, m4/jm-glibc-io.m4,
7611 m4/jm-macros.m4, m4/jm-mktime.m4, m4/lcmessage.m4, m4/libintl.m4,
7612 m4/link-follow.m4, m4/ls-mntd-fs.m4, m4/lstat-slash.m4,
7613 m4/lstat.m4, m4/malloc.m4, m4/mbstate_t.m4, m4/memcmp.m4,
7614 m4/prereq.m4, m4/progtest.m4, m4/readdir.m4, m4/realloc.m4,
7615 m4/regex.m4, m4/st_dm_mode.m4, m4/st_mtim.m4, m4/stat.m4,
7616 m4/strerror_r.m4, m4/strftime.m4, m4/timespec.m4, m4/uintmax_t.m4,
7617 m4/ulonglong.m4, m4/xstrtoumax.m4, xargs/Makefile.am,
7618 xargs/Makefile.in, xargs/testsuite/Makefile.in,
7619 find/testsuite/Makefile.in, lib/.cvsignore, lib/Makefile.am,
7620 lib/Makefile.in, lib/alloca.c, lib/ansi2knr.1, lib/ansi2knr.c,
7621 lib/argmatch.c, lib/argmatch.h, lib/basename.c, lib/basename.h,
7622 lib/dirname.c, lib/dirname.h, lib/error.c, lib/error.h,
7623 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/fnmatch.c,
7624 lib/fnmatch.h, lib/getline.c, lib/getline.h, lib/getopt.c,
7625 lib/getopt.h, lib/getopt1.c, lib/human.c, lib/human.h,
7626 lib/idcache.c, lib/malloc.c, lib/memcmp.c, lib/memcpy.c,
7627 lib/memset.c, lib/mktime.c, lib/modechange.c, lib/modechange.h,
7628 lib/pathmax.h, lib/quotearg.c, lib/quotearg.h, lib/realloc.c,
7629 lib/regex.c, lib/regex.h, lib/rpmatch.c, lib/savedir.c,
7630 lib/savedir.h, lib/stpcpy.c, lib/strcasecmp.c, lib/strdup.c,
7631 find/Makefile.am, find/Makefile.in, find/find.c, find/pred.c:
7632 Updated to work with current version of gnulib
7634 * import-gnulib.sh: New file.
7636 * config.h.in, configure, configure.in, doc/Makefile.in, import-gnulib.sh:
7637 Updated to work with current version of gnulib
7639 * README-CVS: New file.
7641 * Makefile.am, Makefile.in, README-CVS, aclocal.m4:
7642 Updated to work with current version of gnulib
7644 2003-05-26 James Youngman <jay@gnu.org>
7646 * po/pl.po, pt_BR.po, ru.po, sv.po, tr.po, da.po, de.po, es.po,
7647 et.po, findutils.pot, fr.po, gl.po, id.po, it.po, ko.po, nl.po:
7648 Changes to allow compilation on non-GNU systems (i.e. for the
7649 macros that gnulib decides to #define to be effective)
7651 2003-05-24 James Youngman <jay@gnu.org>
7653 * po/da.po, de.po, es.po, et.po, findutils.pot, fr.po, gl.po,
7654 id.po, it.po, ko.po, nl.po, pl.po, pt_BR.po, ru.po, sv.po, tr.po:
7655 also need stpcpy (e.g. for Solaris)
7657 * po/POTFILES.in, da.po, de.po, es.po, et.po, findutils.pot, fr.po,
7658 gl.po, id.po, it.po, ko.po, nl.po, pl.po, pt_BR.po, ru.po, sv.po,
7659 tr.po: Updates to the i18n files to ensure that 'make dist'
7662 2001-06-09 Kevin Dalley <kevin@seti.org>
7665 Changes the location of bison.simple after running bison on local
7668 * ChangeLog: *** empty log message ***
7670 * Makefile.in, aclocal.m4, config.h.in, configure,
7671 doc/Makefile.in, find/Makefile.in, find/testsuite/Makefile.in,
7672 lib/Makefile.in, lib/posix/Makefile.in, locate/Makefile.in,
7673 locate/testsuite/Makefile.in, m4/Makefile.in, xargs/Makefile.in,
7674 xargs/testsuite/Makefile.in: Updates mostly from gettext-0.10.38
7676 * ABOUT-NLS: * ABOUT-NLS: updated from gettext-0.10.38.
7678 * configure.in: * configure.in: add tr to ALL_LINGUAS.
7680 * intl/config.charset, intl/dcigettext.c, intl/dcngettext.c,
7681 intl/dngettext.c, intl/libgnuintl.h, intl/localcharset.c,
7682 intl/locale.alias, intl/ngettext.c, intl/plural.y,
7683 intl/ref-add.sin, intl/ref-del.sin: updated from gettext-0.10.38
7685 * intl/cat-compat.c, intl/linux-msg.sed, intl/po2tbl.sed.in,
7686 intl/xopen-msg.sed, m4/ChangeLog: *** empty log message ***
7689 * jm-macros.m4 (jm_MACROS): remove jm_ICONV, which is replaced by
7690 AM_ICONV, which is imported from gettext-0.10.38. removed
7691 jm_GLIBC21, which is required in AM_GNU_GETTEXT, which is
7692 imported from gettext-0.10.38.
7694 * po/stamp-cat-id: * stamp-cat-id: Remove file.
7696 * po/Makefile.in.in: * Makefile.in.in: Upgrade to gettext-0.10.38.
7698 * po/ChangeLog: * cat-id-tbl.c: Remove file.
7700 * po/de.po, po/es.po, po/et.po, po/fr.po:
7701 * fr.po, et.po, es.po, de.po: updated translations to
7704 * po/tr.po: * tr.po: New Turkish translation.
7706 * m4/ChangeLog: *** empty log message ***
7708 * intl/dgettext.c, intl/explodename.c, intl/finddomain.c,
7709 intl/gettext.c, intl/gettext.h, intl/gettextP.h,
7710 intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
7711 intl/libgettext.h, intl/loadinfo.h, intl/loadmsgcat.c,
7712 intl/localealias.c, intl/plural.c, intl/textdomain.c,
7713 intl/ChangeLog, intl/Makefile.in, intl/VERSION,
7714 intl/bindtextdom.c, intl/dcgettext.c: Updated from gettext-0.10.38
7717 reflects addition of codeset.m4 from gettext-0.10.38, automatically
7720 * m4/codeset.m4, m4/gettext.m4, m4/glibc21.m4, m4/iconv.m4,
7721 m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4: *
7722 progtest.m4, lcmessage.m4, isc-posix.m4, iconv.m4,
7723 glibc21.m4, gettext.m4, codeset.m4: updated from
7726 * ChangeLog: *** empty log message ***
7728 * THANKS: added "Gerrit P. Haase" <gerrit.haase@t-online.de>
7730 * m4/ChangeLog, locate/testsuite/.cvsignore,
7731 xargs/testsuite/.cvsignore, config.h.in, configure, aclocal.m4,
7732 doc/.cvsignore: *** empty log message ***
7734 * m4/jm-macros.m4: * jm-macros.m4 (jm_MACROS): add jm_FSTYPENAME
7736 * doc/Makefile.in: *** empty log message ***
7739 * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
7740 created by dvips. This should be taken care of by automake, but
7741 the code is commented out.
7743 2001-06-09 Kevin Dalley <kevin@seti.org>
7745 * ABOUT-NLS: updated from gettext-0.10.38.
7747 * configure.in: add tr to ALL_LINGUAS.
7749 * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
7750 created by dvips. This should be taken care of by automake, but
7751 the code is commented out.
7753 * po/stamp-cat-id: * stamp-cat-id: Remove file.
7755 * po/Makefile.in.in: * Makefile.in.in: Upgrade to gettext-0.10.38.
7757 * po/ChangeLog: * cat-id-tbl.c: Remove file.
7759 * po/de.po, es.po, et.po, fr.po:
7760 * po/fr.po, et.po, es.po, de.po: updated translations to
7763 * po/tr.po: * tr.po: New Turkish translation.
7765 2001-06-05 Kevin Dalley <kevin@seti.org>
7767 * locate/updatedb.sh: replace "whoami" with "id -u" when testing
7770 2001-06-04 Kevin Dalley <kevin@seti.org>
7772 * locate/testsuite/Makefile.am (DIST_SUBDIRS): remove second
7773 instance of DIST_SUBDIRS.
7775 * locate/Makefile.am (install-data-hook): changed install target
7776 to install-data-hook, which still installs other files.
7778 * doc/Makefile.am (MOSTLYCLEANFILES): added find.cps, which should
7779 probably be handled by automake.
7781 * doc/mdate-sh: removed file in doc directory. It now exists only
7782 in top_srcdir, but this changed required a patch to automake.
7784 2001-06-01 gettextize <bug-gnu-utils@gnu.org>
7786 * Makefile.in.in: Upgrade to gettext-0.10.38.
7787 * cat-id-tbl.c: Remove file.
7788 * stamp-cat-id: Remove file.
7790 2001-05-20 Kevin Dalley <kevin@seti.org>
7794 * lib/Makefile.am (EXTRA_DIST): add strcasecmp.c
7796 * find/testsuite/Makefile.am (EXTRA_DIST): new tests:
7797 find.gnu/name-opt.exp find.gnu/perm.exp find.gnu/perm.xo
7798 find.gnu/prune-default-print.exp find.gnu/prune-default-print.xo
7800 * configure.in: update to 4.1.7
7802 * config.sub, config.guess: upgraded to recent versions of
7803 config.sub and config.guess.
7805 * locate/updatedb.sh: Add space to "#! /bin/sh"
7807 * configure.in: Add id to ALL_LINGUAS
7809 * lib/Makefile.am (EXTRA_DIST): getline.[ch] added
7810 (libfind_a_SOURCES): getline.[ch] removed since getline.c is not
7813 * po/da.po, de.po, es.po, et.po, fr.po, gl.po, id.po, it.po, ko.po,
7814 nl.po, pl.po, pt_BR.po, ru.po, sv.po: updated to reflect changes
7817 * po/id.po: New translation for Indonesia.
7819 2001-05-20 Lionel CONS <lionel.cons@cern.ch>
7821 * find/find.c: Fixed security holes. 1. There is a race
7822 condition between the lstat() to detect a symbolic link and the
7823 actual chdir(). 2. An attacker can move directories while find
7824 is _inside_ so that chdir(..) goes out of the intended file tree.
7826 * lib/modetype.h: support for Solaris door files is added.
7828 * lib/filemode.c: S_ISDOOR is undef'ed if STAT_MACROS_BROKEN
7830 * find/pred.c (pred_type): -D option (for Solaris door files) is
7833 * find/parser.c (insert_type): -D option (for Solaris door files)
7836 * find/find.1: -D option (for Solaris door files) is documented
7838 * doc/find.texi (Type): -D option (for Solaris door files) is
7841 2001-05-02 Kevin Dalley <kevin@seti.org>
7843 * configure.in: Change AC_CHECK_MEMBERS to conform to new
7844 autoconf. Add Danish.
7846 2001-04-28 Kevin Dalley <kevind@rahul.net>
7848 * po/sv.po, ru.po, pt_BR.po, pl.po, nl.po, ko.po, it.po, gl.po,
7849 fr.po, et.po, es.po, de.po, findutils.pot: new translations, and
7850 new source code to translate.
7852 * po/da.po: new Danish translation.
7854 2001-01-20 Kevin Dalley <kevin@seti.org>
7856 * doc/find.texi (Adding Tests): Place space in "#! /bin/sh".
7858 * find/testsuite/find.gnu/prune-default-print.xo,
7859 find/testsuite/find.gnu/prune-default-print.exp: test for "find
7860 . -prune" which passes after changes. Also see name-opt.exp.
7862 * find/util.c (get_new_pred):
7863 * find/tree.c (set_new_parent):
7864 * find/parser.c (various parse functions):
7865 * find/find.c (main):
7866 (default_prints): new function
7867 * find/defs.h (struct predicate): added no_default_print
7868 side_effects are no separated from no_default_print. predicates
7869 which cause side effects should not be reordered (optimized).
7870 predicates which cause printing should have printing turned off.
7871 Printing statements also cause side effects.
7873 2000-10-29 Bruno Haible <haible@ilog.fr>
7875 * locate/code.c (main), doc/find.texi: improve handling of
7876 non-ASCII characters used old format.
7878 2000-10-21 Paul Eggert <eggert@twinsun.com>
7880 If open + fchdir fails, fall back on xgetcwd + chdir.
7881 The old code tested for this at compile-time,
7882 but SunOS 4.1.4 fchdir can fail at run-time.
7884 * find/defs.h (fchdir): Define to -1 if not available.
7885 * find/defs.h (starting_dir, starting_desc):
7886 Always declare. starting_dir now points to const.
7887 * find/find.c (starting_dir, starting_desc): Likewise.
7888 * find/find.c (starting_dir):
7889 Now "." if starting_desc is nonnegative, for benefit of diagnostics.
7890 (main, process_top_path, process_dir):
7891 If open + fchdir fails, fall back on xgetcwd + chdir.
7892 * find/pred.c (launch): Likewise.
7894 2000-10-20 Kevin Dalley <kevin@seti.org>
7896 * xargs/xargs.c, locate/updatedb.sh, locate/locate.c (usage),
7897 find/parser.c (parse_help): add bug reporting address to help
7899 2000-10-13 Kevin Dalley <kevin@seti.org>
7901 * depcomp, lib/depcomp: depcomp moved from lib to .
7903 * po/sv.po, ru.po, pt_BR.po, pl.po, nl.po, ko.po, it.po, gl.po,
7904 fr.po, findutils.pot, et.po, es.po, de.po: updated after addition
7907 2000-10-11 Kevin Dalley <kevind@rahul.net>
7911 * locate/testsuite/config/unix.exp: set PRUNEFS to "" for the
7914 2000-10-10 Bruno Haible <haible@ilog.fr>
7916 * lib/Makefile.am (libfind_a_SOURCES): added yesno.c
7918 * lib/yesno.c, lib/rpmatch.c: new files.
7920 * find/pred.c: use function yesno().
7922 2000-10-10 Kevin Dalley <kevind@rahul.net>
7924 * locate/testsuite/Makefile.am: Added missing \ at end of
7927 * locate/testsuite/locate.gnu/ignore_case3.xo,
7928 locate/testsuite/locate.gnu/ignore_case3.exp,
7929 locate/testsuite/locate.gnu/ignore_case2.exp,
7930 locate/testsuite/locate.gnu/ignore_case1.xo,
7931 locate/testsuite/locate.gnu/ignore_case1.exp: place locatedb
7932 inside tmp directory, add subdir directory under tmp.
7934 * locate/testsuite/config/unix.exp: clean up tmp after test is
7937 2000-10-10 Kevin Dalley <kevind@rahul.net>
7939 * locate/testsuite/config/unix.exp (Repository):
7941 * po/POTFILES.in: added lib/rpmatch.c
7943 2000-10-09 Kevin Dalley <kevind@rahul.net>
7945 * lib/fnmatch.c, lib/fnmatch.h: reverted to older version of
7946 fnmatch which works with Solaris.
7948 * locate/testsuite/config/unix.exp: dejagnu unix.exp
7950 * xargs/testsuite/config/unix.exp: remove temporary file
7952 * xargs/xargs.c: spelling correction
7954 * m4/prereq.m4: updated and changed some macros
7956 * m4/jm-macros.m4: replaced jm_FUNC_FNMATCH with
7957 kd_FUNC_FNMATCH_CASE_REPL
7959 * m4/timespec.m4, m4/strerror_r.m4, m4/mbstate_t.m4,
7960 m4/largefile.m4, m4/gettext.m4, m4/fnmatchcase.m4, m4/d-type.m4,
7961 m4/d-ino.m4, m4/c-bs-a.m4: new m4 macros.
7963 * m4/Makefile.am: add fnmatchcase.m4 and mbstate_t.m4
7965 * locate/testsuite/locate.gnu/ignore_case3.xo,
7966 locate/testsuite/locate.gnu/ignore_case3.exp,
7967 locate/testsuite/locate.gnu/ignore_case2.xo,
7968 locate/testsuite/locate.gnu/ignore_case2.exp,
7969 locate/testsuite/locate.gnu/ignore_case1.xo,
7970 locate/testsuite/locate.gnu/ignore_case1.exp,
7971 locate/testsuite/config/unix.exp: tests related to "--ignore-case"
7974 * locate/testsuite/locate.gnu: testsuite directory
7976 * locate/testsuite/Makefile.am (Repository):
7978 * locate/testsuite: add directory for locate testsuite
7980 * po/findutils.pot: updated file
7982 * po/sv.po, po/ru.po, po/pt_BR.po, po/pl.po, po/nl.po, po/ko.po,
7983 po/it.po, po/gl.po, po/fr.po, po/et.po, po/es.po, po/de.po:
7984 updated various po files.
7986 * locate/updatedb.sh: export TMPDIR, which is used by child
7989 * locate/locate.1, locate/locate.c: add "--ignore-case" option.
7991 * locate/Makefile.am: add testsuite subdirectory
7993 * find/testsuite/find.gnu/perm.xo,
7994 find/testsuite/find.gnu/perm.exp,
7995 find/testsuite/find.gnu/name-opt.xo,
7996 find/testsuite/find.gnu/name-opt.exp: added test suites
7998 * configure.in: add locate/testsuite/Makefile
8000 * doc/find.info*: removed from repository
8002 * doc/find.texi: add documentation for "-i" option.
8004 * aclocal.m4: removed from repository, as it is generated.
8006 * find/pred.c: fixes problem with "find -perm -0100".
8008 * lib/lstat.c, lib/stat.c: removed from repository. These files
8009 are generated from lib/xstat.in.
8011 2000-08-24 Kevin Dalley <kevind@rahul.net>
8013 * doc/find.texi (Invoking xargs): changed @var{-s} to @samp{-s}.
8015 2000-05-13 Kevin Dalley <kevind@rahul.net>
8017 * find/tree.c (opt_expr): move iname and ipath to the front of the
8020 * doc/find.texi (Directories): changed wording for "-prune".
8022 * find/parser.c (parse_prune): set side_effects to true, to
8023 prevent prune from being moved in opt_expr.
8025 2000-04-12 Kevin Dalley <kevind@rahul.net>
8027 * doc/find.texi, doc/permi.texi: fix spellings, add LocalWords.
8029 * lib/Makefile.am: put getline.c back into libfind_a_SOURCES,
8030 since getstr is needed.
8034 * po/POTFILES.in: updated list of files, updated po files.
8037 2000-04-02 Paul Eggert <eggert@twinsun.com>
8039 Add support for large files, and port to Solaris 8 and earlier
8042 * lib/human.c (getenv): Depend on NEED_GETENV_DECL, not
8045 * lib/strftime.c (my_strftime): Make sure we call the system
8046 strftime, not ourselves, when invoking the underlying strftime.
8048 * m4/check-decl.m4 (jm_CHECK_DECLS): Remove memchr, nanosleep.
8050 * m4/jm-macros.m4 (jm_MACROS): Don't check for utime.h. Do not
8051 require jm_BISON, jm_CHECK_TYPE_STRUCT_UTIMBUF, jm_FUNC_LCHOWN,
8052 jm_FUNC_CHOWN, jm_FUNC_NANOSLEEP, jm_FUNC_GROUP_MEMBER,
8053 jm_FUNC_PUTENV, jm_FUNC_GETGROUPS, AM_FUNC_GETLOADAVG,
8054 jm_SYS_PROC_UPTIME, jm_FUNC_FTRUNCATE, jm_FUNC_UTIME. Do not
8055 replace strcasecmp, dup2, gethostname, getusershell, stime,
8056 strcspn, strpbrk, euidaccess, mkdir, rmdir, rpmatch, strndup,
8057 strverscmp, memchr, memmove. Do not check for declaration of
8058 lchown. Remove invocations of AM_FUNC_OBSTACK, AM_FUNC_STRTOD,
8059 POW_LIBM, jm_LANGINFO_CODESET, jm_ICONV. Remove df tests.
8060 (jm_CHECK_ALL_TYPES): Include <sys/stat.h> when checking for
8061 struct stat.st_blksize.
8063 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set environment variable
8064 in shell rather than using putenv, which isn't portable.
8066 * COPYING, lib/alloca.c, lib/dirname.c, lib/error.c,
8067 lib/savedir.c, lib/strstr.c, m4/check-decl.m4, m4/d-ino.m4,
8068 m4/d-type.m4, m4/getline.m4, m4/jm-glibc-io.m4, m4/jm-macros.m4,
8069 m4/jm-mktime.m4, m4/ls-mntd-fs.m4, m4/memcmp.m4, m4/prereq.m4,
8070 m4/readdir.m4, m4/regex.m4, m4/strftime.m4, m4/uintmax_t.m4: Sync
8071 to latest version from sh-utils-2.0g.
8073 * config.guess, config.sub, lib/argmatch.c, lib/argmatch.h,
8074 lib/human.c, lib/human.h, lib/memcpy.c, lib/quotearg.c,
8075 lib/quotearg.h, lib/strtoull.c, lib/strtoumax.c,
8076 lib/xstrtoumax.c, m4/c-bs-a.m4, m4/gettext.m4,
8077 m4/largefile.m4, m4/lcmessage.m4, m4/link-follow.m4,
8078 m4/progtest.m4, m4/strerror_r.m4, m4/timespec.m4,
8079 m4/xstrtoumax.m4: New files, taken from sh-utils-2.0g.
8081 * lib/ansi2knr.1, lib/ansi2knr.c, lib/basename.c, lib/getopt.h,
8082 lib/fnmatch.c, lib/fnmatch.h, lib/modechange.c: Sync to latest
8083 unreleased version of GNU tar (between 1.13.17 and 1.13.18).
8085 * lib/basename.h, lib/waitpid.c: New files, taken from same
8088 * lib/regex.c, lib/regex.h: Sync to GNU grep 2.4.2.
8090 * lib/posix/Makefile.am, lib/posix/regex.h: New files, taken from
8093 * lib/strftime.c: Sync to textutils 2.0e.
8095 * acconfig.h, depcomp, lib/strcasecmp.c, m4/check-type.m4,
8096 m4/const.m4, m4/decl.m4, m4/lfs.m4, m4/mktime.m4, m4/perl.m4,
8097 m4/putenv.m4, m4/uptime.m4, m4/utimbuf.m4, m4/utime.m4,
8098 m4/utimes.m4: Remove these files; no longer needed.
8100 * configure.in (AC_CANONICAL_HOST, AC_SYS_LARGEFILE,
8101 jm_AC_TYPE_UINTMAX_T): Add.
8102 (CACHE_IDS, FSTYPE_STATVFS, FSTYPE_USG_STATFS, FSTYPE_AIX_STATFS,
8103 FSTYPE_MNTENT, FSTYPE_STATFS, FSTYPE_GETMNT): Add comment, so that
8104 we don't need acconfig.h.
8105 (AC_CHECK_TYPE): Add ssize_t.
8106 (AC_REPLACE_FUNCS): Add waitpid.
8107 (AC_CHECK_FUNCS): Remove basename.
8108 (AC_FUNC_MKTIME): Remove.
8109 (LIBOBJS): Add no-ops to work around automake 1.4 bug.
8110 (AC_OUTPUT): Add lib/posix/Makefile.
8112 * find/defs.h: Include <config.h>, <sys/types.h>, <sys/stat.h>,
8113 <stdio.h>, <limits.h>, <inttypes.h>. All includers changed to not
8114 include these files, and to include "defs.h" first (since config.h
8115 must be included first).
8116 (CHAR_BIT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
8117 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, MOD_WXUSR,
8118 MODE_R, MODE_RW, MODE_RWX, MODE_ALL): New macros.
8119 (enum permissions_type): New enum.
8120 (struct long_val.negative): New member.
8121 (struct long_val.l_val): Now uintmax_t, not unsigned long.
8122 (struct size_val.size): Likewise.
8123 (struct perm_val): New type.
8124 (struct predicate.perm): Now struct perm_val, not unsigned long.
8125 (struct predicate.type): Now mode_t, not unsigned long.
8126 (list_file): New parameters current_time, output_block_size.
8127 All callers changed.
8128 (savedir, basename): Remove decls.
8129 (output_block_size, start_time): New extern vars.
8131 * find/find.c: Include <human.h>, <savedir.h>.
8132 (output_block_size, start_time): New vars.
8133 (main): Initialize them. No need to check for negative st_size,
8134 since savedir now does it for us.
8136 * find/fstype.c: Include "dirname.h".
8138 (filesystem_type_uncached): Use xstrtoumax instead of xatoi.
8140 * find/parser.c: Include "xstrtol.h".
8141 (get_num_days, get_num, parse_amin, parse_cmin, parse_mmin,
8142 parse_size, parse_used, insert_time, insert_num): Compute using
8143 uintmax_t, not unsigned long.
8144 (parse_amin, parse_cmin, parse_mmin, parse_used, insert_time):
8145 Keep track of whether time was negative before converting it to an
8147 (parse_daystart): Don't assume that localtime succeeds; e.g. it
8148 can fail with 64-bit time_t and 32-bit tm_year.
8149 (parse_perm, insert_type): Compute using mode_t, not unsigned
8151 (insert_type): Use symbolic constants like MODE_ALL instead of
8152 traditional ones like 07777. Set new kind member to indicate
8153 permissions type, instead of using unportable magic numbers.
8154 (make_segment): We will use human_readable to convert most numeric
8155 values, so simplify the cases.
8156 (get_num_days): Write in terms of get_num, to avoid duplicated
8158 (insert_time, insert_num): When debugging, convert large values to
8159 uintmax_t and output with %ju.
8160 (get_num): Use xstrtoumax to do the real work.
8162 * find/pred.c: Include "basename.h", "human.h".
8163 (DEV_BSIZE, ST_BLKSIZE, ST_NBLOCKSIZE): New macros, taken from
8165 (ST_NBLOCKS): Replace with fileutils defn.
8167 (ctime_format): New function.
8168 (pred_fprintf, format_date): Use human_readable to output large
8170 (pred_fprintf): Use ctime_format to output ctime-style dates. Use
8171 base_name to compute the base name of a path. With %m, output the
8172 mode portably using traditional numbers, even if the host uses
8173 some other numbering scheme.
8174 (pred_iname, pred_name): basename -> base_name.
8175 (pred_perm): Use new kind member to deduce permissions type,
8176 instead of relying on magic numbers.
8177 (pred_size): Compute using uintmax_t, not unsigned long. Avoid
8178 overflow if file size is near the maximum.
8179 (pred_type): Compute using mode_t, not unsigned long.
8180 (launch): Use waitpid, not wait. Check for EINTR.
8181 (format_date): Don't assume that localtime succeeds.
8183 * find/util.c (basename): Remove; we now use base_name.
8185 * lib/Makefile.am (SUBDIRS): New macro.
8186 (libfind_a_SOURCES): Add argmatch.h, argmatch.c, basename.h,
8187 basename.c, human.c, human.h, quotearg.c, quotearg.h, xstrtoumax.c.
8188 Remove error.h, error.c, getline.c.
8189 (EXTRA_DIST): Add mktime.c, regex.c.
8191 * lib/listfile.c: Include "human.h".
8192 (alloca): Declare, or include appropriate files to declare.
8193 (DEV_BSIZE, ST_NBLKSIZE, ST_NBLOCKS, ST_NBLOCKSIZE): New macros.
8194 (convert_blocks): Remove.
8195 (list_file): New current_time and output_block_size args.
8196 Revamp quite a bit, to handle large numbers correctly
8197 and to match GNU ls behavior more closely.
8199 * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4, gettext.m4,
8200 largefile.m4, lcmessage.m4, link-follow.m4, progtest.m4,
8201 strerror_r.m4, xstrtoumax.m4. Remove check-type.m4, const.m4,
8202 decl.m4, lfs.m4, mktime.m4, perl.m4, putenv.m4, timespec.m4,
8203 uptime.m4, utimbuf.m4, utime.m4, utimes.m4.
8205 * xargs/xargs.c (wait_for_proc): Retry wait if it fails with
8208 2000-04-05 Kevin Dalley <kevind@rahul.net>
8210 * xargs/Makefile.am: add ansi2knr
8212 * xargs/xargs.c: add macros PARAMS rather than P_. Add
8215 * po/POTFILES: new file listing all POFILES.
8217 * m4/gl.po, m4/et.po: new files
8219 * m4/Makefile.am.in: updated file
8221 * m4: update directory
8223 * locate/Makefile.am: create updatedb from updatedb.sh
8225 * locate/updatedb.sh, locate/updatedb.in: removed file. Replaced
8228 * locate/frcode.c, locate/code.c, locate/bigram.c: add macros
8229 PARAMS rather than P_. Add prototypes.
8231 * lib/xstat.in: new file
8233 * lib/Makefile.am: update to latest versions of library files.
8235 * find/testsuite/Makefile.am: add CLEANFILES
8237 * find/util.c: remove definition of basename
8239 * find/util.c, find/tree.c, find/pred.c, find/parser.c,
8240 find/fstype.c, find/find.c, find/defs.h: add macros PARAMS rather
8241 than P_, for consistency, change to prototypes
8243 * find/Makefile.am: Add prototypes and ansi2knr
8245 * configure.in: add Galition and Estonian languages.
8246 Miscellaneous other fixes.
8249 2000-03-11 Kevin Dalley <kevind@rahul.net>
8251 * lib/basename.c: Add file from libit.
8252 * lib/Makefile.am (libfind_a_SOURCES): add basename.c since it is
8253 no longer replaceable.
8255 * find/util.c: Remove definition of basename, which is now in
8256 lib/basename.c (as base_name).
8257 * find/pred.c: Use base_name, not basename.
8258 * find/defs.h: Likewise.
8260 * configure.in : Don't replace basename. Now we use only
8263 2000-02-26 Kevin Dalley <kevind@rahul.net>
8267 * lib/strtoul.c: added to distribution
8269 * configure.in: added strtoul to AC_REPLACE_FUNCS
8271 * configure.in: added jm_CHECK_ALL_TYPE
8273 2000-02-23 Kevin Dalley <kevind@rahul.net>
8275 * po/ChangeLog: removed, merged with top-level ChangeLog.
8277 * po/de.po: new version of German file.
8279 * po/gl.po, po/et.po: new languages, Estonian and Galician.
8281 * locate/updatedb.sh (PRUNEFS): enclose paths in quotes
8283 2000-02-17 Kevin Dalley <kevind@rahul.net>
8285 * po/it.po: new version of Italian file.
8287 * locate/updatedb.sh (prunefs_exp): have sed statement use '*'
8288 rather than the often unsupported '+'.
8290 2000-02-13 Kevin Dalley <kevind@rahul.net>
8292 * configure.in: removed AC_ARG_PROGRAM, which is already in
8295 * locate/Makefile.am (updatedb), locate/updatedb.sh: add
8296 transforms of find, frcode, bigram, and code back into
8297 updatedb.sh, which were accidentally removed.
8299 2000-02-12 Kevin Dalley <kevind@rahul.net>
8301 * lib/wait.h: updated address.
8303 2000-01-26 Kevin Dalley <kevind@rahul.net>
8307 * acconfig.h: added internationalization.
8309 * intl/*: copied from tar-1.13.17.
8311 * locate/Makefile.am, locate/locate.c, locate/code.c:
8312 internationalized file.
8314 * locate/frcode.c, locate/bigram.c: include headers from ../lib
8317 * xargs/Makefile.am, xargs/xargs.c: internationalized directory.
8319 2000-01-26 Kevin Dalley <kevind@rahul.net>
8321 * po/POTFILES.in: added list of files with translatable strings.
8323 * de.po, es.po, fr.po, it.po, ko.po, nl.po, pl.po, pt_BR.po,
8324 ru.po, sv.po: New, slightly out of date, files imported from the
8325 Translation Project: http://www.iro.umontreal.ca/contrib/po/HTML/,
8326 German, Spanish, French, Italian, Korean, Dutch, Polish, Brazilian
8330 2000-01-24 Kevin Dalley <kevind@rahul.net>
8332 * lib/xmalloc.c, lib/regex.c, lib/getopt.c: internationalization
8333 works with current version of gettext.
8335 * lib/getline.h : added declaration of getstr.
8336 * lib/Makefile.am (libfind_a_SOURCES): added getline.[ch] to
8337 standard compilation. Added internationalization.
8338 * find/Makefile.am (INCLUDES): corrected -I options for building
8339 in other directories.
8340 (LDADD): changes for internationalization.
8342 * configure.in (ALL_LINGUAS): added internationalization.
8343 getline.c is always compiled and linked, because of getstr.
8347 (DISTCLEANFILES): added intl/libintl.h
8348 (AUTOMAKE_OPTIONS): added gnits to AUTOMAKE_OPTIONS
8349 (SUBDIRS): added intl and po
8351 * acconfig.h: added internationalization values
8353 * THANKS: added thanks file for gnits compatibility.
8355 2000-01-22 Kevin Dalley <kevind@rahul.net>
8357 * added intl directory.
8358 * created po directory and added existing po files from
8359 http://www.iro.umontreal.ca/contrib/po/HTML
8361 * Added internationalization, only with slightly out of date po
8362 files for many locales.
8364 2000-01-18 Kevin Dalley <kevind@rahul.net>
8368 * locate/Makefile.am: remove creation of updatedb, since it is now
8371 * configure.in: updatedb is now created by configure.
8373 * xargs/Makefile.am: added testsuite to xargs directory
8375 * locate/updatedb.in: updatedb is now created by configure
8377 * locate/frcode.c, locate/code.c, locate/bigram.c: change return
8378 from main to int. Replace getstr with getline, where possible.
8380 * locate/Makefile.am: place frcode, code, bigram in
8383 * lib/xstrdup.c, lib/xmalloc.c, lib/xgetcwd.c, lib/xalloc.h,
8384 lib/strtol.c, lib/strstr.c, lib/strftime.c, lib/strdup.c,
8385 lib/stpcpy.c, lib/stat.c, lib/savedir.h, lib/savedir.c,
8386 lib/regex.h, lib/regex.c, lib/realloc.c, lib/pathmax.h,
8387 lib/modechange.h, lib/modechange.c, lib/mktime.c, lib/memset.c,
8388 lib/memcmp.c, lib/malloc.c, lib/lstat.c, lib/idcache.c,
8389 lib/getopt1.c, lib/getopt.c, lib/getopt.h, lib/getline.c,
8390 lib/getline.h, lib/fnmatch.c, lib/fnmatch.h, lib/filemode.c,
8391 lib/filemode.h, lib/fileblocks.c, lib/error.c, lib/error.h,
8392 lib/dirname.c, lib/alloca.c: updated to newer version of file from
8395 * find/version.c: version number is now automatically generated by
8398 * find/fstype.c (filesystem_type_uncached): fixes bug described as
8399 follows: When 'find' looks for a fstype, it parses the /etc/mtab
8400 until it finds the good line. But, if there is, before the good
8401 line, a line whose mountpoint is unreachable, it fails.
8403 * doc/texinfo.tex: updated to newer version
8405 * doc/find.texi: added version.texi, fixed a few documentation bugs.
8407 * configure.in: new m4 features.
8409 * Makefile.am: moved testsuite to below corresponding directories
8412 * acconfig.h: updated to match new m4 files.
8414 * m4: added m4 directory, largely borrowed from Jim Meyering's
8417 2000-01-17 Kevin Dalley <kevind@rahul.net>
8419 * doc/find.texi (Multiple Files): placed missing xargs in examples
8421 * find/testsuite/find.gnu/depth.exp: added find tests to test
8424 * doc/find.texi: include version.texi for automatic determination
8425 of version number, update bug report email address to
8426 bug-findutils@gnu.org.
8427 (Combining Primaries With Operators): add indices for " ,", "()",
8430 2000-01-17 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8432 * find/tree.c (opt_expr): Never rearrange the arguments of the
8433 comma operator, since it is not commutative. Remove useless
8436 2000-01-17 Jonathan R. Ferro <jferro@corwin.ece.cmu.edu>
8438 * find/find.c (process_path): fix problem with "-depth" which is
8439 tested in depth.exp test.
8441 1999-08-15 Kevin Dalley <Kevin Dalley <kevin@seti.org>>
8443 * find/fstype.c (filesystem_type_uncached): a stat failure with
8444 EACCESS will ignore this file system keep on looking. Patch
8445 suggested by Vincent Danjean <vdanjean@ens-lyon.fr>.
8447 1999-08-15 Mark Kettenis <kettenis@gnu.org>
8449 * xargs/xargs.c (LONG_MAX): Define if necessary.
8450 (main): If ARG_MAX is -1 (that is sysconf
8451 (_SC_ARG_MAX) returns -1) the system does not impose a limit. In
8452 that case, use LONG_MAX as the limit.
8454 1999-08-15 Kevin Dalley <Kevin Dalley <kevind@rahul.net>
8456 * find/version.c: version string is now set by config.h
8458 1999-08-08 Kevin Dalley <kevin@seti.org>
8462 * README-alpha: added alpha README file
8464 * find/defs.h: move lstat declarations into defs.h
8466 * xargs/Makefile.am, testsuite/Makefile.am, locate/Makefile.am,
8467 lib/Makefile.am, find/Makefile.am, doc/Makefile.am, configure.in,
8468 Makefile.am: update for automake-1.4
8470 1999-08-02 Kevin Dalley <kevind@rahul.net>
8472 * AUTHORS: added file listing AUTHORS
8474 * lib/Makefile.am: modified code for EXTRA sources
8476 1999-01-30 Kevin Dalley <kevind@rahul.net>
8478 * added const to declaration of basename, which should satisfy
8479 Linux as well as Hurd (fixes bug #31325).
8481 1998-12-04 Kevin Dalley <kevind@rahul.net>
8483 * lib/nextelem.c: removed declaration of strdup and free, which
8484 meets GNU coding standards and allows compilation on more
8487 * find.texi: corrected explanation of -amin option which described
8488 hours instead of minutes
8490 1998-09-26 Kevin Dalley <kevind@rahul.net>
8492 * lib/getline.c: fix getstr so that it correctly handles long file
8495 1998-09-20 Kevin Dalley <kevind@rahul.net>
8497 * removed more function declarations to meet GNU coding standards
8499 1998-08-30 Kevin Dalley <kevind@rahul.net>
8501 * lib/nextelem.c: removed declaration of strdup and free, which
8502 meets GNU coding standards and allow compilation on sparc
8504 * corrected explanation of -amin option which described hours
8507 1998-02-27 Kevin Dalley <kevind@rahul.net>
8509 * locate/locate.c: add --existing option to locate, which only
8510 prints the names of files which still exist
8512 1998-02-08 Kevin Dalley <kevind@rahul.net>
8514 * locate/locate.c: corrected get_short so that it correctly
8515 returns negative numbers.
8517 * remove declarations of various string functions. Removing the
8518 declarations almost matches the GNU Coding Standards.
8520 1997-03-03 Kevin Dalley <kevind@rahul.net>
8522 * xargs/xargs.c: xargs fixed to prevent occasional core dumping.
8524 1997-01-11 Kevin Dalley <kevind@rahul.net>
8526 * locate/updatedb.sh: add --localuser option to updatedb, which
8527 allows find to be run as nobody, while allowing database file to
8528 be created as root, change suggested by
8529 <Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de>
8531 1996-12-28 Kevin Dalley <kevind@rahul.net>
8532 * added PRUNEFS as variable in updatedb and --prunefs as option to
8535 1996-05-27 Kevin Dalley <kevind@rahul.net>
8537 * updatedb.sh: when NETPATHS is used, only su to NETUSER if whoami
8539 1996-04-27 Kevin Dalley <kevind@rahul.net>
8541 * lib/getline.c (getstr): verify that nchars_avail is *really*
8542 greater than 0; set *n to a large enough number, stops some core
8545 1994-11-03 David J. MacKenzie <djm@gnu.org>
8549 * locate/Makefile.am: Move updatedb from LIBSCRIPTS to SCRIPTS.
8551 * Makefile.am (distname): Change distribution name from find to
8554 * testsuite/config/unix.exp: Don't abuse xfail; simulate it correctly.
8556 * locate/Makefile.am (CLEANFILES): Fix typo.
8558 1994-11-02 David J. MacKenzie <djm@gnu.org>
8562 * lib/listfile.c find/defs.h (list_file): Take a stream arg.
8563 * find/pred.c (pred_ls): pass it.
8564 * find/parser.c pred.c defs.h (parse_fls, pred_fls): New functions.
8566 1994-10-25 David J. MacKenzie <djm@gnu.org>
8568 * find/pred.c (pred_fprintf): Flush output after \c. From Chapman
8571 * find/parser.c (insert_fprintf): Warn about unrecognized \ and %
8574 1994-10-18 David J. MacKenzie <djm@gnu.org>
8576 * find/defs.h parser.c pred.c tree.c util.c: Globally change
8577 "victim" to "primary".
8579 * find/parser.c (insert_fprintf): For 'c' format, don't lose the
8580 need_stat information. From Chapman Flack.
8582 * doc/find.texi perm.texi: New files.
8583 * configure.in: Configure the doc directory.
8585 * find/pred.c (pred_regex): Check that the regex matched the whole
8588 1994-10-12 David J. MacKenzie (djm@gnu.org>
8590 * find/parser.c: Add -mount as an alias for -xdev.
8591 From Klaus.Steinberger@physik.uni-muenchen.de (Klaus Steinberger).
8593 * lib/modechange.c: Make umask_value unsigned short.
8595 * xargs/xargs.c: Use symbolic constants in longopts.
8598 1994-10-05 David MacKenzie <djm@gnu.org>
8600 * xargs/xargs.c (main, read_line, read_string, do_exec): Pass
8601 along the lengths of the args.
8602 (main): Calculate length of replace_pat.
8603 (push_arg, do_insert): Use those lengths instead of calculating
8606 1994-10-04 David MacKenzie <djm@gnu.org>
8608 * locate/updatedb.sh Makefile.in: Add substitutions to get
8609 the transformed program names.
8611 * xargs/xargs.c: Put back the global variables for now.
8612 Rename some variables. Increase default args_per_exec.
8613 Use boolean where applicable.
8614 (main): Reduce default arg_max by 2048 for POSIX.2.
8615 (read_string): Don't check EOF string.
8616 (read_line, read_string): Take initial args size into account.
8618 1994-10-01 David MacKenzie <djm@gnu.org>
8620 * find/pred.c (launch): Use pid_t.
8622 * xargs/xargs.c (EOF_STR): Define and use.
8623 [__STDC__]: Declare xrealloc and xmalloc using void *.
8624 * find/defs.h: Likewise.
8626 * find/defs.h: Only declare stpcpy if !HAVE_STPCPY.
8628 * xargs/xargs.c: Replace most global variables with structure
8629 pointers passed as arguments. Use pid_t.
8630 * lib/wait.h: Include sys/wait.h if HAVE_SYS_WAIT_H.
8631 * configure.in: Call AC_TYPE_MODE_T and AC_HEADER_SYS_WAIT.
8633 * xargs/xargs.c: Improve paging performance and memory
8634 fragmentation by building command arguments in a pre-allocated
8635 buffer and re-implementing the child pid list as an expandable
8636 array. From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
8638 1994-09-29 David J. MacKenzie (djm@gnu.org>
8640 * find/fstype.c (fstype_to_string): Add more cases. Use
8641 INITMOUNTNAMES if defined.
8642 * find/defs.h: Change boolean typedef from char to int.
8643 * configure.in: Check for mktime.
8645 1994-09-27 Kaveh R. Ghazi (ghazi@noc.rutgers.edu)
8647 * configure.in: Add AC_HEADER_STAT.
8648 * lib/listfile.c, lib/modetype.h: Add STAT_MACROS_BROKEN.
8650 * find/pred.c: Move the inclusion of defs.h ahead of the first
8651 test of _POSIX_VERSION.
8653 * lib/xgetcwd.c: Remove _POSIX_VERSION, rely only on HAVE_GETCWD.
8655 1994-09-26 David MacKenzie <djm@gnu.org>
8657 * configure.in: Add AC_CONFIG_HEADER.
8658 * find/*.c locate/*.c xargs/*.c: Include config.h.
8659 * locate/updatedb.sh: Add --version; --old -> --old-format.
8661 1994-09-25 David MacKenzie <djm@gnu.org>
8663 * find/* [__STDC__]: Prototype declarations.
8665 * locate/updatedb.sh: Account for renaming code and frcode.
8667 * find/find.c (process_path): Store dev and ino of directories in
8668 current branch to avoid symlink loops. From DJ Delorie
8670 (process_dir): If following symlinks, don't cd to ..; instead,
8671 cd to the starting directory and then to the parent directory.
8672 (main) [HAVE_FCHDIR]: Save the dev, ino of the starting directory.
8673 (process_top_path) [HAVE_FCHDIR]: Use it.
8674 * find/pred.c (launch) [HAVE_FCHDIR]: Likewise.
8675 * defs.h [HAVE_FCHDIR]: Declare starting_desc instead of starting_dir.
8676 * configure.in: Check for dev_t, ino_t, fchdir, fcntl.h.
8678 1994-09-23 David MacKenzie <djm@gnu.org>
8680 * lib/listfile.c: Change #ifdef S_IFLNK to #ifdef S_ISLNK.
8681 From Andreas Luik <luik@isa.de>.
8683 1994-09-22 David MacKenzie <djm@gnu.org>
8685 * locate/locate.c (last_literal_end): Dynamically allocate enough
8686 memory for the subpattern.
8688 1994-09-21 David MacKenzie <djm@gnu.org>
8690 * locate/locate.c (locate): Warn if database is >8 days old.
8691 From Ian Lance Taylor.
8693 * xargs/xargs.c (do_exec), find/pred.c (launch): Set SIGCHLD to
8694 default. From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
8695 * find/find.c pred.c util.c lib/listfile.c: Remove fflush(stdout)
8696 calls before error. error does it, and doesn't trash errno.
8697 From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
8699 * find/fstype.c (filesystem_type_uncached): Don't trust mtab dev
8700 number on HPUX. From Andreas Luik <luik@isa.de>.
8701 (filesystem_type_uncached): Don't cache unknown file system
8702 types. From casper@fwi.uva.nl (Casper Dik).
8704 * locate/updatedb.sh: Collect results in temp file and rename it
8705 atomically. From Andreas Luik <luik@isa.de>.
8707 * xargs/xargs.c (parse_num): Print a long using %ld. From Jim
8710 * find/defs.h find.c parser.c pred.c util.c, lib/nextelem.c:
8711 Emulate strchr and strrchr with index and rindex, not vice versa.
8713 Remove man directory; move man pages to the directories of the
8714 programs they document.
8716 * locate/frcode.c: Renamed from code.c.
8717 * locate/frcode.c (put_short): Renamed from puthalfword.
8718 * locate/locate.c (get_short): Renamed from gethalfword.
8719 (last_literal_end): Renamed from patprep.
8720 (locate): Recognize old-format databases too.
8721 * locate/locatedb.h: Add defines for old-format databases.
8722 * locate/bigram.c locate/code.c: Put back programs to create
8723 old-format databases.
8724 * locate/updatedb.sh: Take --old option to use them.
8726 1994-09-20 David MacKenzie <djm@gnu.org>
8728 * configure.in: Update for Autoconf v2.
8729 * find/pred.c lib/savedir.c: Use new symbols for dir header.
8730 * locate/updatedb.sh: Add --help option.
8732 1994-02-13 Jim Meyering (meyering@comco.com)
8734 * man/Makefile.in [man1ext, man5ext]: Set man5ext (not man1ext) to 5.
8736 1993-08-01 David J. MacKenzie (djm@gnu.org>.
8737 (filesystem_type_uncached) [AFS]: Call it if the fs type is
8740 * parser.c (parse_size): Recognize b and w suffixes for dd
8743 * code.c (puthalfword): New function.
8745 * locate.c (gethalfword): New function.
8747 From ifado!wb@germany.eu.net (Wilhelm B. Kloke).
8749 * listfile.c: Include pathmax.h.
8750 (get_link_name): Always allocate PATH_MAX + 1 bytes for
8752 * pred.c (pred_fprintf, insert_lname): Call get_link_name.
8754 * fstype.c (filesystem_type, filesystem_type_uncached),
8755 listfile.c (list_file): Take an arg for the path to access.
8756 * pred.c (pred_ls, pred_fstype, pred_fprintf): Pass it.
8758 * find.c (process_dir): Renamed from scan_directory.
8760 Changes from jrs@world.std.com (Rick Sladkey) to chdir into
8761 subdirectories instead of using string concatenation, for speed:
8762 * find.c (process_top_path): New function.
8763 (main): Call it, and xgetcwd.
8764 (process_path, scan_directory): Take new arg, the pathname
8765 relative to ".". Use it and pass it on.
8766 * pred.c (pred_and, pred_comma, pred_negate, pred_or,
8767 pred_xtype, pred_fprintf, pred_empty, insert_lname):
8768 access rel_pathname instead of pathname.
8769 (launch): chdir to starting_dir.
8770 * defs.h: Declare rel_pathname and starting_dir.
8771 * find.c: Define them.
8773 * xgetcwd.c: New file.
8775 * updatedb.sh: Recognize -fstype NFS as well as nfs.
8776 * locate.c (patprep): Skip trailing character classes correctly.
8777 From luik@pharao.stgt.sub.org (Andreas Luik).
8779 * parser.c (parse_group): Make gid a gid_t, not short or int.
8780 (parse_nogroup): Cast gid to unsigned when using it as an array index.
8781 (parse_user, parse_nouser): Similar changes for uid.
8782 * defs.h: Use uid_t and gid_t.
8784 * parser.c (parse_help): New function.
8785 (parse_table): Add --version, -help, and --help options.
8786 Rename struct parser_table_t to struct parser_table.
8787 (parse_version): Exit after printing message, on
8790 * xargs.c, locate.c (main, usage): Add --version and --help
8793 1993-03-31 Jim Meyering (meyering@comco.com)
8795 * parser.c: Define isascii macro to be 1 also if STDC_HEADERS.
8798 1993-03-31 David J. MacKenzie (djm@gnu.org>text; nuke cp.
8800 1993-03-29 David J. MacKenzie (djm@gnu.org>.
8802 * parser.c (make_segment, insert_fprintf), pred.c
8803 (pred_fprintf): Add '%F' to print filesystem type.
8805 * parser.c (parse_fprintf): Check if second arg is missing.
8807 1993-03-23 David J. MacKenzie (djm@gnu.org>
8809 * defs.h, parser.c, pred.c: Rename some types that conflict
8810 with reserved POSIX.1 namespace (ended in _t).
8814 1991-10-17 David J. MacKenzie <djm@gnu.org>
8816 * xargs.c: Don't determine memory.h based on POSIX, which
8819 1991-10-05 Jim Meyering <meyering@churchy.gnu.ai.mit.edu>
8821 * parser.c (parse_perm): Parse new `-perm +mode' notation.
8822 * pred.c (pred_perm): Interpret same.
8824 1991-09-13 David J. MacKenzie <djm@gnu.org>
8826 * xargs.c [POSIX]: Always use sysconf to get ARG_MAX.
8828 1991-09-05 David J. MacKenzie <djm@gnu.org>
8830 * bigram.c, code.c (main): Make path_max int, not unsigned.
8831 * locate.c (main): Check for pathconf failure.
8833 1991-09-05 Jim Meyering <meyering@churchy.gnu.ai.mit.edu>
8835 * parser.c (insert_fprintf): Add `\\' escape and fixed `%%'
8837 * pred.c (pred_fprintf): fixed off-by-one indexing problem
8838 when handling [gGuU] printf formats.
8840 1991-08-28 David J. MacKenzie <djm@gnu.org>
8844 1991-08-26 David J. MacKenzie <djm@gnu.org>
8846 * bigram.c, code.c: Fix handling of PATH_MAX.
8847 Check for anomalous input line lengths.
8850 1991-08-23 David J. MacKenzie <djm@gnu.org>
8852 * pred.c (pred_fprintf): Round block number up to get K.
8854 1991-08-22 David J. MacKenzie <djm@gnu.org>
8856 * pred.c (pred_fprintf, pred_lname) [_AIX]: Allocate PATH_MAX
8857 byte for link object since st_size is wrong.
8859 * listfile.c (list_file): Don't convert blocks to kilobytes if
8860 env. var POSIX_ME_HARDER is defined.
8862 * fstype.c [FS_AIX_STATFS]: New case.
8864 * configure: Make sure the sys/mount.h is the 4.4BSD version
8865 with grep instead of just testing whether it exists.
8867 * listfile.c (list_file): Add 1 to number of 512-byte blocks
8868 before dividing to get 1K blocks (so we round up, not down).
8870 1991-08-21 David J. MacKenzie <djm@gnu.org>
8874 * parser.c (parse_fprintf), pred.c (pred_fprintf): Add %k
8875 conversion to print 1K blocks.
8877 * listfile.c: Print counts of 1K blocks, for consistency with
8878 new fileutils release. Bad timing, there.
8882 * pred.c [VOID_CLOSEDIR]: Fake a return value for closedir,
8883 which returns void on some systems, like Sequents.
8884 * configure: Check sys/dir.h for 'void closedir'.
8886 1991-08-15 David J. MacKenzie <djm@gnu.org>
8888 * modetype.h: Define POSIX.1 stat stuff if missing.
8889 * pred.c, parser.c, find.c, fstype.c: Don't define it.
8890 * updatedb.sh: Use a variable substitution method like configure's.
8891 * Makefile.in: Add datadir variable to separate programs from
8894 * parser.c, pred.c: Rename -fulldays to -daystart.
8896 * defs.h, find.c, parser.c, pred.c: Add many new predicates
8897 from Jay Plett (jay@princeton.edu).
8899 1991-08-14 David J. MacKenzie <djm@gnu.org>
8901 * parser.c (parse_size), pred.c (pred_size), defs.h (struct
8902 size_t): Allow `k' to follow number to measure size in Kbytes.
8903 * parser.c (parse_size, get_num, insert_num), defs.h (struct
8904 size_t): Use enum comparison_type instead of short.
8906 1991-08-09 David J. MacKenzie <djm@gnu.org>
8908 * xargs.c (read_line): Use isblank, to support POSIX locales.
8910 * fstype [FS_STATVFS]: New code for SVR4, from slootman@dri.nl
8912 * configure: Figure out when to use it.
8914 * configure: Check for st_blocks in struct stat.
8915 * listfile.c (ST_NBLOCKS): New macro.
8916 (list_file): Print file's block count.
8917 Use S_ISLNK instead of S_IFLNK.
8918 * fileblocks.c: New file, from fileutils.
8920 1991-08-08 David J. MacKenzie <djm@gnu.org>
8922 * parser.c, pred.c [CACHE_IDS]: Optional code to turn uid and
8923 gid lookups into table lookups.
8925 1991-08-07 David J. MacKenzie <djm@gnu.org>
8927 * configure, Makefile.in's: Support +srcdir option via VPATH.
8928 Clean up clean targets.
8930 1991-07-20 David J. MacKenzie <djm@gnu.org>
8932 * configure: Filter /etc and /usr/etc from path.
8934 * xargs.c (wait_for_proc): Fix handling of child exit status.
8935 (main): Exit with a nonzero status if any child did.
8937 * pred.c (launch): Flush stdout and stderr before forking.
8939 * fstype.c (filesystem_type) [FS_MNTENT]: Skip entries of
8942 1991-07-19 David J. MacKenzie <djm@gnu.org>
8944 * pred.c, locate.c: Use fnmatch instead of glob_match.
8945 * fnmatch.c, fnmatch.h: New files.
8947 * Many files: Use string.h if STDC_HEADERS, as well as if USG.
8949 * locate.c, code.c, bigram.c: Possibly use pathconf to get
8950 PATH_MAX. Use malloc to allocate path arrays.
8952 * xargs.c: Possibly use sysconf to get ARG_MAX.
8953 (env_size): Make definition unconditional.
8954 (main): Do arg_max adjustment that can't be done with
8955 preprocessor now that ARG_MAX might be a function call.
8956 (do_exec): Exit with status 126 or 127 after failed exec, for
8959 * xargs.c, pred.c, listfile.c: Use POSIX, not UNISTD_MISSING.
8960 * wait.h: Use POSIX, not WAIT_MACROS_MISSING.
8962 * COPYING: Use version 2. Update all files.
8964 * Replace Makefile and lib/Makefile with Makefile.in,
8965 lib/Makefile.in and configure. Update README.
8967 1991-04-05 David J. MacKenzie <djm@gnu.org>
8971 1991-03-15 David J. MacKenzie <djm@gnu.org>
8973 * xargs.c (main): Always run the command if some args are left over.
8974 Rename some variables.
8976 1991-01-18 David J. MacKenzie <djm@gnu.org>
8978 * bigram.c, code.c, locate.c: Use LIMITS_MISSING, not
8979 _POSIX_SOURCE, to decide whether to include limits.h.
8981 * parser.c, pred.c, listfile.c: Use POSIX, not _POSIX_SOURCE,
8982 to decide whether to declare getpwuid and getgrgid.
8984 * xargs.c: Use POSIX, not _POSIX_SOURCE, to determine whether
8985 to include memory.h.
8987 1991-01-12 David J. MacKenzie <djm@gnu.org>
8989 * defs.h, find.c, parser.c, pred.c: Remove -permmask option.
8991 1991-01-10 David J. MacKenzie <djm@gnu.org>
8993 * wait.h: Include sys/types.h to get pid_t.
8995 * xargs.c [USG && !STDC_HEADERS]: Only include memory.h if not
8998 1991-01-01 David J. MacKenzie <djm@gnu.org>
9002 1990-12-26 David J. MacKenzie <djm@gnu.org>
9004 * locate.c, bigram.c, code.c: Attempt to get max. path length
9005 on more kinds of systems, incl. POSIX.
9007 * pred.c, listfile.c, xargs.c: Get some decls from unistd.h,
9010 * find.c, defs.h: Make `cur_day_start' a time_t, not long.
9012 1990-12-21 David J. MacKenzie <djm@gnu.org>
9014 * defs.h, parser.c: Remove unused field from `struct exec_t'.
9016 * xargs.c: Add +no-run-if-empty option to cause the command to
9017 not be run if the input is empty.
9019 * defs.h (struct exec_t): Change the array of offsets into an
9020 array of `struct path_arg'.
9021 * parser.c (insert_exec_ok): Fill in new fields, to allow "{}"
9022 to be substituted (multiple times) anywhere in an arg to -exec
9024 * pred.c (pred_exec): Add code to substitute "{}" within args.
9025 (pred_ok): After prompting, just run pred_exec.
9027 1990-12-20 David J. MacKenzie <djm@gnu.org>
9029 * fstype.c (filesystem_type) [FS_MNTENT]: Allow for optional
9030 "0x" at front of "dev=" mount option, which amd puts there but
9031 Sun automounter doesn't.
9033 1990-12-15 David J. MacKenzie <djm@gnu.org>
9035 * find.c (main), util.c (usage): Make directory args optional,
9038 1990-12-15 David J. MacKenzie <djm@gnu.org>
9040 * listfile.c: Define major and minor if not defined (as in POSIX).
9042 1990-12-03 David J. MacKenzie <djm@gnu.org>
9044 * find.c, fstype.c, parser.c, pred.c, util.c: Flush stdout before
9045 writing to stderr, in case they have been redirected to the
9046 same file descriptor.
9048 * pred.c (launch): Use POSIX wait macros from wait.h.
9050 * xargs.c (print_xargs): Read from tty_stream, not stdin.
9052 1990-11-20 David J. MacKenzie <djm@gnu.org>
9056 * fstype.c [FS_USG_STATFS]: New code.
9057 [FS_STATFS]: For symlinks, statfs the directory the link is in
9058 instead of the link.
9059 * Various files: Conditionalize some declarations on
9060 STDC_HEADERS or _POSIX_SOURCE.
9062 1990-11-16 David J. MacKenzie <djm@gnu.org>
9064 * modetype.h: New file.
9065 parser.c, pred.c: Use it.
9067 1990-11-15 David J. MacKenzie <djm@gnu.org>
9069 * xmalloc.c: New file from fileutils.
9071 * fstype.c (fstype_to_string): Add case for MFS.
9072 (filesystem_type): Take a pathname as a second arg.
9073 [FS_STATFS] return "unknown" instead of exiting if statfs
9074 fails because of ENOENT.
9075 * pred.c (pred_fstype): Pass the pathname. Set current_dev.
9076 * find.c (process_path): Make root_dev local again.
9078 1990-11-12 David J. MacKenzie <djm@gnu.org>
9080 * pred.c (pred_fstype): Free old fs type.
9082 * fstype.c, pred.c (pred_fstype), parser.c (parse_fstype):
9083 Reread the file system type info. every time a filesystem
9084 mount point is crossed, to allow for automounting.
9086 * xstrdup.c: New file from fileutils.
9088 * find.c (process_path): Rename root_dev to current_dev and
9089 make it global, for -fstype.
9091 * wait.h: New file taken from xargs.c.
9093 * xargs.c: Make limits.h vs. sys/param.h conditional on
9094 LIMITS_MISSING instead of USG, to accomodate SVR2.
9096 1990-11-08 David J. MacKenzie <djm@gnu.org>
9098 * parser.c, pred.c, listfile.c: If not _POSIX_SOURCE, declare
9099 getpwuid and getgrgid. Use them.
9101 * listfile.c: If not _POSIX_SOURCE, define S_ISDIR and
9104 * find.c: Use S_ISDIR instead of S_IFDIR, and define if not
9107 * Makefile: Define AR and RANLIB and pass to child makes.
9108 lib/Makefile: Use them.
9110 * xargs.c (WIFSIGNALED): Redefine so it works.
9112 1990-11-05 David J. MacKenzie <djm@gnu.org>
9114 * find.c (process_path): For -xdev, process filesystem
9115 mountpoints (but don't descend them), instead of skipping them
9118 * find.c, parser.c, defs.h: Add -follow predicate.
9120 * xargs.c: Change ifdefs to support STDC POSIX systems.
9122 1990-11-03 David J. MacKenzie <djm@gnu.org>
9124 * xargs.c (do_exec): Child process exits with status 255, not
9125 127, if command can't be run.
9127 1990-11-02 David J. MacKenzie <djm@gnu.org>
9129 * xargs.c: Exit with status 127 if running commmand fails, as
9132 * fstype.c: Support -fstype for Ultrix (-DFS_GETMNT).
9133 Sun/BSD code is now -DFS_MNTENT.
9135 1990-11-01 David J. MacKenzie <djm@gnu.org>
9137 * Reorganize into subdirectories and add xargs. Rewrite Makefiles.
9139 * find.c (process_path, main): Allow a maxdepth of 0, meaning
9140 only process command line args.
9142 * parser.c, pred.c: Add -print0 predicate.
9144 * xargs.c: Add -0 option and long options. Move standard
9145 library functions into separate files. Use error instead of
9146 fatal and fprintf/perror. Use POSIX macros for examining exit
9148 (read_string): New function.
9150 1990-09-21 David J. MacKenzie <djm@gnu.org>
9152 * find.c (process_path): Take DEPTH as an arg instead of ROOT,
9155 1990-09-20 David J. MacKenzie <djm@gnu.org>
9157 * parser.c (parse_maxdepth): New function.
9158 * find.c (process_path): If -maxdepth was given, don't go
9159 more than that many levels deep.
9160 * defs.h: Declare maxdepth.
9162 1990-09-12 David J. MacKenzie <djm@gnu.org>
9164 * parser.c: Add -not as synonym for !.
9166 1990-08-26 Jim Kingdon <kingdon@pogo.ai.mit.edu>
9168 * Makefile (TAGS): New target.
9170 1990-08-12 David J. MacKenzie <djm@gnu.org>
9172 * xargs.c (main): Tell getopt to not permute.
9174 1990-08-04 David J. MacKenzie <djm@gnu.org>
9176 * parser.c (parse_perm), pred.c (pred_perm): Always compare
9179 * locate.c, Makefile: Rename 'fastfind' program to 'locate',
9180 following comment in POSIX.2 draft 10 rationale for find.
9182 1990-07-25 David J. MacKenzie <djm@gnu.org>
9184 * listfile.c (getuser, getgroup): Make uid and gid unsigned
9187 1990-07-16 David J. MacKenzie <djm@gnu.org>
9189 * defs.h: Don't declare fprintf and printf, in case they have
9190 prototypes in stdio.h (important for functions that use stdarg).
9192 1990-07-15 David J. MacKenzie <djm@gnu.org>
9194 * parser.c (parse_and): New function, for compatibility.
9196 1990-07-04 David J. MacKenzie <djm@gnu.org>
9198 * find.c (main): Only enclose expressions that produce no side
9199 effects within `( ... )'.
9201 1990-07-03 David J. MacKenzie <djm@gnu.org>
9203 * parser.c (strspn): Stop when end of string reached.
9207 * Move version number from Makefile to new file version.c.
9208 * parser.c: Recognize new -version predicate.
9210 * find.c (main): If no predicates that produce output are
9211 given, default to -print if the entire expression is true, not
9212 just the last part of an alternation.
9213 * Print the names of predicates with invalid arguments.
9215 1990-07-02 David J. MacKenzie <djm@gnu.org>
9217 * pred.c: Don't check for invalid comparison types in numeric
9218 predicate functions.
9220 1990-06-28 David J. MacKenzie <djm@gnu.org>
9222 * parser.c (parse_regex): Set fastmap and translate before
9225 1990-06-25 David J. MacKenzie <djm@gnu.org>
9227 * fastfind.c (fastfind): Initialize count to 0.
9229 * lib/updatedb.sh: Only do regex comparison on directories,
9232 * listfile.c (list_file): Truncate user and group name to 8 chars.
9234 1990-06-24 David J. MacKenzie <djm@gnu.org>
9238 * Makefile [DISTFILES]: Add COPYING.
9240 1990-06-22 David J. MacKenzie <djm@gnu.org>
9244 1990-06-19 David J. MacKenzie <djm@gnu.org>
9246 * lib/updatedb.sh: Prune entries that match PRUNEREGEX.
9247 Split up finding files from computing bigrams.
9248 Use redirection instead of nonportable grep -s to detect sort
9249 failure. Optionally search network filesystems as well as
9252 * pred.c (pred_regex): Match against full pathname instead of
9254 * util.c (basename): Return "/", not "", if given "/".
9256 * find.c (process_path): Fix error in handling "/" directory.
9258 1990-06-18 David J. MacKenzie <djm@gnu.org>
9260 * parser.c [STRSPN_MISSING] (strspn): New function.
9262 1990-06-17 David J. MacKenzie <djm@gnu.org>
9264 * listfile.c: New file.
9265 * parser.c (parse_ls): New function.
9266 * pred.c (pred_ls): New function.
9268 * find.c (main): Remove interface to fastfind, to prevent
9269 conflict with POSIX syntax.
9270 * util.c (usage): Remove fastfind syntax from message.
9271 * fastfind.c (main): New function.
9272 * Makefile: Make fastfind a separate program.
9274 * find.c (main): Print correct message if a predicate arg is
9277 * parser.c (insert_exec_ok): Make args that start with a ';' but
9278 contain other characters not terminate the command.
9280 1990-06-15 David J. MacKenzie <djm@gnu.org>
9282 * fstype.c: If MOUNTED isn't defined but MNT_MNTTAB is, use it
9283 instead. True for HP/UX, at least.
9285 1990-06-14 David J. MacKenzie <djm@gnu.org>
9287 * savedir.c: New file; now find won't run out of file
9288 descriptors in deep trees.
9289 * find.c (process_path): Use savedir.
9291 1990-06-09 David J. MacKenzie <djm@gnu.org>
9293 * parser.c (parse_permmask): Allow symbolic mode masks.
9294 (parse_perm): Free 'struct change' when done with it.
9295 (get_oct): Function removed.
9297 * find.c (process_path): Allow arbitrarily-long filenames.
9298 More efficient string copying. Initialize perm_mask to 07777
9301 1990-06-07 David J. MacKenzie <djm@gnu.org>
9303 * Makefile, find.c: Use DIRENT to control whether <dirent.h>
9306 1990-05-31 David J. MacKenzie <djm@gnu.org>
9308 * parser.c (parse_regex): New function.
9309 * pred.c (pred_regex): New function.
9311 * fstype.c (read_mtab): If mtab entry has a "dev=" option
9312 (like in SunOS 4.1), use it, so there is no need to stat the
9313 special file later on.
9314 (xatoi, strstr): New functions.
9316 1990-05-21 David J. MacKenzie <djm@gnu.org>
9318 * lib/updatedb.sh: Put BINDIR in PATH.
9320 * fstype.c: Do nothing if MNTENT_MISSING is defined.
9322 * fstype.c: New file.
9323 * parser.c (parse_fstype): New function.
9324 * pred.c (pred_fstype): New function.
9326 * parser.c (parse_newer): Failure to stat -newer file is a
9329 * pred.c (pred_ok): Flush output before reading. Use getchar
9332 * pred.c (pred_prune): Return false if -depth given.
9333 * find.c: Apply the predicates to the dir when -depth and
9336 1990-05-20 David J. MacKenzie <djm@gnu.org>
9338 * pred.c (pred_prune): Set new global var `stop_at_current_level'.
9339 * find.c (process_path): Test and reset it.
9341 1990-05-18 David J. MacKenzie <djm@gnu.org>
9343 * modechange.c, modechange.h: New files.
9344 * parser.c (parse_perm): Use mode_compile and mode_adjust to
9345 parse arg, to allow symbolic mode for POSIX.
9347 1990-05-17 David J. MacKenzie <djm@gnu.org>
9349 * parser.c (get_oct): Don't consider an empty string a valid number.
9351 * parser.c (parse_perm): If arg starts with '-', set flag bit
9352 for special comparison (POSIX).
9353 * pred.c (pred_perm): If flag bit set, compare s[ug]id &
9354 sticky bits as well, and return true if the given perms are
9355 set, ignoring other bits.
9357 * find.c: New global var `exit_status'. Use it. (POSIX)
9358 * parser.c: Set `exit_status' if lstat on -newer file fails.
9360 * fastfind.c: New file.
9361 * find.c (main): Call fastfind if given only 1 arg.
9362 * util.c (usage): Update message.
9363 * lib/{Makefile,updatedb.sh,bigram.c,code.c}: New files.
9364 * Makefile: Add 'all' and 'install' targets.
9366 1990-05-16 David J. MacKenzie <djm@gnu.org>
9368 * parser.c (parse_nogroup, parse_nouser): Implement.
9369 * pred.c (pred_nogroup, pred_nouser): Implement.
9371 1990-05-14 David J. MacKenzie <djm@gnu.org>
9373 * find.c: Add variable `stay_on_filesystem' for -xdev.
9374 (process_path): Take an arg determining whether this call is
9375 the root of a tree. Use lstat instead of stat. If
9376 stay_on_filesystem, don't process a dir on a different
9379 * parser.c (parse_newer): Use lstat instead of stat. Is this right?
9380 (parse_xdev): Set stay_on_filesystem.
9382 * parser.c: Add dummy parse_nogroup, parse_nouser,
9383 parse_prune, and parse_xdev; to be written later.
9384 * pred.c: Add dummy pred_nogroup, pred_nouser, pred_prune.
9386 * find.c: Support System V directory library/headers.
9388 * find.c (process_path): Don't continue with a file that stat
9391 * defs.h, parser.c, pred.c: Change 'u_long' and 'u_short' to
9392 'unsigned long' and 'unsigned short'.
9393 * find.c, defs.h: Remove 'convert_glob' variable.
9394 * parser.c (parse_fullregex): Function removed.
9395 (parse_name): Remove regular expression code.
9396 (parse_type): Recognize sockets.
9397 Add code to check for missing arguments to many parse_* functions.
9398 * pred.c (pred_name): Use glob_match instead of regex.
9400 1990-05-13 David J. MacKenzie <djm@gnu.org>
9402 * Replace fprintf, simple_error, and mem_error with error and
9405 * Fix string header includes for USG.
9407 1990-03-27 David J. MacKenzie <djm@gnu.org>
9409 * defs.h: Change some #defines to enums.
9411 1990-03-25 David J. MacKenzie <djm@gnu.org>
9413 * find.c (main): Don't take basename of argv[0].
9415 * util.c (xmalloc): New function.
9416 * find.c, parser.c, utils.c: Use xmalloc instead of malloc.
9418 * pred.c: Remove emulation of regex for BSD and use GNU
9419 library version in regcmp.c instead.
9420 * parser.c: Remove emulation of regcmp for BSD and use GNU
9421 library version in regcmp.c instead.
9422 * Makefile: Link with regex.o and regcmp.o.
9423 Add a DISTFILES macro and dist target.
9425 * Indent source code. Move RCS logs to this file.
9427 1990-03-21 David J. MacKenzie <djm@gnu.org>
9429 * xargs.c: Indent. Comment and rename some global variables.
9430 (main): Use getopt to parse options. Open new global var
9431 `tty_stream' to /dev/tty if querying requested.
9432 (print_args): Read response from tty_stream, not stdin.
9433 (xmalloc): New function.
9434 Global: Use xmalloc instead of malloc.
9435 (usage): Revise message.
9437 1987-02-22 Eric B. Decker <cire@soe.ucsc.edu>
9439 * pred.c: added guts to pred_size
9441 1987-02-22 Eric B. Decker <cire@soe.ucsc.edu>
9443 * pred.c: added guts to perm and permmask.
9445 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9447 * pred.c: made pred_name only look at the last component of
9450 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9452 * pred.c: added guts to name. useds regex and regcmp to do
9453 regular expression handling.
9455 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9457 * pred.c: added predicate newer
9459 1987-02-20 Eric B. Decker <cire@soe.ucsc.edu>
9461 * pred.c: added guts to pred_ok
9463 1987-02-19 Eric B. Decker <cire@soe.ucsc.edu>
9465 * pred.c: finished exec.
9467 1987-02-22 Eric B. Decker <cire@soe.ucsc.edu>
9469 * parser.c: added guts to parse_size
9471 1987-02-22 Eric B. Decker <cire@soe.ucsc.edu>
9473 * parser.c: added guts of perm and permmask. added getoct
9474 routine for perm and permmask
9476 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9478 * parser.c: added -fre, -fullregex predicate to turn off
9481 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9483 * parser.c: reworked name so the regexpr pattern includes $ at
9484 the end to force globbing to work correctly. End of the
9485 pattern refers to the end of the filename.
9487 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9489 * parser.c: added guts to name. uses a conversion from
9490 globbing to regexp format. uses regex and regcmp to actually
9493 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9495 * parser.c: added predicate newer
9497 1987-02-20 Eric B. Decker <cire@soe.ucsc.edu>
9499 * parser.c: added ok guts. consolidated exec and ok to using
9502 1987-02-19 Eric B. Decker <cire@soe.ucsc.edu>
9504 * parser.c: minor bug in -fulldays predicate parser. It
9505 should have set the flag full_days to true.
9507 1987-02-22 Eric B. Decker <cire@soe.ucsc.edu>
9509 * find.c: changed where we are setting perm_mask to -1. need
9510 to make sure that this happens before every apply_predicate.
9512 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9514 * find.c: added error checking for no paths. better error
9515 message if illegal ordering.
9517 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9519 * find.c: added global convert_glob
9521 1987-02-22 Eric B. Decker <cire@soe.ucsc.edu>
9523 * defs.h: added definition of BLKSIZE for size
9525 1987-02-21 Eric B. Decker <cire@soe.ucsc.edu>
9527 * defs.h: added global convert_glob for name
9531 Copyright (C) 1987, 1990, 1991, 1992, 1993, 1994, 1996, 1997,
9532 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008,
9533 2009, 2010 Free Software Foundation, Inc.
9535 Copying and distribution of this file, with or without
9536 modification, are permitted provided the copyright notice
9537 and this notice are preserved.