1 2008-03-08 Jim Meyering <meyering@redhat.com>
4 * doc/find-maint.texi (Security): s/ongest/longest/
5 (Making Releases): s/the the/the/
7 Avoid link failure with gcc -fno-common.
8 * find.c (program_name, starting_desc): Declare "extern".
10 2008-02-15 Eric Blake <ebb9@byu.net>
12 Avoid compiler warnings.
13 * find/pred.c (pred_name_common): Remove unused variable.
14 * locate/locate.c (print_stats): Avoid undefined format string.
16 2008-02-15 James Youngman <jay@gnu.org>
18 * README-CVS: Explain how to update the translations from the
21 * NEWS, configure.ac: Change release number to 4.3.14-CVS.
23 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25 * import-gnulib.config: Add progname.
27 * lib/Makefile.am (LDADD): Use @LIBINTL@ instead of @INTLLIBS@.
29 * xargs/xargs.1: Fix a couple of typos.
31 2008-02-12 James Youngman <jay@gnu.org>
33 Updated translations: German, Irish, Dutch, Polish, Vietnamese.
34 * po/de.po, po/ga.po, po/nl.po, po/pl.po, po/vi.po: Updated from
35 the Translation Project.
37 Fix Savannah bug #22056, -Xtime tests are off by one second.
38 * find/defs.h (struct options): Change cur_day_start from time_t
40 * find/util.c (set_option_defaults): Likewise.
41 * find/parser.c (get_relative_timestamp): Change the origin
42 argument from time_t to struct timespec.
43 (estimate_timestamp_success_rate): Ignore the nanoseconds field of
44 the timestamp when estimating the probable success rate.
45 (parse_daystart): Handle the nanoseconds field too.
46 (do_parse_xmin): The origin argument to get_relative_timestamp()
47 is of type struct timespec, not time_t.
48 (parse_used): Likewise.
49 (parse_time): Likewise.
50 * find/pred.c (pred_timewindow): in the COMP_EQ case, accept times
51 exactly at the end of the window and do not accept times exactly
52 at the start (reversing the previous treatment of the bounds).
53 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added test for
54 -mtime 0; find.posix/mtime0.{exp,xo}.
55 * NEWS: mention this bugfix.
57 2008-02-09 James Youngman <jay@gnu.org>
59 * doc/find.texi (xargs options): Moved documentation of xargs'
60 options into this new section.
61 (Invoking the shell from xargs): New section providing examples
62 about "xargs sh -c '...'".
64 * xargs/xargs.1: Indicate that the "sh -c" trick with xargs
65 achieves the same thing as BSD's "xargs -o", but in a more
68 * locate/updatedb.sh: Actually rename the old database to the new
69 one atomically, instead of just claiming the rename is atomic in a
70 comment :) This fixes Savannah bug #22057.
72 * find/find.c (ngettext): Introduce a new macro to help with
73 internationalising plurals. Use it to allow better
74 translations of format strings.
75 * locate/locate.c: Likewise.
77 2008-01-07 James Youngman <jay@gnu.org>
79 * xargs/xargs.c: (main): Standardise on "Warning" instead of
80 "warning" in messages.
82 * xargs/xargs.c: (add_proc): Use x2nrealloc to extend the pids
83 array, rather than doubling the size of the buffer (since the old
84 aproach was vulnerable to overflow).
86 Reap all available child processes before every fork. This fixes
88 * xargs/xargs.c: (proc_max): since this is a non-negative
89 quantity, make it unsigned.
90 (procs_executing): Likewise.
91 (pids_alloc): Likewise (using size_t).
92 (procs_executed): In order to prevent possible overflow, make this
93 a boolean, not a count. We only cared if the previous counter was
95 (add_proc): Set procs_executed to true rather than incrementing it.
96 (wait_for_proc): When called, always reap all available children.
97 Add an extra argument which is the minimum number of children we
98 must reap before returning.
99 (wait_for_proc_all): Pass the new extra argument.
100 (xargs_do_exec): Call wait_for_proc() to reap all available
101 children before forking a new child. Modify other calls to
102 wait_for_proc to pass the new extra argument.
103 * NEWS: Mention this change.
105 2007-12-20 James Youngman <jay@gnu.org>
107 * find/fstype.c, find/ftsfind.c, find/parser.c, find/pred.c,
108 find/tree.c, lib/regextype.c, locate/locate.c, xargs/xargs.c,
109 find.c: Backed out positional paremeter change, as the use of
110 positional parameters was over-complex and unnecessary. We'll
111 re-apply the pluralisation support change soon, but without the
112 positional parameters.
114 2007-12-20 Jakub Bogusz <qboosh@pld-linux.org> (tiny change)
116 * xargs/xargs.c (parse_num): Corrected typo in format string
119 2007-12-20 Clytie Siddall <clytie@riverland.net.au> (tiny change)
121 * find/find.c (wd_sanity_check): Corrected typo in the format
122 string for an error message, which might cause a crash in
123 "oldfind" if a directory we moved into turned out to be a symbolic
124 link that moved while we were trying to change directory.
126 2007-12-20 James Youngman <jay@gnu.org>
128 * configure.ac: Advance the version number, as we are moving on
132 2007-12-19 James Youngman <jay@gnu.org>
134 * find/find.c (ngettext): Introduce a new macro to help with
135 internationalising plurals. Use it with positional parameters in
136 order to allow better translations of format strings.
137 * find/fstype.c, find/ftsfind.c, find/parser.c, find/pred.c,
138 find/tree.c, lib/regextype.c, locate/locate.c, xargs/xargs.c: Likewise.
140 2007-12-19 Benno Schulenberg <coordinator@translationproject.org> (tiny change)
142 * find/find.1: Corrected two typos.
144 2007-12-19 James Youngman <jay@gnu.org>
146 * po/nl.po: Updated Dutch translation from the Translation project.
147 * po/pl.po: Likewise for the Polish translation.
148 * po/sv.po: Likewise for the Swedish translation.
149 * po/vi.po: Likewise for the Vietnamese translation.
151 2007-12-13 Eric Blake <ebb9@byu.net>
153 Allow bootstrapping with autoconf 2.61a.
154 * configure.ac (AC_AIX, AC_ISC_POSIX): Delete, now that gnulib
156 (jy_AC_TYPE_INTMAX_T): Delete, now that gnulib stdint module takes
159 2007-12-09 James Youngman <jay@gnu.org>
161 * doc/perm.texi: Updated from the upstream source.
163 * po/nl.po, po/pt.po: Updated from the Translation Project.
165 2007-12-08 James Youngman <jay@gnu.org>
167 * xargs/xargs.1: Added examples on stdin handling and more
168 efficient core file deletion.
169 * NEWS: Mention this.
171 * doc/.cvsignore: Ignore regexprops-generic.texi.
172 * doc/.gitignore: ditto
174 2007-12-04 James Youngman <jay@gnu.org>
176 Fix Savannah bug #15384, find misbehaves when parent directory is
178 * find/testsuite/find.posix/parent.exp: New test
179 * find/testsuite/find.posix/parent.xo: New test
180 * find/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO):
181 Added parent.exp, parent.xo.
182 * find/find.c (safely_chdir): If safely_chdir_nofollow fails with
183 SafeChdirFailDestUnreadable, fall back on safely_chdir_lstat.
185 * find/find.1: Formatting fixes; options should be in bold.
187 2007-12-02 James Youngman <jay@gnu.org>
189 Fix Savannah bug #20802, find -delete anomalies
190 * find/pred.c (pred_delete): Set find's exit status to nonzero if
192 * find/find.1 (-delete): Document this.
193 * doc/find.texi (Delete Files): Document this.
194 * NEWS: Mention the fix.
196 2007-11-30 James Youngman <jay@gnu.org>
198 Fix Savannah bug #20865 (-prune -delete without an explicit
199 -depth is now an error).
200 * find/parser.c (check_option_combinations): Diagnose the
201 situation where -delete and -prune are both used, because -delete
202 turns on -depth and -depth makes -prune do nothing.
203 * find/tree.c (build_expression_tree): call
204 check_option_combinations().
205 * find/defs.h (struct options): Add new boolean field
207 Also declare check_option_combinations.
208 * find/util.c (set_option_defaults): Initialise explicit_depth.
209 * NEWS: Mention this fix.
211 2007-11-29 James Youngman <jay@gnu.org>
213 Support the generation of regexprops-generic.texi.
214 * lib/regextype.h (get_regex_type_context): Used to indicate if a
215 particular type of regular expression is of interest for
216 regexprops.texi (which is findutils-specific) or
217 regexprops-generic.texi (which is not). The "context" is simply
218 a flag set in a word.
219 * lib/regextype.c (get_regex_type_context): Implement this.
220 (regex_map): Assign a context to each regular expression type.
221 * lib/regexprops.c: Use the context information from regextype.c
222 to decide which regular expression types to docuemnt in the
223 output. The selection is indicated on the command line; "generic"
224 and "findutils" are supported.
225 (copying): New function, which emits a copyright header into the
227 (comment): New function for emitting a comment.
228 (ignore): New function which returns nonzero when the indicated
229 type of regular expression is not of interest for this version of
231 (menu): Miss out the non-interesteing regex types.
232 (get_next): Returns the regex type name for the "next" pointer,
233 taking into account which regex types are ignored.
234 (describe_all): Take into account which regex types are ignored,
235 and emit a copying header also. Include a comment indicating
236 which "context" was of interest when generating the output.
237 * doc/Makefile.am: Add regexprops-generic.texi. Generate this
238 file from regexprops.c.
240 Check gnulib out with native git, rather than git-cvspserver.
241 This fixes Savannah bug #21568, for the second time.
242 * import-gnulib.config (gnulib_version): Switch to using a git
243 commit id and native git, since git-cvspserver silently fails to
244 support "cvs update -D".
245 * import-gnulib.sh (do_checkout): Check gnulib out with git rather
247 (main): Require 'git' to be available.
248 (move_cvsdir): Remove any pre-existing gnulib-cvs directory.
249 * doc/find-maint.texi (Using the GNU Portability Library): Desribe
250 how we now obtain gnulib. Update the instructions on how we patch
252 * .gitignore: Ignore gnulib-git, not gnulib-cvs
254 * Makefile.am (findutils-check-smells): Change from gnulib-cvs to
256 * README-CVS: Mention the extra dependency on git.
257 * NEWS: Mention this change.
259 Add test case for Savannah bug #20803 (-prune return value).
260 * find/testsuite/find.posix/prune-result.exp: New test for
262 * find/testsuite/find.posix/prune-result.xo: Expected otuput for
263 new test prune-result.exp.
264 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added
265 find.posix/prune-result.exp
266 (EXTRA_DIST_XO): Added find.posix/prune-result.xo
268 2007-11-27 James Youngman <jay@gnu.org>
270 * find/pred.c (pred_prune): Always return true. This fixes
272 * doc/find.texi (Directories): Document the change to -prune.
273 * find/find.1: Document the change.
274 * NEWS: Mention the fix.
276 2007-11-26 James Youngman <jay@gnu.org>
278 Fix Savannah bug #20970, handling of trailing slashes with -name.
279 * find/pred.c (pred_name_common): Strip trailing slashes from the
280 pathname before applying fnmatch() to it. This fixes Savannah bug
282 * find/testsuite/find.posix/nameslash.exp: Test case for bug #20970.
283 * find/testsuite/find.posix/nameslash.xo: Expected output file for
285 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Added nameslash.exp.
286 (EXTRA_DIST_XO): Added nameslash.xo.
288 Fix Savannah bug #21634, No copy of FDL1.2 included in source
290 * doc/find.texi: Change license to the GNU Free Documentation
292 (GNU Free Documentation License): Include fdl.texi
293 * doc/find-maint.texi (GNU Free Documentation License): Include a
294 copy of the FDL (it was already under this license).
295 * doc/Makefile.am (find_maint_TEXINFOS): Include fdl.texi
296 (find_TEXINFOS): Include fdl.texi
297 * import-gnulib.config (modules): Include gpl-3.0 and fdl.
299 * doc/perm.texi: Added copyright license, following the license of
300 the original source document (perm.texi from coreutils).
302 2007-11-25 James Youngman <jay@gnu.org>
304 * Makefile.am (jy-regex-fix): Comment that the regex.c fix needs
305 to stay until we no longer support Automate-1.9.
307 * doc/perm.texi (Mode Structure): Fix setgid/setuid typo.
309 2007-11-24 James Youngman <jay@gnu.org>
311 * doc/find.texi (Mode Bits): Correct the warning about the change
312 in behaviour of -perm /000 to indicate that the change has
313 happened now. This fixes Savannah bug #21628.
314 * NEWS: Mention this.
316 2007-11-22 James Youngman <jay@gnu.org>
318 POSIXLY_CORRECT turns off warnings.
319 * find/defs.h (struct options): Added member posixly_correct.
320 This is set when the POSIXLY_CORRECT environment variable is set.
321 * find/util.c (set_option_defaults): Set options.posixly_correct
322 if the POSIXLY_CORRECT environment variable is set.
323 (set_option_defaults): Turn off warnings when POSIXLY_CORRECT is
325 * find/find.1: Document this.
326 (Environment Variables): Likewise.
327 (Warning Messages): Likewise.
329 Non-POSIX compliant arguments to -perm generate an error when
330 POSIXLY_CORRECT is set.
331 * find/parser.c (parse_table): Indicate which primaries are
333 (non_posix_mode): New function; issues an error message when a
334 non-POSIX-compliant argument to -perm is used (and POSIXLY_CORRECT
336 (parse_perm): Call non_posix_mode when a non-POSIX-compliant mode
338 * find/testsuite/find.gnu/posix-perminvalid.exp: New file; tests
339 invalid arguments to -perm.
340 * find/testsuite/Makefile.am (EXTRA_DIST_EXP): Add
341 posix-perminvalid.exp.
342 * find/find.1: Document this.
343 * doc/find.texi (Mode Bits): Likewise
344 (Environment Variables): Likewise
347 * xargs/xargs.1: Options should be bold, not italic; filenames
348 should also be italic. OPTIONS should be a section, not a
349 subsection. In the description of --max-lines, "max-args" was
350 corrected to "max-lines". Turn off hyphenation in the SYNOPSIS
351 section. This fixes Savannah bug #21270.
353 2007-11-13 James Youngman <jay@gnu.org>
355 * NEWS, configure.ac: Prepare for the release of findutils-4.3.10.
357 * import-gnulib.sh (usage): If the existing CVS working tree for
358 gnulib in the source tree does not yet point at the
359 git-cvs-pserver repository, move the old gnulib working tree out
360 of the way and do a fresh checkout. This fixes Savannah bug
363 2007-11-11 James Youngman <jay@gnu.org>
366 * configure.ac: Prepared for release of findutils-4.3.9.
369 * po/POTFILES.in: Use gnulib/lib/getdate.y rather than
370 gnulib/lib/getdate.c, because the former is the source file, and
371 because without this change the update-po target of po/Makefile
374 * import-gnulib.config (gnulib_version): Move to gnulib
377 * po/hu.po, po/nl.po: Updated from Translation Project.
379 2007-09-08 James Youngman <jay@gnu.org>
381 Better documentation on $PATH security checks.
382 * doc/find.texi (Single File): Better explanation of what makes
383 certain values of $PATH insecure. This fixes Savannah bug
385 * find/find.1 (-execdir): Likewise.
387 Document interaction of -depth/-delete/-prune.
388 * doc/find.texi (Directories): Mention that "-prune ... -delete"
389 will not do what you want and will cause the deletion of more
390 files than you probably intended.
391 (Delete Files): Likewise, suggest using "-depth" when testing
392 command lines you plan to eventually add "-delete" to.
393 (Cleaning Up): Add -depth explicitly to an example which uses
395 * find/find.1 (-depth): Mention that -delete also implies -depth.
396 (-delete): Warn against putting -delete first.
397 (-prune): Also warn against -prune ... -delete.
398 NEWS: Mention these changes.
400 2007-08-23 Eric Blake <ebb9@byu.net>
402 Pick up gnulib change to getline module.
403 * import-gnulib.config (gnulib_version): Bump date.
404 * locate/bigram.c: Use <stdio.h>, not getline.h.
405 * locate/code.c: Likewise.
406 * locate/frcode.c: Likewise.
407 * locate/locate.c: Likewise.
409 * po/ChangeLog: Delete, merge into this file.
411 2007-08-23 James Youngman <jay@gnu.org>
413 * po/nl.po: Updated from Translation Project
415 * find/parser.c (check_path_safety): Assume the path is safe is
416 $PATH is not set. This avoids a segfault in that situation
417 and thus fixes Savannah bug #20834.
419 2007-08-22 James Youngman <jay@gnu.org>
421 * find/parser.c (parse_path): This is the 'canonical' name once
423 (parse_wholename): This is not.
424 (parse_ipath): No longer deprecated.
425 * NEWS: Mention this.
427 2007-08-22 Eric Blake <ebb9@byu.net>
429 Fix Savannah bug #20871.
430 * find/find.c (main): Remove bogus assertion.
431 * NEWS: Document the fix.
433 Update to recent gnulib addition of idcache.h.
434 * lib/listfile.c (getuser, getgroup): Use header rather than
435 declaring things ourself.
436 * po/POTFILES.in (locate/frcode.c): Add missing file.
438 2007-08-21 Eric Blake <ebb9@byu.net>
440 Fix for Savannah bug #20273, find -ok with seekable stdin.
441 * find/find.c (main): Use close_stdin, not close_stdout.
442 * import-gnulib.config (gnulib_version): Pick up yesno tests.
443 * NEWS: Document the change.
444 * build-aux/.cvsignore: Ignore compile.
446 2007-08-20 Paul Eggert <eggert@cs.ucla.edu>
447 and Eric Blake <ebb9@byu.net>
449 Improve translation of xstrtol messages.
450 * import-gnulib.config (destdir): Upgrade gnulib to 2007-08-11.
451 * locate/locate.c (dolocate): Adjust to API change of xstrtol
453 * po/POTFILES.in: Likewise.
454 * NEWS: Document the enhancement.
456 2007-08-20 James Youngman <jay@gnu.org>
458 * doc/find.texi (Directories): Clarify that built commands which
459 have not been executed yet will be executed before find quits,
460 even with -quit. Also clarify the difference between -prune and
463 2007-08-18 Eric Blake <ebb9@byu.net>
465 Fix Savannah bug #20751.
466 * lib/listfile.c (list_file): Accomodate gnulib change of 3 Jul
468 * NEWS: Document this.
469 Reported by Nigel Stepp.
470 * THANKS: Sort and update.
471 * AUTHORS: Add myself.
473 2007-08-05 Eric Blake <ebb9@byu.net>
475 Fix Savannah bugs #20662, #20688.
476 * find/find.c (at_top): Avoid memory leak.
477 * find/pred.c (do_fprintf, pred_iname, pred_name): Likewise.
478 (pred_name_common): New function, factored from pred_iname and
480 * find/parser.c (check_name_arg): Let -nowarn silence -name /.
481 * locate/locate.c (visit_basename): Avoid memory leak.
482 * NEWS: Document the changes.
483 * doc/find.texi (Warning Messages): Document -nowarn's effect on
485 * find/testsuite/find.gnu/name-slash.exp: New test, to ensure
486 20662 doesn't regress on '-name /', and that 20688 silences the
488 * find/testsuite/find.gnu/printf-slash.exp: Likewise.
489 * find/testsuite/find.gnu/name-slash.xo: Expected results.
490 * find/testsuite/find.gnu/printf-slash.xo: Likewise.
491 * find/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
492 Distribute new tests.
494 2007-07-31 Eric Blake <ebb9@byu.net>
496 Allow choice of default arg size, Savannah bug #20594.
497 * configure.ac (DEFAULT_ARG_SIZE): Check environment for a default
499 * lib/buildcmd.c (bc_use_sensible_arg_max): Use default size from
500 configure, if requested.
501 * README (DEFAULT_ARG_SIZE): Mention the ability to tune this at
503 * NEWS: Document the change.
505 2007-07-29 James Youngman <jay@gnu.org>
507 * po/tr.po: Updated from Translation Project.
509 2007-07-26 Eric Blake <ebb9@byu.net>
511 * doc/.cvsignore: Ignore more generated documentation.
513 2007-07-23 Eric Blake <ebb9@byu.net>
515 * find/parser.c (parse_version): Avoid compiler warning.
516 * locate/code.c (includes): Likewise.
518 2007-07-22 Eric Blake <ebb9@byu.net>
520 * po/POTFILES.in: Add lib/findutils-version.c.
522 2007-07-22 James Youngman <jay@gnu.org>
524 * find/find.1: Corrected a number of typos and fixed up the
525 alphabetical section ordering. This fixes Savannah bug #20552.
527 Version banners now comply with the GNU coding standard.
528 * find/parser.c (parse_version): Use display_findutils_version()
529 instead of printing the information manually. Don't include
530 gnulib-version.h since we no longer directly use that header.
531 * lib/findutils-version.c: Added
532 * lib/findutils-version.h: Added
533 * import-gnulib.config (modules): Added version-etc and
535 * lib/Makefile.am (libfind_a_SOURCES): added findutils-version.c.
536 * find/version.c: Removed
537 * find/Makefile.am: Remove version.c
538 * locate/Makefile.am: Don't link ../find/version.o
539 * xargs/Makefile.am: Ditto
540 * xargs/xargs.c (main): Use display_findutils_version()
541 * locate/code.c (main): Ditto
542 * locate/frcode.c (main): Ditto
543 * locate/locate.c (dolocate): Ditto
544 * locate/updatedb.sh (version): Display copyright information in
545 the right format. Also ensure that we exit with a nonzero status
546 if there was an output error for --help and --version.
547 * find/testsuite/config/unix.exp (find_version): Adjust for
548 --version format change
549 * locate/testsuite/config/unix.exp (locate_version): Ditto
550 * xargs/testsuite/config/unix.exp (xargs_version): Ditto
551 * NEWS: Mention the change
553 2007-07-19 Eric Blake <ebb9@byu.net>
555 * po/POTFILES.in: Update to reflect current location of
556 translatable strings.
558 2007-07-17 Eric Blake <ebb9@byu.net>
560 Ensure 'make distcheck' can pass on cygwin.
561 * configure.in: Rename...
562 * configure.ac: ...to this, to match automake recommendations.
563 * NEWS: Add release dates.
564 * doc/find-maint.texi: Remove trailing whitespace.
565 (Documentation): Document where release dates are usefully
567 * locate/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Be
569 * .cvsignore: Ignore 'make dist' files.
570 * po/.cvsignore: Ignore remove-potcdate.sed.
572 2007-07-14 Eric Blake <ebb9@byu.net>
574 * import-gnulib.config (gnulib_version): Bump date, to pick
575 up fix in canonicalize module testing.
577 2007-07-06 James Youngman <jay@gnu.org>
579 * po/uk.po, po/nl.po, po/vi.po: Updated from Translation Project.
581 2007-07-04 James Youngman <jay@gnu.org>
583 * NEWS: Fixed typos in description of bugfix for bug #20310.
585 2007-07-03 James Youngman <jay@gnu.org>
587 Fix Savannah bug #20310.
588 * m4/nullsort.m4: If we are cross compiling, assume "sort -z" does
589 not work on the target.
591 Manpage improvements.
592 * find/find.1: More consistent use of quotation marks.
593 * locate/locate.1 (HISTORY): New section.
595 2007-07-02 James Youngman <jay@gnu.org>
597 * import-gnulib.sh: (run_gnulib_tool): Don't pass --gpl3 to
598 gnulib-tool, since the program does not have that option (that was
599 a local change which proved not to be necessary).
602 * COPYING: Migrate to version 3 of the GNU General Public license.
604 * build-aux/check-testfiles.sh: ditto
605 * build-aux/src-sniff.py: ditto
606 * debian/copyright: ditto
607 * doc/find-maint.texi: ditto
610 * find/finddata.c: ditto
611 * find/fstype.c: ditto
612 * find/ftsfind.c: ditto
613 * find/parser.c: ditto
615 * find/testsuite/config/unix.exp: ditto
618 * import-gnulib.config: ditto
619 * import-gnulib.sh: ditto
620 * lib/buildcmd.c: ditto
621 * lib/buildcmd.h: ditto
622 * lib/dircallback.c: ditto
623 * lib/dircallback.h: ditto
624 * lib/extendbuf.c: ditto
625 * lib/extendbuf.h: ditto
626 * lib/forcefindlib.c: ditto
627 * lib/gnulib-version.h: ditto
628 * lib/listfile.c: ditto
629 * lib/listfile.h: ditto
630 * lib/modetype.h: ditto
631 * lib/nextelem.c: ditto
632 * lib/nextelem.h: ditto
633 * lib/printquoted.c: ditto
634 * lib/printquoted.h: ditto
636 * lib/regexprops.c: ditto
637 * lib/regextype.c: ditto
638 * lib/regextype.h: ditto
639 * lib/savedirinfo.c: ditto
640 * lib/savedirinfo.h: ditto
641 * lib/strspn.c: ditto
643 * lib/waitpid.c: ditto
644 * locate/bigram.c: ditto
645 * locate/code.c: ditto
646 * locate/frcode.c: ditto
647 * locate/locate.c: ditto
648 * locate/locatedb.h: ditto
649 * locate/testsuite/config/unix.exp: ditto
650 * locate/updatedb.sh: ditto
651 * locate/word_io.c: ditto
652 * po/fetch-po-files: ditto
653 * xargs/testsuite/config/unix.exp: ditto
654 * xargs/xargs.c: ditto
657 * doc/find.texi (Deleting Files): Fixed a typo.
658 (Deleting Files): Likewise.
660 New worked example for find.
661 * doc/find.texi (Copying A Subset of Files): Added a new worked
664 * doc/find.texi (Updating A Timestamp File): Indicate that %A@ now
665 includes a sub-second part on many systems.
667 Include <fcntl.h> unconditionally.
668 * import-gnulib.config (modules): Also use the fcntl module.
669 * find/find.c: #include <fcntl.h> unconditionally, since
670 gnulib provides it if it is absent.
671 * find/fstype.c: Likewise.
672 * find/ftsfind.c: Likewise.
673 * find/parser.c: Likewise.
674 * find/util.c: Likewise.
675 * locate/locate.c: Likewise.
677 2007-06-30 Eric Blake <ebb9@byu.net>
679 * find/pred.c (pred_timewindow): Avoid gcc warnings.
680 (format_date): Likewise.
681 * find/tree.c (calculate_derived_rates): Likewise.
682 * locate/word_io.c (getword): Likewise.
684 2007-06-30 James Youngman <jay@gnu.org>
686 * find/find.1 (EXAMPLES): Added an example of using find and cpio -p
687 to copy a directory tree, with pruning and omitted files.
689 * find/pred.c (format_date): Use verify_true for constant
690 conditions rather than assert.
691 * xargs/xargs.c (main): Ditto.
693 Enhancements to the code smell detector.
694 * Makefile.am (findutils-check-smells): Automate the calling of
695 build-aux/src-sniff.py.
696 * build-aux/src-sniff.py: Rework to use a list of regex-based
697 sniffers, to allow checking types of file other than C. Allow
698 file-based regex sniffers to give an indication of the line number
699 where they think the problem (or part of the problem) exists.
700 Added code smell detectors for a sample Bourne shell problem and
701 for out-of-date FSF addresses.
703 * find/tree.c (get_pred_cost): Eliminate unused variable.
705 Fix Savannah bug #20263 in a more portable way.
706 * find/tree.c (cost_table_comparison): Avoid casting function
707 pointers to poiter-to-object, since this is not portable (or
708 of course conforming). Instead, use memcmp().
710 2007-06-28 Eric Blake <ebb9@byu.net>
712 * import-gnulib.sh (run_gnulib_tool): Speed operation when
713 updating an existing tree.
715 Allow 'make check' to work without prior 'make all'.
716 * find/Makefile.am (SUBDIRS): Build in . before testsuite.
717 * locate/Makefile.am (SUBDIRS): Likewise.
718 * xargs/Makefile.am (SUBDIRS): Likewise.
720 Fix Savannah bug #20273, xargs -E with seekable stdin.
721 * import-gnulib.config (modules): Sort, add closein.
722 * xargs/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO)
723 (EXTRA_DIST_XI): Add new test.
724 * xargs/testsuite/config/unix.exp (xargs_start): Support optional
725 argument to allow test to run a subshell.
726 * xargs/testsuite/inputs/sv-bug-20273.xi: New file.
727 * xargs/testsuite/xargs.posix/sv-bug-20273.xo: Likewise.
728 * xargs/testsuite/xargs.posix/sv-but-20273.exp: Likewise.
729 * xargs/xargs.c (main): Use close_stdin, not close_stdout.
730 * NEWS: Document the fix.
732 2007-06-27 James Youngman <jay@gnu.org>
734 Added a maintenance manual.
735 * doc/find-maint.texi: New file.
736 * doc/Makefile.am (info_TEXINFOS): Added doc/find-main.texi.
737 * doc/find.texi (Introduction): Fixed typo.
739 2007-06-26 Eric Blake <ebb9@byu.net>
741 * import-gnulib.config (modules): Allow ./configure
744 2007-06-26 James Youngman <jay@gnu.org>
746 * build-aux/src-sniff.py: Detect uses of struct stat where the
747 header file was not included.
748 * find/find.c: Fix this, and uses of assert without a following
749 space (the coding standard requires a space, but there are still
750 a number of cases where other functions are called with no
752 * find/fstype.c: Ditto.
753 * find/ftsfind.c: Ditto.
754 * find/parser.c: Ditto.
755 * find/pred.c: Ditto.
756 * find/tree.c: Ditto.
757 * find/util.c: Ditto.
758 * lib/buildcmd.c: Ditto.
759 * lib/buildcmd.h: Ditto.
760 * lib/extendbuf.c: Ditto.
761 * locate/frcode.c: Ditto.
762 * locate/locate.c: Ditto.
763 * locate/word_io.c: Ditto.
764 * xargs/xargs.c: Ditto.
766 * find/tree.c (cost_table_comparison): Avoid < comparison between
767 function pointer types. Instead cast the function pointers to
768 (const void*). Both alternatives are undefined C, but the former
769 actually fails to compile on some systems. This fixes Savannah
771 * NEWS: mention the fix
773 * find/tree.c (calculate_derived_rates): Removed assignment to
774 rate variable following an assert(0) call, which had been added to
775 silence a "used before initialised" warning, and replace it with a
776 call to abort, which (a) correctly halts execution if _NDEBUG is
777 defined and (b) more accurately documents what's happening.
779 * find/parser.c (get_stat_Ytime): Removed redundant call to abort.
781 * find/util.c (debug_stat): For consistency, use assert (0) rather
784 2007-06-26 James Youngman <jay@gnu.org>
786 * README-alpha: Mention the findutils-patches mailng list and the
787 archives for findutils-patches and bug-findutils.
789 * po/bg.po: Updated from Translation Project.
791 2007-06-25 James Youngman <jay@gnu.org>
793 * po/sv.po: Updated Swedish translation.
795 2007-06-24 James Youngman <jay@gnu.org>
797 * build-aux/.gitignore, debian/.gitignore, doc/.gitignore,
798 find/.gitignore, find/testsuite/.gitignore, .gitignore,
799 lib/.gitignore, locate/.gitignore, locate/testsuite/.gitignore,
800 m4/.gitignore, po/.gitignore, xargs/.gitignore,
801 xargs/testsuite/.gitignore: New files to make it more painless to
802 track findutils sources with git.
804 * NEWS: Mention the previous change to doc/find.texi.
806 2007-06-23 James Youngman <jay@gnu.org>
808 * doc/find.texi (Introduction): Recommend that people check they
809 are using the latest version before reporting a bug.
811 2007-06-22 James Youngman <jay@gnu.org>
813 Better documentation for the fractional part of seconds fields for
814 -printf and similar actions.
815 * doc/find.texi (Time Components): Point out that the seconds
816 field of the timestamp is often printed out with a fractional part
817 of unspecified length and precision. The '%Tc' field has no
819 (Combined Time Formats): Point out the same thing for '%T@'.
820 * find/find.1 (%A): Point out the same thing.
821 * NEWS: Mention these changes.
823 Fix various lint-type complaints taken from the rules in the
824 coreutils Makefile.maint file (see build-aux/src-sniff.py).
825 * xargs/xargs.c: Removed unnecessary parentheses in "#if defined"
827 (main): Don't cast the return value of xmalloc.
828 (add_proc): Don't cast the return value of xmalloc.
829 * lib/regextype.c: Don't include quotearg.h, we don't need it.
830 * lib/dircallback.c, lib/nextelem.c, lib/prontquoted.c,
831 lib/qmark.c, lib/strspn.c, lib/waitpid.c: Assume config.h is available.
832 * lib/extendbuf.c: Ditto
833 * lib/listfile.c: Ditto. Also removed unnecessary parentheses in
834 "#if defined" checks.
835 (get_link_name): Don't cast the result of xmalloc.
836 * lib/bigram.c: Removed unnecessary parentheses in "#if defined"
838 * lib/savedirinfo.c: Assume config.h is available. Also removed
839 unnecessary parentheses in "#if defined" checks.
840 * lib/buildcmd.c (bc_do_insert): Don'tcast the result of xmalloc().
841 * find/tree.c (build_expression_tree): Don't cast the argument to free().
842 * find/ftsfind.c (set_close_on_exec): Removed unnecessary
843 parentheses in "#if defined" checks. Also changed "filesystem" ->
845 * find/util.c (check_nofollow): Removed unnecessary parentheses in
846 "#if defined" checks.
847 * find/parser.c (estimate_fstype_success_rate): ditto.
848 (insert_regex): Do not cast the result of xmaloc(). Removed unnecessary
849 parentheses in "#if defined" checks. Also changed "filesystem" ->
852 * find/find.c: "the the" -> "the", "filesystem" -> "file system"
853 * find/fstype.c: "filesystem" -> "file system" (in comments and
855 * locate/frcode.c: Removed unnecessary parentheses in "#if
857 * locate/locate.c (search_one_database): Don't cast the return
859 (dolocate): Mark error message for translation.
861 2007-06-21 Eric Blake <ebb9@byu.net>
863 * locate/.cvsignore: Ignore dblocation.texi.
864 * build-aux/.cvsignore: Ignore Makefile.
865 * locate/locate.c (set_max_db_age): Fix typo in error message.
867 2007-06-19 Eric Blake <ebb9@byu.net>
869 Fix compilation on cygwin, Savannah bug #20210.
870 * import-gnulib.config (gnulib_version): Import strcasestr and
871 updated canonicalize-lgpl-tests.
872 * lib/dircallback.c (includes): Track gnulib changes.
874 2007-06-14 James Youngman <jay@gnu.org>
876 * find/parser.c (parse_time): Use the variable comp, which holds
877 the planned comparison type, rather than the structure tval, which
878 has not been initialised yet and contains a random value. This
879 fixes Savannah bug #20139.
880 * NEWS: Mention the bugfix.
882 2007-06-13 James Youngman <jay@gnu.org>
884 * po/pl.po: Updated Polish translation.
886 2007-06-12 James Youngman <jay@gnu.org>
890 * find/find.1 (HISTORY): Document when the find tests -readable,
891 -writable, -executable and the option -regextype were introduced.
893 2007-06-12 Nix <nix@esperi.org.uk> (trivial change)
895 * locate/locate.c (drop_privs): Use groups[0] rather than
896 groups[1], since groups[] is a one-element array. This is a
897 buffer overrun affecting root only. In theory it could affect
898 setuid installations, but I (James Youngman) cannot find an explot
899 mechanism for it. This fixes Savannah bug#20157.
900 * NEWS: Mention this fix.
902 2007-06-12 James Youngman <jay@gnu.org>
904 Make the test suite work when run as root.
905 * find/testsuite/config/unix.exp (fs_superuser): Abstract out the
906 check which discovers if we have superuser privileges on the
907 filesystem (taken from access.exp).
908 * find/testsuite/find.gnu/access.exp: Call fs_superuser.
909 * find/testsuite/find.gnu/fprint-unwritable.exp: Use fs_superuser.
911 * po/vi.po, ga.po, nl.po: Updated translations
912 * po/findutils.pot: Updated template file
914 2007-06-09 James Youngman <jay@gnu.org>
918 Check that we can correctly read old-format databases which are
919 big-endian or little endian.
920 * locate/testsuite/config/unix.exp (locate_from_db): New function;
921 supports testing locate against a provided database.
922 * locate/testsuite/locate.gnu/bigendian.exp: New test; make sure
923 we can read an old-format big-endian database.
924 * locate/testsuite/locate.gnu/bigendian.xo: Expected output from
926 * locate/testsuite/locate.gnu/littleendian.exp: New test; make sure
927 we can read an old-format little-endian database.
928 * locate/testsuite/locate.gnu/locateddb.old.powerpc.xi: Old format
929 big endian database file, for supporting bigendian.exp.
930 * locate/testsuite/locate.gnu/littleendian.xo: Expected output from
931 littleendian.exp test.
932 * locate/testsuite/locate.gnu/locateddb.old.x86.xi: Old format
933 little endian database file, for supporting littleendian.exp.
934 * locate/testsuite/Makefile.am: Distribute littleendian.exp,
935 bigendian.exp and related .xi and .xo files.
938 * doc/find.texi (Size Directives): Compare %b with %s/512, not
939 %s/1024. This fixes (again) Savannah bug #19596.
940 * NEWS: mention the fix.
942 Avoid using the non-portable function putw().
943 * locate/locatedb.h: Declare putword().
944 * locate/frcode.c: Include <stdbool.h> as locatedb.h now requires
946 * locate/code.c (main): Use putword() rather than putw(), because
947 the latter was removed from SUSv3. This fixes Savannah bug #19980.
948 Also include <stdbool.h> as locatedb.h now requires this.
949 * locate/word_io.c (putword): Define the new function putword.
951 Ensure that <config.h> is included before any system header
952 * find/defs.h: Do not include <config.h> from "defs.h". Instead
953 just complain if it was not already included, since it needs to
954 be included first of all, even before system headers (in case
955 gnulib had replaced a system header). Check
956 ALREADY_INCLUDED_CONFIG_H to determine this.
957 * configure.in: Always define ALREADY_INCLUDED_CONFIG_H in
959 * find/find.c: Include config.h before defs.h.
960 * find/finddata.c: ditto.
961 * find/fstfind.c: ditto.
962 * find/parser.c: ditto.
963 * find/pred.c: ditto.
965 * find/tree.c: ditto (fixing Savannah bug #20128).
967 * m4/noreturn.m4 (jy_AC_ATTRIBUTE_NORETURN): Use AC_LANG_PROGRAM
968 inside AC_COMPILE_IFELSE.
970 * doc/find.texi (Security Considerations for locate): Discuss in
971 detail the buffer overrun when reading old-format locate
972 databases. This is CVE reference CVE-2007-2452.
974 2007-06-05 James Youngman <jay@gnu.org>
976 Guess the byte-order of old-format locate databases.
977 * locate/word_io.c (getword): Make the endian_state_flag parameter
978 an enum rather than an int. If we are in the initial ("don't
979 know") byte-order guessing state and the swapped value is out of
980 range, use this as evidence that the byte order is native.
981 * locate/locatedb.h: Declare getword accordingly.
982 * locate/locate.c (struct process_data): Added endian_state
983 member, which remembers for us what the big/little endian order
984 guessing state is when we read an old-format database.
985 (visit_old_format): Use the procdata.endian_state rather than a
986 local variable, so that the information can persist across calls.
987 (i_am_little_endian): Locate figures out if we needed to byteswap
988 the words in an old-format database, but that is an implementation
989 detail. Therefore we figure out our own byte order so that we can
990 produce a more relevant message for --statistics. The
991 i_am_little_endian() returns nonzero if the current host has
992 little-endian byte order.
993 (search_one_database): Report the byte-order of old-format
996 2007-06-04 James Youngman <jay@gnu.org>
998 * locate/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
999 Added old_prefix.exp and old_prefix.xo, a new test case for long
1000 shared rpefixes with the old database format.
1002 * locate/locate.c (visit_old_format): Use getword() from word_io.c
1003 instead of getw(), because getw() is not in POSIX.
1004 * locate/word_io.c: New file, providing replacement for getw().
1005 * locate/locatedb.h: Declare getword()
1006 * locate/Makefile.am (locate_SOURCES): Added word_io.c
1008 * locate/testsuite/config/unix.exp (locate_start): Make the
1009 failure messages slightly more explicit; indicate what went wrong
1012 2007-06-03 James Youngman <jay@gnu.org>
1014 * locate/locate.c (visit_old_format, extend, toolong): Extend the
1015 buffer used to build the current pathname when reading an
1016 old-format database. The new function extend is called to do
1017 this. The new function toolong is called to report a fatal error
1018 when the buffer size would otherwise exceed SIZE_MAX. This fixes
1019 Savannah bug #20014, which is a security-related problem with the
1020 CVE identifier CVE-2007-2452.
1022 * configure.in: Determine if the setgroups function is available,
1023 and set HAVE_SETGROUPS if so.
1024 * locate/locate.c (drop_privs): Call setgroups() only if
1025 HAVE_SETGROUPS indicates that it is available. This fixes
1026 Savannah bug #19981.
1028 * po/vi.po: Updated Vietnamese translation
1030 2007-05-31 James Youngman <jay@gnu.org>
1032 * find/parser.c (parse_time): Once we have determined the
1033 comparison type, restore the original time argument since
1034 get_relative_timestamp() also wants to see it. This fixes
1035 Savannah bug #20005.
1037 * po/findutils.pot, ga.po, pt.po, tr.po, pl.po: updated from the TP
1040 2007-05-31 Jakub Bogusz <qboosh@pld-linux.org> (trivial change)
1042 * find/parser.c (parse_group): Correct typo in error message.
1043 (check_path_safety): same
1045 2007-05-27 James Youngman <jay@gnu.org>
1047 * import-gnulib.config (modules): Import sys_stat.
1048 (gnulib_version): Update to 2007-05-26. This fixes a compilation
1049 error in stdlib.h with the DEC C compiler. This fixes Savannah
1052 * find/parser.c (safe_atoi): New function, like atoi, but which
1053 calls error(1, ...) when the argument is invalid or out of range.
1054 (parse_group): Use safe_atoi.
1055 (insert_depthspec): Use safe_atoi
1056 (parse_user): Use safe_atoi
1058 * configure.in: Check for fabs in libm (fixing a compilation error
1061 * import-gnulib.config (modules): Import the wcwidth module to
1062 provide it on those systems (such as BeOS) which lack it.
1064 * find/pred.c (file_sparseness): If st_blocks is not present in
1065 struct stat, the file has a sparseness of 1.0.
1067 * doc/find.texi (Size Directives): Document the %S format
1068 directive for -printf.
1070 * find/pred.c (mode_to_filetype): Don't use S_IFSOCK on systems
1071 which lack that macro. POSIX systems are allowed to lack
1072 sockets (it's an XSI extension).
1073 (file_sparseness): If struct stat lacks st_blocks, assume all
1074 files have a spearseness of 1.0.
1076 * import-gnulib.config (modules): Import fchdir inorder to fix an
1077 undefined-symbol error for fchdir on BeOS.
1079 2007-05-26 James Youngman <jay@gnu.org>
1081 Code refactoring in locate.
1082 * locate/locate.c (visit): New function, into which we factor out
1083 the traversal of the inspector list.
1084 (process_simple): Use visit().
1085 (process_or): Use visit().
1086 (process_and): Use visit().
1088 Speed improvements in locate for unibyte locales.
1089 * locate/locate.c (visit_substring_match_nocasefold_wide): Renamed
1090 from visit_substring_match_nocasefold.
1091 (visit_substring_match_casefold_wide): Renamed from
1092 visit_substring_match_casefold.
1093 (visit_substring_match_casefold_narrow): Special case of
1094 visit_substring_match_casefold_wide which we use for unibyte
1095 locales; we use strcasestr() rather than mbscasestr().
1096 (visit_substring_match_nocasefold_narrow): Ditto, using strstr()
1097 instead of mbsstr().
1099 * find/parser.c (parse_gid): Return an explicit boolean constant
1100 rather than automatically converting from a pointer, because the
1101 gnulib substitute for bool (or _Bool) in c89 environments lacking
1102 bool does not support that conversion. One affected system is Sun
1103 WorkShop Compilers 5.0 98/12/15 C 5.0 on Solaris 7. This is
1104 Savannah bug #19970, reported by Nelson Beebe.
1105 (parse_inum): Ditto.
1106 (parse_links): Ditto.
1108 (check_path_safety): declarations need to go before code, not
1109 interspersed. Move declaration of char* s.
1111 * xargs/testsuite/xargs.posix/rc-125.exp: Explain Savannah bug
1112 #19969. This bug is not yet fixed.
1114 * find/defs.h: #include <stdint_.h>, for uintmax_t. This should
1115 fix a compilation error on DEC C V5.9-005 on Digital UNIX V4.0F
1116 (Rev. 1229). This is Savannah bug #19965, reported by Nelson
1119 * find/defs.h: Don't include <errno.h>, since it is not needed in
1120 the header file itself. The "extern int errno;" declaration is
1122 * find/parser.c: Include <errno.h>
1124 * find/util.c: Ditto
1126 2007-05-24 James Youngman <jay@gnu.org>
1128 * find/util.c (check_nofollow): If O_NOFOLLOW is defined but 0,
1129 act as if it is undefined. This should prevent a runtime
1130 assertion failure on IRIX 6.5. This fixes Savannah bug #19948,
1131 reported by Nelson Beebe.
1133 * m4/noreturn.m4: New file, testing for support of __attribute__
1134 ((__noreturn__)). Defines jy_AC_ATTRIBUTE_NORETURN and sets
1135 HAVE_ATTRIBUTE_NORETURN.
1136 * configure.in: Call jy_AC_ATTRIBUTE_NORETURN.
1137 * find/defs.h (ATTRIBUTE_NORETURN): Define to nothing if
1138 HAVE_ATTRIBUTE_NORETURN is not set in config.h. This should fix a
1139 compilation error with non-GCC compilers. This is Savannah bug
1140 #19967, reported by Nelson Beebe.
1142 * configure.in (FINDLIBS): Update FINDLIBS to link against -lm for
1143 modf. This fixed a link error on HP-UX. This fixes Savannah
1144 bug #19966, reported by Nelson Beebe.
1145 * find/Makefile.am (LDADD): Use @FINDLIBS@
1147 2007-05-21 James Youngman <jay@gnu.org>
1151 * build-aux/Makefile.am (EXTRA_DIST): Added man-lint.sh.
1153 * locate/locate.c (drop_privs): pass the correct list of groups to
1154 setgroups(). Previously, if root invoked locate, their group ID
1155 would have been set to a random value. The same bug also caused
1156 an array overrun past the end of the local array groups[]. The
1157 variable which gets overwritten by the buffer overrun on x86 is
1158 'what'. The value of that variable is always changed before it is
1159 used, and so I believe that this buffer overrun will not cause a
1160 crash. The only effect of the bug therefore would be for locate
1161 to change group to a random group ID since groups[0] is
1162 uninitialised. On my test system this random group ID is 0
1163 anyway. The effect does not depend on any externally-controllable
1164 information, so it is unlikely this is exploitable. This bug is
1165 detailed as bug# 19923.
1167 2007-05-19 James Youngman <jay@gnu.org>
1169 * find/find.1: Spurious .R directives (.R is not a directive)
1170 should be .B. This fixes Savannah bug #19871.
1171 * build-aux/man-lint.sh: New file; verifies that the specified
1172 manual pages do not provoke error messages from troff. This is
1173 used to detect further occurrences of Savannah bug #19871.
1174 * find/Makefile.am (dist-hook): Run findutils-check-manpages,
1175 which invokes man-lint.sh.
1176 * locate/Makefile.am (dist-hook): ditto
1177 * xargs/Makefile.am (dist-hook): ditto
1179 * .cvsignore: Ignore ylwrap, which automake-1.10 wants us to have
1180 a copy of for some reason
1182 * import-gnulib.sh (main): New option -a which just runs the
1183 autotools without reimporting gnulib.
1185 * Makefile.am (jy-regex-fix): The previous explanatory comment
1186 refers to the jy-regex-fix target, not to dist-hook, so it has
1189 2007-05-08 James Youngman <jay@gnu.org>
1191 * find/defs.h (struct predicate.args): str is now const.
1193 * find/parser.c (get_comp_type): get_comp_type now takes a const
1196 (get_relative_timestamp): ditto. Also use collect_arg().
1197 (collect_arg_stat_info): New function; collects a command-line
1198 argument and returns its xstat information, in one go.
1199 error(1,...) is called if the stat fails.
1200 (parse_anewer): Use collect_arg().
1201 (parse_cnewer): ditto
1202 (parse_fprint): ditto
1203 (parse_fstype): ditto
1204 (parse_group): ditto
1205 (parse_ilname): ditto
1206 (parse_iname): ditto
1207 (parse_iwholename): ditto
1208 (parse_lname): ditto
1209 (insert_depthspec): ditto
1211 (parse_newer): ditto
1212 (parse_wholename): ditto
1214 (parse_regextype): ditto
1215 (insert_regex): ditto
1216 (parse_samefile): ditto
1219 (insert_type): ditto
1221 (parse_size): When the size argument is invalid but consists only
1222 of a valid suffix char, avoid issuing an error message about a
1223 blank argument. Append the suffix letter again.
1224 (parse_xdev, parse_ignore_race, parse_noignore_race, parse_warn,
1225 parse_xtype): Remove casts to void for some function parameters
1226 that were, in fact, used.
1228 * find/testsuite/find.gnu/fprint-unwritable.exp: new test
1229 * find/testsuite/find.gnu/fprint0_stdout.exp: new test
1230 * find/testsuite/find.gnu/fprint0_stdout.xo: new test
1231 * find/testsuite/find.gnu/mindepth-arg.exp: new test
1232 * find/testsuite/find.gnu/mindepth-arg.xo: new test
1233 * find/testsuite/find.gnu/mindepth-badarg.exp: new test
1234 * find/testsuite/find.gnu/print_stdout.exp: new test
1235 * find/testsuite/find.gnu/print_stdout.xo: new test
1236 * find/testsuite/find.gnu/samefile-missing.exp: new test
1237 * find/testsuite/find.gnu/samefile-p-brokenlink.exp: new test
1238 * find/testsuite/find.gnu/samefile-p-brokenlink.xo: new test
1239 * find/testsuite/find.gnu/used-invarg.exp: new test
1240 * find/testsuite/find.gnu/used-missing.exp: new test
1241 * find/testsuite/find.gnu/user-invalid.exp: new test
1242 * find/testsuite/find.posix/group-empty.exp: new test
1243 * find/testsuite/find.posix/group-missing.exp: new test
1244 * find/testsuite/find.posix/name-missing.exp: new test
1245 * find/testsuite/find.posix/size-invalid.exp: new test
1246 * find/testsuite/find.posix/size-missing.exp: new test
1247 * find/testsuite/find.posix/typearg.exp: new test
1248 * find/testsuite/find.posix/user-empty.exp: new test
1249 * find/testsuite/find.posix/user-missing.exp: new test
1251 2007-05-06 James Youngman <jay@gnu.org>
1253 * find/tree.c: (costlookup): Added pred_fls to the optimiser's
1254 predicate cost lookup table.
1256 * lib/printquoted.c (print_quoted): Change return value from void
1257 to int, to allow the caller to detect failures.
1258 * lib/printquoted.h (print_quoted): Change declaration
1261 * find/defs.h (struct format_val): Incldue a 'filename' member so
1262 that we can provide more useful error messages (e.g. when we fail
1263 to flush or close an output file).
1264 (nonfatal_file_error): declare new function.
1266 * find/util.c (traverse_tree): Utility function which calls a
1267 callback on every node of the parse tree.
1268 (flush_and_close_output_files): Flush all output streams. Close
1269 all output files. Report any errors.
1270 (cleanup): Use traverse_tree() to invoke
1271 complete_pending_execdirs().
1272 (report_file_err): refactored error reporting function, extracted
1273 from fatal_file_error.
1274 (nonfatal_file_error): New function.
1276 * find/pred.c (checked_fprintf): New function, which performa an
1277 fprinf(), and checkes the result. If the operation resulted in an
1278 error, a nonfatal error message is issued.
1279 (checked_print_quoted): Ditto, for print_quoted rather than
1281 (checked_fwrite): Ditto for fwrite instead of fprintf.
1282 (checked_fflush): Ditto for fflush
1283 (do_fprintf): Use the checked_*() functions rather than their
1284 direct counterparts, to ensure that I/O errors are detected. This
1285 fixes Savannah bug #19416.
1286 (pred_fls): Use args.printf_vec instead of args.stream, which has
1288 (pred_ls): just call pred_fls.
1289 (pred_fprint0): use args.printf_vec, instead of the now removed
1291 (pred_print0): just call pred_fprint0
1293 * find/parser.c: (insert_fprintf): Make the caller collect the
1294 format argument from the argument list.
1295 (open_output_file): Enhance to set up defaults in
1296 our_pred->args.printf_vec as well as opening the output file.
1297 Also record the filename for possible later use in an error
1299 (collect_arg): Convenience function for collecting an argument
1300 from the argument list.
1301 (insert_fls): Refactored the body of parse_fls out so that
1302 parse_ls can use it.
1303 (parse_fls): call insert_fls.
1305 (parse_fprint): Instead of setting up our_pred->args.printf_vec
1306 manually, call open_output_file() to do it.
1307 (parse_print): Same, but by calling open_stdout().
1308 (insert_fprint): Make the caller collect the filename argument,
1309 and delegate the setup of our_pred->args.printf_vec to either
1310 open_output_file() (for parse_fprint and parse_fprint0) or
1311 open_stdout (parse_print0).
1312 (parse_fprint0): Use collect_arg().
1313 (parse_print0): Use insert_fprint(), just like parse_fprint0.
1314 (parse_printf): Use collect_arg().
1315 (parse_fprintf): Use collect_arg().
1317 2007-05-05 James Youngman <jay@gnu.org>
1321 * find/parser.c (parse_samefile): Hold a file descriptor open on
1322 the reference file in order to prevent pred_samefile getting
1323 fooled by inode reuse. Pay attention to race conditions on
1324 systems lacking O_NOFOLLOW when the -P option is in force. This
1325 fixes Savannah bug #19806.
1327 * find/defs.h (struct samefile_file_id): New struct, like dir_id
1328 but including a file descriptor on the reference file.
1330 * find/pred.c (pred_type): -type should return false if the file
1331 has mode 00000, as opposed to having an assertion failure. This
1332 fixes Savannah bug #16378.
1334 * find/ftsfind.c (consider_visiting): Issue a warning message if
1335 none of the mode bits are set for a file (i.e. st_mode==00000).
1336 * find/util.c (get_statinfo): ditto
1337 * find/util.c (hook_fstatat): Introduced debug code (normally
1338 disabled) for testing Savannah bug #16378.
1340 2007-05-01 James Youngman <jay@gnu.org>
1342 * find/find.c (wd_sanity_check): corrected the type of %ld fprintf
1343 arguments in error messages.
1344 * find/fstype.c: include "error.h" for the declaratio of error().
1345 * find/ftsfind.c: include "error.h" for the declaratio of
1346 error(). Include dircallback.h for the correct declararion of
1348 * find/parser.c: include getdate.h (for declaration of getdate)
1349 and error.h (for the declaration of error).
1350 (find_parser): Removed unused variable p.
1351 * find/pred.c (pred_timewindow): Removed unused variable delta.
1352 (do_fprintf): Removed unused variable cc.
1353 * find/tree.c: Include error.h (for the declaration of error()).
1354 (build_expression_tree): removed sourious extra arguments in call
1356 * find/util.c: include error.h.
1357 * lib/buildcmd.h (get_line_max): Comment out unused function.
1358 * lib/listfile.c: Include dircallback.h.
1359 * locate/code.c: Include errno.h, erorr.h, progname.h and
1361 (inerr): New function for reporting read errors.
1362 (outerr): New function for reporting output errors.
1363 (main): Call inerror when fgets fails. Call outerr when fwrite
1364 or putc or putw fails.
1365 * locate/frcode.c (put_short): Return boolean value indicating
1367 (outerr): New function for reporting write errors.
1368 (main): Call outerr if call to putc() or puts() or put_short()
1370 * locate/locate.c (search_one_database): diagnose corruption if a
1371 traditional-style database is too short to include a complete
1374 2007-04-30 James Youngman <jay@gnu.org>
1376 * find/defs.h: Change all predicate functions to take a const
1377 char* argument as the pathname, not a char*. Modify the parser
1378 table definition accordingly.
1379 * find/parser.c: Ditto
1380 * find/pred.c: Ditto
1381 * find/pred.c (do_fprintf): copy the pathname string for the %H
1382 and %h cases, since we can no longer modify the string in place.
1383 * lib/listfile.c (print_name, list_file,
1384 print_name_without_quoting, print_name_with_quoting): Use const
1385 char * param for pathname.
1386 * lib/listfile.h (list_file): Use const char * param for
1389 2007-04-29 James Youngman <jay@gnu.org>
1391 * find/defs.h: Declare fatal_file_error(), a function for
1392 reporting immediately-fatal file errors, which appropriately
1393 quotes the file name. The function does not return. Also define
1394 ATTRIBUTE_NORETURN. Record the currently-required quoting style
1397 * find/find.c, find/ftsfind.c, find/parser.c, find/pred.c,
1398 find/util.c: Call fatal_file_error() for fatal file errors. Use
1399 quotearg_n_style() to quote filenames which are used in error
1400 message that aren't fatal. Use options.err_quoting_style as the
1401 quoting style. This fixes Savannah bug #18203.
1402 * locate/locate.c: ditto
1403 * xargs/xargs.c: ditto
1405 * lib/listfile.c: To use alloca, just #include <alloca.h>. Gnulib
1406 handles the rest. Also these days, <stdlib.h> and <string.h> can
1407 just be included unconditionally.
1408 * lib/qmark.c: Fixed comment on first line describing the module.
1410 2007-04-29 Michael Haubenwallner <michael.haubenwallner@salomon.at> (Trivial Change)
1412 * find/defs.h (pred_open) Rename to pred_openparen to avoid
1413 problems with the macrtos which build the parser tabnles on
1414 platforms where 'open' is in fact a macro whcih expands to
1415 open64. The problem was that token pasting put pred_open64 into
1416 the parser table, but the function was still defined as
1417 parse_open. This fixes Savannah bug #19371.
1419 * find/parser.c (parse_open, parse_close): ditto. Also change
1420 repferences to pred_open and pred_close similarly.
1421 * find/parser.c (parse_openparen, parse_closeparen): ditto
1423 2007-04-28 James Youngman <jay@gnu.org>
1425 * find/testsuite/find.gnu/deletedir.exp,
1426 find/testsuite/find.gnu/deletedir.xo: New test.
1427 * find/testsuite/find.gnu/deletefile.exp,
1428 find/testsuite/find.gnu/deletefile.xo: New test.
1429 * find/testsuite/Makefile.am: Distribute the new tests
1430 deletefile.exp and deletedir,exp, with their expected-output (.xo)
1432 * find/testsuite/config/unix.exp (find_start): Add a new "setup"
1433 parameter called just before each time find is invoked. This
1434 allows last-minute tasks to be performed. This feature is
1435 essential for find commands that modify the filesystem, since
1436 otherwise we cannot use our strategy of invoking both binaries at
1437 each optimisation level.
1439 * find/util.c (optionh_stat, optionp_stat, optionl_stat): Assert
1440 that state.cwd_dir_fd is valid.
1442 * find/parser.c (parse_delete): Set need_stat to false, since we
1443 don't need the stat information in pred_delete.
1444 * find/pred.c (pred_delete): If unlinkat() with a zero flags
1445 parameter fails with errno==EISDIR, just try again with
1446 flags=AT_REMOVEDIR. That way we normally avoid the cost of a
1447 stat. If we happen to have the stat information to hand anyway,
1448 we make sure we get it right the first time.
1450 * lib/buildcmd.c (bc_init_controlinfo): Eliminate confusing extra
1451 variable arg_max. Add return value
1452 BC_INIT_CANNOT_ACCOMODATE_HEADROOM for the case where the
1453 environment itself is not too large, but the required headroom
1454 cannot also be accomodated. The caller now passes in the amount
1455 of headroom required.
1456 (bc_use_sensible_arg_max): Use the environment size consistently;
1457 this is accounted for already in posix_arg_size_max, so there is
1458 no need to re-measure the size of the environment.
1459 * lib/buildcmd.h: Define BC_INIT_CANNOT_ACCOMODATE_HEADROOM and
1460 add the headroom parameter to the prototype of bc_init_controlinfo().
1461 * xargs/xargs.c (main): Define XARGS_POSIX_HEADROOM as 2048 and
1462 use that symbolic value. Pass XARGS_POSIX_HEADROOM to
1463 bc_init_controlinfo(). Handle the case where
1464 BC_INIT_CANNOT_ACCOMODATE_HEADROOM is returned by
1465 bc_init_controlinfo().
1466 * find/parser.c (new_insert_exec_ok): Pass the required headroom to
1467 bc_init_controlinfo() and handle the error return
1468 BC_INIT_CANNOT_ACCOMODATE_HEADROOM.
1470 * xargs/xargs.1: Correct the description of the default value and
1471 maximum value for the -s option of xargs.
1473 * xargs/xargs.c (main): Modify the assertions not to assume that
1474 bc_ctl.arg_max is 2KiB less than ARG_MAX, since sysconfig() may
1475 have returned a value for _SC_ARG_MAX which is greater. For
1476 example, AIX 5.3 can do this. This should fix Savannah bug
1479 2007-04-25 James Youngman <jay@gnu.org>
1481 * find/tree.c (predlist_dump, predlist_merge_nosort): These
1482 functions were unused and commented out. Removed.
1483 (mark_stat) No longer used. Removed.
1484 (mark_type) No longer used. Removed.
1486 * find/parser.c (new_insert_exec_ok): When checking for {} in the
1487 arguments to -exec..., use mbsstr() rather than strstr() in order
1488 to cope bettwe with multibyte locales.
1490 * lib/buildcmd.c: Don't define mbsstr() locally. Instead, call
1493 2007-04-24 James Youngman <jay@gnu.org>
1495 * lib/buildcmd.c: Added some comments outlining how we might
1496 change the implementation to support figuring out the real ARG_MAX
1499 2007-04-23 James Youngman <jay@gnu.org>
1501 * find/defs.h (struct predicate_performance_info): New data
1502 structure for holding perofmance statistics.
1503 (struct predicate: include predicate_performance_info
1504 (apply_predicate): change from macro to function
1505 (pred_is): new macro, for predicate identity testing
1506 (enum DebugOption): Added DebugSuccessRates
1507 * find/find.1: Document option "-D rates" which turns on
1509 * doc/find.texi: ditto
1510 * find.c (main): Call show_success_rates() before exiting.
1511 (apply_predicate): remove the macro defintion, declare equivalent
1513 * find/ftsfind.c (main): Call show_success_rates() before
1514 exiting. Use apply_predicate().
1515 (show_outstanding_execdirs): use pred_is().
1519 2007-04-22 Eric Blake <ebb9@byu.net>
1521 * xargs/xargs.c (main): Don't assume LINE_MAX exists (i.e. is
1524 * locate/updatedb.sh (PRUNEPATHS): Exclude /proc by default.
1526 2007-04-22 James Youngman <jay@gnu.org>
1528 * doc/Makefile.am: When cross-compiling, 'make clean' should not
1529 delete doc/regexprops.texi, becaue we can't regenerate it. Fixes
1530 Savannah bug #19658.
1532 * locate/Makefile.am (BUILT_SOURCES): Automatically generate
1533 dblocation.texi, which records the default database location.
1534 * doc/find.texi: Collect the default database location from
1535 ../locate/dblocation.texi, and use LOCATE_DB in various places.
1536 Document the fact that updatedb can generate slocate-compatible
1537 databases. Document the --dbformat option of updatedb.
1538 * locate/frcode.c (main): Implemented the -S option which allows the
1539 generation of an slocate secure database.
1540 * locate/updatedb.sh: New option --dbformat which selects which
1541 database format to use.
1542 * locate/updatedb.1 (--dbformat): Document the new option.
1545 * find/testsuite/find.gnu/access.exp: fixed a typo which prevented
1546 the test correctly being skipped when run as root. This re-fixes
1547 Savannah bug# 18414, I hope.
1549 2007-04-21 James Youngman <jay@gnu.org>
1553 * find/locate/locatedb.5: Clarifications to the description of the
1554 LOCATE02 format. Organised the material under a number of
1555 headings. Documented the slocate database format.
1557 2007-04-21 James Youngman <jay@gnu.org>
1559 * find/testuite/Makefile.am (EXTRA_DIST_EXP): added
1560 find/testsuite/find.posix/sv-bug-19617.exp
1562 2007-04-20 Maxim V. Dziumanenko <dziumanenko@gmail.com>
1564 * po/uk.po: New Ukranian translation.
1565 * configure.in: Added "uk" for Ukranian.
1567 2007-04-19 Peter Breitenlohner <peb@mppmu.mpg.de> (Trivial change)
1569 * locate/bigram.c (main): Set the initial pathname to the empty
1570 string, to avoid decompression problems if the initial pathname
1571 begins with a space. This fixes Savannah bug #19484.
1572 * locate/code.c (main): ditto
1574 2007-04-19 James Youngman <jay@gnu.org>
1576 * locate/updatedb.1 (--help): Option name should be bold, not
1579 * find/testsuite/find.gnu/execdir-hier.exp: Avoid running
1580 -execdir based tests if "." is on $PATH. Fixes Savannah bug
1582 * find/testsuite/find.gnu/execdir-in-unreadable.exp: ditto
1584 * find/testsuite/config/unix.exp (touch): New procedure touch,
1585 replacing "exec touch" for greater efficiency.
1586 * find/testsuite/find.posix/depth1.exp: Change "exec touch" to
1588 * find/testsuite/find.posix/files-not-expressions1.exp: ditto
1589 * find/testsuite/find.posix/files-not-expressions2.exp: ditto
1590 * find/testsuite/find.posix/files-not-expressions3.exp: ditto
1591 * find/testsuite/find.posix/links.exp: ditto
1592 * find/testsuite/find.posix/perm-vanilla.exp: ditto
1593 * find/testsuite/find.posix/sv-bug-15235.exp: ditto
1594 * /find/testsuite/find.posix/sv-bug-19613.exp: ditto
1596 * find/testsuite/find.gnu/access.exp: Fix savannah bug #18414 by
1597 skipping the test if the user can read any file (e.g. is root or
1598 is an Admin user under Cygwin).
1600 2007-04-17 James Youngman <jay@gnu.org>
1602 * import-gnulib.config (gnulib_version): Use the 2007-04-17
1603 version of gnulib to fix a compilation error on Cygwin. This
1604 fixes Savannah bug #19619.
1606 * find/testsuite/find.posix/sv-bug-19605.exp: New test, for
1607 Savannah bug #19605.
1608 * find/testsuite/find.posix/sv-bug-19617.exp: New test, for
1609 Savannah bug #19617.
1610 * find/ftsfind.c (consider_visiting): if fts_read() returns
1611 enf->fts_info==FTS_NS, check for and diagnose a symbolic link
1612 loop. This fixes Savannah bugs #19605 and #19617.
1614 * find/find.c (process_path): collect the stat information for
1615 directories even if we already have the mode information, because
1616 we need to use the members st_nlink and st_rdev in for the leaf
1617 optimisation and loop detection, respectively. This fixes
1618 Savannah bug #19616.
1620 * find/ftsfind.c (is_fts_enabled): Return a copy of ftsoptions,
1621 not a copy of the (uninitialised) input argument. This fixes
1622 Savannah bug #19615.
1624 * find/ftsfind.c (consider_visiting): If fts_read() returned
1625 FTS_NS, then remember that the stat information is not valid, and
1626 therefore don't set state.have_type or state.have_stat. This
1627 fixes Savannah bug #19613.
1629 * find/testsuite/find.posix/sv-bug-91613.exp,
1630 * find/testsuite/find.posix/sv-bug-91613.xo: New test for Savannah
1631 bug 19613 (assertion failure on symbolic link loop).
1633 * find/testsuite/config/unix.exp: Correctly diagnose a test case
1634 which fails because find was expected to fail and instead
1636 * find/testsuite/find.gnu/exec-many-rtn-failure.exp: The child
1637 process in this test should return non-zero, not zero. Therefore
1638 run "false" instead of "true".
1640 2007-04-15 James Youngman <jay@gnu.org>
1644 * find/find.1: "-printf %b": blocks are 512 bytes. Fixes
1645 Savannah bug #19596.
1647 * doc/Makefile.am (regexprops.texi): Do not use $(RM) because many
1648 versions od make do not set it, and so it expands to nothing.
1649 This avoids suprious emission of the regexprops.texi file to stdout.
1651 * find/find.c (main, safely_chdir_lstat, safely_chdir_nofollow):
1652 Only use O_LARGEFILE if it is #defined (NetBSD-3.1 does not define
1654 * find/ftsfind.c (main): ditto
1655 * find/pred.c (pred_empty, prep_child_for_exec): ditto
1658 * import-gnulib.config: Update to gnuliv 2007-04-14.
1660 * lib/Makefile.am, import-gnulib.sh: Create lib/gnulib-version.c
1661 in import-gnulib.sh, not in lib/Makefile.
1663 * build-aux/Makefile.am: New file; distribute check-tstfiles.sh.
1665 * locate/Makefile.am: mkinstalldirs is now in build-aux.
1667 * doc/Makefile.am: We also need getdate.texi.
1669 2007-04-14 James Youngman <jay@gnu.org>
1671 * doc/.cvsignore: Ignore getdate.texi
1673 * find/defs.h: #include "buildcmd.h" near the top of the file, not
1676 * all: Pass O_LARGEFILE when opening directories.
1678 * all: Changes to allow us to use the FTS_CWDFD mode of fts().
1679 These are quite extensive changes, and are detailed below.
1681 * find/defs.h (struct exec_val): New member dirfd, the directory
1682 in which the exec should take place.
1683 (is_fts_enabled): Tell the caller which flags are passed to
1685 (get_start_dirfd): New function. Returns value of start_desc.
1686 (get_current_dirfd): New function. Returns the fd of the
1687 directory fts is currently traversing. If this is the current
1688 directory, AT_FDCWD is returned.
1689 (complete_pending_execdirs): takes a new argument, indicating
1690 where the exec is to take place. Ugh.
1691 (get_info): the file name is taken from state.rel_pathname, so
1692 we don't need it as a function argument.
1693 (enum DebugOption): Added DebugExec ("-D exec").
1694 (struct state): Added cwd_dir_fd, the directory we are examining
1695 with fts(). If fts() is not in use, this is AT_FDCWD. Also added
1696 execdirs_outstanding, which is a boolean which tells us if there
1697 are any not-yet-execed -execdir or -okdir actions (with +). This
1698 is not really used yet.
1699 * find/ftsfind.c (set_close_on_exec): New function.
1700 (get_current_dirfd): Return an fd open on the directory that fts()
1701 is currently examining.
1702 (left_dir): Signal that our previous ides of which dirctory fts is
1703 searching is now out of date.
1704 (inside_dir): Indicate which directory fts is now searching.
1705 (complete_execdirs_cb): Callback for run_in_dir() to complete
1706 pending execdirs in this directory.
1707 (show_outstanding_execdirs): Supports "-D exec"
1708 consider_visiting(): Do not allow building-up of pending execdirs,
1709 as a workaround to Savannah bug #18466.
1710 (ftsoptions): Make this a static module variable.
1711 * find/parser.c (insert_exec_ok): New parameter describing which
1712 directory the exec should occur in.
1713 (parse_version): for FTS, add a list of options being used.
1714 * find/pred.c (pred_and, pred_comma): No need to pass the relative
1715 path name to get_info(), it can pull it from state.rel_pathname.
1716 (pred_delete): use unlinkat().
1717 (pred_empty): use openat().
1718 (new_impl_pred_exec): Accept an fd parameter describing where the
1719 exec is to take place.
1720 (pred_executable, pred_writable, pred_readable): Use run_in_dir()
1721 to ensure that access() is called in a working directory which is
1722 suitable for the pathname we pass in.
1723 (prep_child_for_exec): In the child process, change to the
1724 appropriate directory becore the exec().
1725 * find/util.c (debugassoc): Support "-D exec".
1726 (get_info): No longer need to pass the relative path to
1728 (do_complete_pending_execdirs): Refactored body of what used to be
1729 complete_pending_execdirs().
1730 (complete_pending_execdirs): Pull body out into
1731 do_complete_pending_execdirs() and call that only if there is work
1733 (fallback_stat, optionh_stat, optionp_stat, optionl_stat): Use fstatat().
1734 (get_start_dirfd): New access function for starting_desc.
1735 * find/testsuite/find.gnu/execdir-hier.exp: New test
1736 * find/testsuite/find.gnu/execdir-hier.xo: Expected outut for new test
1737 * lib/dircallback.c, lib/dircallback.h: New function,
1738 run_in_dir(), which runs a callback function in a specified
1740 * lib/listfile.c: Use run_in_dir() to call readlink() in the right
1742 (get_link_name_at): Call get_link_name_cb via run_in_dir.
1743 (get_link_name_cb): New callback function, wrappting
1746 * find/testsuite/find.gnu/execdir-pwd.exp: Since we have disabled
1747 thebuilding-up of command lines for -execdir, Savannah bug #18466
1748 has been neutralised (but not fixed - we just don't allow the
1749 problem circumstance to occur).
1751 2007-04-09 James Youngman <jay@gnu.org>
1753 * doc/find.texi: Change fully-specified @node directives to
1754 single-argument @node directives in order to accomodate the
1755 inclusion of getdate.texi.
1757 * doc/find.texi: Document -newerXY.
1759 * doc/find.texi (Security Considerations): updated to describe
1760 differences in the fts-based implementation.
1762 * find/find.1: Indicate that testing the birth time where this is
1763 not supported produces a negative result for files where the birth
1764 time is not known (or a fatal error if the file of interest is a
1767 2007-04-08 James Youngman <jay@gnu.org>
1769 * configure.in: Set @AUXDIR@ (to the location of the build-aux
1771 * build-aux/check-testfiles.sh: New script, which checks that all
1772 the DejaGnu test files have been included in the distribution and
1773 (more helpfully) lists any that are missing.
1774 * Makefile.am (findutils-check-testfiles): Use
1775 build-aux/check-testfiles.sh.
1776 * locate/testsuite/Makefile.am (EXTRA_DIST_EXP): distribute
1777 locate/testsuite/locate.gnu/sv-bug-14535.exp.
1779 * config.rpath, depcomp, missing: Moved into build-aux/.
1780 * configure.in(AC_CONFIG_AUX_DIR): Find aux files in $SRCDIR/build-aux,
1783 2007-03-31 James Youngman <jay@gnu.org>
1785 * find/tree.c (build_expression_tree): Issue more specific error
1786 messages; distinguish the case where the predicate is invalid from
1787 the cases where a required argument is missing, and a supplied
1788 argument is invalid.
1790 * import-gnulib.config (gnulib_version): Update to 2007-03-30
1793 2007-03-28 James Youngman <jay@gnu.org>
1795 * find/defs.h (set_stat_placeholders): utility function for
1796 initialising the sturct stat fields that NetBSD doesn't always set
1797 (like st_birthtime where the file is on a filesystem not
1798 supporting birthtime).
1799 * find/util.c: set_stat_placeholders(): new function
1800 (get_statinfo): Call set_stat_placeholders().
1801 (optionh_stat, optionl_stat, optionp_stat): ditto
1802 * find/find.c (main, wd_sanity_check, safely_chdir_lstat,
1803 process_dir): use set_stat_placeholders().
1804 * find/parser.c (parse_anewer, parse_cnewer, parse_newer,
1805 parse_newerXY): ditto.
1806 (get_stat_Ytime): Support birth time ('B').
1807 (parse_newerXY): Support st_birthtime.
1808 * find/fstype.c (set_fstype_devno): Use set_stat_placeholders().
1809 * find/pred.c (pred_xtype): Use set_stat_placeholders().
1810 (pred_newerXY): Support birth time.
1811 (pred_fprintf, format_date): ditto ("%Bx").
1813 2007-03-25 James Youngman <jay@gnu.org>
1815 * xargs/xargs.c (main): For "xargs --show-limits" where stdin is a
1816 terminal, warn the user that the program specified (or /bin/echo)
1817 will be run at least once, if that is what will happen.
1819 2007-03-24 James Youngman <jay@gnu.org>
1821 * import-gnulib.sh: Added option -d, allowing the user to use a
1822 local version of gnulib, perhaps because they have local changes.
1824 2007-03-13 James Youngman <jay@gnu.org>
1826 * find/parser.c (parse_quit): Estimated success rate of -quit is
1829 2007-03-08 James Youngman <jay@gnu.org>
1831 * find/find.1 (TESTS): Document -newerXY, indicate that reference
1832 files are only examined once.
1833 (HISTORY): Indicate when various features were added
1834 (BUGS): Indicate that -ok ignores LC_COLLATE.
1836 2007-03-07 James Youngman <jay@gnu.org>
1838 * import-gnulib.config: (gnulib_version): Use gnulib version
1840 (modules): Added getdate
1842 * find/Makefile.am (LDADD): Added @LIB_CLOCK_GETTIME@ for
1843 clock_gettime(), if it is available.
1845 * find/defs.h: (enum xval): New enumeration, representing the
1846 value of X used in the -newerXY test. It is stored in the reftime
1847 member of 'union args'.
1848 (struct predicate): reftime is also used by -newerXY.
1849 (enum arg_type): Added ARG_SPECIAL_PARSE for -newerXY, because the
1850 parsing function needs to look at the name of the test.
1851 (struct options): start_time is now a struct timespec, not a
1854 * find/parser.c: (parse_newerXY): New parsing function for
1855 -newerXY, a feature copied from FreeBSD (also present other BSD
1856 implementations too)
1857 (get_stat_Ytime): New function; returns st_atime, st_mtime or
1858 st_ctime from struct stat, as a timespec, as required according to
1859 the value of Y in -newerXY.
1860 (found_parser): Factored the tail out of find_parser.
1861 (find_parser): Moved tail into found_parser. Add special handling
1863 (do_parse_xmin): New argument xv, indicating the value to which
1864 predicate->reftime.xval should be set.
1865 (parse_amin): Pass XVAL_ATIME to do_parse_xmin.
1866 (parse_cmin): Pass XVAL_CTIME to do_parse_xmin.
1867 (parse_mmin): Pass XVAL_MTIME to do_parse_xmin.
1868 (parse_newer): Set args.reftime.xval to XVAL_MTIME.
1870 * find/pred.c (pred_table): added pred_XY.
1871 (pred_fls): options.start_time is now a struct timespec, so just
1872 pass the tv_sec member to list_file.
1874 (pred_newerXY): New function, implementing -newerXY.
1876 * find/tree.c (costlookup): pred_newerXY needs stat information.
1877 (build_expression_tree): For predicates of type ARG_SPECIAL_PARSE,
1878 pass them in the name of the predicate (that is, don't advance
1881 * find/util.c (now): New function for setting options.start_time.
1882 Use nanoseconds where it is available.
1883 (set_option_defaults): Use now() rather than time().
1885 2007-03-03 James Youngman <jay@gnu.org>
1887 * import-gnulib.sh: Pass --with-tests to gnulib-tool so that relevant
1888 gnulib unit tests are built and are run for "make check".
1890 * configure.in (AC_CONFIG_FILES): Add tests/Makefile (the makefile
1891 for the gnulib unit tests).
1893 * Makefile.am: Add 'tests' to SUBDIRS.
1895 * .cvsignore: Add 'tests'.
1897 * import-gnulib.config (modules): Also use Gnulib modules
1898 mbscasestr and mbsstr in order to perform correct string searching
1899 in multibyte strings, in order to fix Savannah bug #14535.
1901 * locate/testsuite/locate.gnu/sv-bug-14535.exp: new test case for
1902 Savannah bug #14535.
1904 * locale/locate.c (visit_substring_match_nocasefold): Use mbsstr
1905 rather than strstr, in order to correctly support multibyte
1907 (visit_substring_match_casefold): Use mbscasestr rather than
1908 strstr in order to correctly support case-folding in a multibyte
1909 environment (e.g. with UTF-8 characters outside the normal ASCII
1910 range). This fixes Savannah bug #14535.
1911 (struct casefolder): No longer needed, removed
1912 (visit_casefold): No longer needed, removed.
1913 (lc_strcpy): No longer needed, removed.
1914 (search_one_database): Removed redundant variable need_fold and
1915 the code which used to set it. It had controlled the adding of
1916 the visitor function visit_casefold, but that function itself is
1917 no longer required. Also there is now no need to pass in a
1918 lower-case argument to visit_substring_match_casefold, so don't
1919 pass that in the context argument.
1921 * locate/locate.c (usage): Fixed typo.
1923 2007-03-01 James Youngman <jay@gnu.org>
1925 * doc/find.texi (Multiple Files): Document the construct
1926 -exec sh -c 'cmd "$@" final-args' {} + - fixing Savannah bug
1929 2007-02-28 James Youngman <jay@gnu.org>
1931 * import-gnulib.config: New file. Specifies which version of
1932 Gnulib we need to check out and build from.
1934 * import-gnulib.sh: Use import-gnulib.config.
1936 * README-CVS: Describe the new method of building from CVS.
1938 * lib/gnulib-version.h, lib/gnulib-version.sh: New files; code for
1939 reporting which version of Gnulib we built findutils from.
1941 * lib/Makefile.am: Build gnulib-version.c out of
1942 ./gnulib-version.config by using lib/gnulib-version.sh.
1944 * Makefile.am: Ship import-gnulib.config and import-gnulib.sh.
1946 * .cvsignore: Ignore gnulib-cvs
1948 * lib/.cvsignore: Ignore gnulib-version.c
1950 * find/parser.c, locate/code.c, locate/locate.c, xargs/xargs.c:
1951 Report which version of Gnulib we were built from.
1953 2007-02-25 James Youngman <jay@gnu.org>
1955 * find/find.c (process_dir): Removed duplicated (shadow)
1956 declaration of did_stat. Assert that we did not use subdirs_left
1957 if subdirs_unreliable is true.
1959 * find/parser.c (parse_size): Removed unused variable rate.
1960 (parse_time): Removed unused variable num_days_approx.
1961 (get_num): Removed unused variables ok and suffixes.
1963 * find/pred.c (do_fprintf): Indicate that the function needs a
1964 return value (referring to Savannah bug #19146).
1966 * find/tree.c (predlist_dump): Commented out unused function
1967 (predlist_merge_nosort): Commented out unused function
1968 (getrate): Returns type is float, so return 1.0f not 1.0.
1969 (calculate_derived_rates): Removed unused variable rate. Use a
1970 switch statement rater than ifs.
1972 * find/util.c (usage): Removed unused variable i.
1974 * lib/buildcmd.c (bc_do_insert): Removed unused variable
1976 (bc_init_controlinfo): annotate a line (with #warning) which is
1979 * locate/locate.c: #include <grp.h> for the benefit of the
1980 setgroups() call in drop_privs.
1981 (slocate_db_pathname): Commented out unused variable.
1982 (set_max_db_age): error command has no format directive, so
1983 remove the unused extra argument.
1984 (looking_at_slocate_db): Removed unused variables magic and
1985 lenwanted. Fix bug where result is indeterminate (due to falling
1986 off the end of the function) if the first character is a nondigit.
1987 (search_one_database): Eliminate (spurious) compiler warning
1988 rlating to possible use before initialisation of slocate_seclevel.
1990 * xargs/xargs.c (get_char_oct_or_hex_escape): Eliminate spurious
1991 compiler warning on variable p.
1992 (main): Removed unused varible env_too_big
1995 2007-02-24 James Youngman <jay@gnu.org>
1997 * find/parser.c (pred_sanity_check): define this function even for
1998 _NDEBUG, but do nothing in that case.
1999 (estimate_timestamp_success_rate): correct (invert) the sense of
2000 the subtraction used to find the file's age.
2002 * import-gnulib.sh (findutils_modules): Import Gnulib modules
2003 xstrtod and timespec.
2005 * find/parser.c (get_comp_type): Refactored out of get_num.
2006 (get_num): call get_comp_type to find the comparison type.
2007 (get_relative_timestamp): new function replacing get_num_days.
2008 (get_num_days): Remove.
2009 (do_parse_xmin): Support fractional arguments and
2010 nanosecond timestamps.
2014 * xargs/xargs.c (read_line): Give a warning message if a NUL is
2015 found in the input (this function is called only when -0 is not in
2018 * xargs/xargs.c (nullwarning_given): New variable indicating if
2019 the NULL character warning had already been issued.
2021 * doc/find.texi (Multiple Files): Describe how trailing blanks are
2022 handled when -L is in effect.
2024 * xargs/xargs.c (read_line): Use an enum rather than
2025 preprocessor macro values for the lexer state.
2027 * lib/savedirinfo.c (free_dirinfo): Fixed memory leak (trivial
2028 patch from Supriya Kannery)
2030 2007-01-22 James Youngman <jay@gnu.org>
2032 * .cvsignore (install-sh): Ignore, since the install-sh file is no
2033 longer held in the findutils CVS repository.
2035 * find/testsuite/config/unix.exp (find_start): allow a test to be
2036 skipped for either the old or the new find executable.
2037 * find/testsuite/find.gnu/execdir-pwd.exp,
2038 find/testsuite/Makefile.am:
2039 New test, covering Savannah bug #18466. This test currently fails
2040 for the ftsfind binary and passes for the oldfind binary. Due to
2041 a limitation in the way that we perform the test, we can't tell
2042 the test suite to expect a failure in the new binary but not the
2043 old. Therefore we skip the test for the old binary.
2045 * lib/regeprops.c (describe_regex_syntax): fixed a typo in the text
2046 * doc/find.texi (Multiple Files): fixed a typo
2048 2007-01-16 James Youngman <jay@gnu.org>
2050 (ctime_format): format the time manually (rather than using ctime)
2051 in order to include the sub-second part of the time.
2052 (weekdays, months): new static variables used by ctime_format.
2053 (format_date): append a the sub-second part of the timestamp to
2054 the seconds part of date/time output.
2056 2007-01-15 James Youngman <jay@gnu.org>
2058 * find/defs.h (time_val): define struct; use timespec to hold time
2059 in the 'reftime' member.
2060 (args): use struct timespec instead of time_t for predicates
2061 -newer, -anewer, -cnewer. * find/parser.c (includes): include
2063 (parse_anewer, parse_cnewer, parse_newer): use struct timespec to
2064 hold timestamps. * find/pred.c (compare_ts): new function for
2065 comparing timestamps in struct timespec.
2066 (pred_anewer, pred_cnewer, pred_newer): use compare_ts() to
2067 compare timestamps (hence takinng acoung of sub-second
2069 * find/ftsfind.c: Various improvements to comments.
2070 (is_fts_enabled): Newline before function name to comply with GNU
2073 2007-01-13 James Youngman <jay@gnu.org>
2075 * lib/regexprops.c (describe_regex_syntax): fixed typo
2077 * xargs/xargs.c (read_line): Fixed Savannah bug# 18714; VT and FF
2078 are not separators, according to POSIX (in the POSIX locale).
2080 * xargs/testsuite/Makefile.am,
2081 xargs/testsuite/input/formfeeds.xi,
2082 xargs/testsuite/input/verticaltabs.xi,
2083 xargs/testsuite/xargs.posix/sv-bug-18714.exp,
2084 xargs/testsuite/xargs.posix/sv-bug-18714.xo,
2085 xargs/testsuite/xargs.posix/sv-bug-18714b.exp,
2086 xargs/testsuite/xargs.posix/sv-bug-18714b.xo: Tests for Savannah
2089 * xargs/xargs.c (usage): Removed suprious "[" in --help output
2090 (fixes Savannah bug #18384).
2092 * locate/locate.c: Implement the option --max-database-age.
2093 (main) Accept the option.
2094 (set_max_db_age): Parse the argument.
2096 * locate/locate.c (dolocate): If the database is more than N days
2097 old, indicate its actual age in the warning message we produce.
2099 * locate/locate.1, docs/find.texi: Document --max-database-age
2101 * THANKS: Thank Dean Gaudet for the idea of -sparse.
2103 * po/findutils.pot: Updated from Translation Project
2105 * po/ga.po, po/pl.po, po/nl.po, po/tr.po, po/hu.po: Updated from
2106 the Translation Project
2108 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2110 * doc/find.texi: Fix some typos. (trivial change)
2112 2007-01-07 James Youngman <jay@gnu.org>
2114 * find/parser.c (parse_perm), find/testsuite/find.gnu/perm000.exp,
2115 find/testsuite/find.gnu/perm000.xo: -perm /000 is now quivalent
2116 to -perm -000, as dscussed in Savannah bug #14748. The warning
2117 message we issue when the user does this now explains that the
2118 defintion changed as we promised it would in 2005.
2120 * xargs/xargs.c (read_line): Correctly handle quoted empty
2121 arguments occurring first or last on a line (by adding an empty
2122 argument to the output). Fixes Savannah bug #18713.
2124 * xargs/testsuite/xargs.sysv/sv-bug-18713.exp,
2125 xargs/testsuite/xargs.sysv/sv-bug-18713.xo,
2126 xargs/testsuite/input/empty.xi: Test case for Savannah bug #18713.
2129 2006-12-29 James Youngman <jay@gnu.org>
2131 * find/testsuite/config/unix.exp:
2132 Verify that find_start is invoked with wither a p (pass) or an f
2135 * lib/listfile.c, lib/listfile.h:
2136 define find_blocksize() and provide a declaration for get_link_name()
2138 * find/testsuite/config/unix.exp: Updated copyright years.
2140 * 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:
2141 Avoid tests using -execdir if $PATH contains a relative directory
2144 Also flag $PATH values containing relative directories as being dangerous.
2146 * find/parser.c, find/defs.h, find/util.c:
2147 Instead of selecting the old or new exec handling code with the NEW_EXEC macro, just use the new code all the time
2149 * locate/testsuite/config/unix.exp:
2150 Fixed Savannah bug #13252, test suite failure caused by the fact that 'file normalize' is not available in Tcl 8.3
2152 * NEWS, find/pred.c:
2153 Fixed Savannah bug #18433, compilation failure with configure --enable-debug
2155 2006-12-28 James Youngman <jay@gnu.org>
2157 * NEWS: Document addition of %S.
2159 * find/defs.h, find/find.1, find/parser.c, find/pred.c:
2160 Implemented %S (sparseness) printf format, and general refactoring and cleanup of printf predicate
2162 2006-12-01 James Youngman <jay@gnu.org>
2164 * NEWS, configure.in: Begin work on findutils 4.2.30
2167 Fix compilation error for oldfind if --enable-debug was passed to configure
2169 * NEWS, configure.in: Prepare for work on findutils-4.3.3
2171 2006-11-25 James Youngman <jay@gnu.org>
2175 * find/testsuite/Makefile.am: Added test case for Savannah bug #17782
2177 * doc/textinfo.tex: Removed; we now use the version supplied
2180 * m4/mkinstalldirs.m4: Added this file. It's an excerpt from an
2181 old version of gnulib's m4/nls.po file. The current version of
2182 gnulib does not expand MKINSTALLDIRS, but gettext-0.14.6's version
2183 of po/Makefile.in.in expects it to be expanded. This m4 file
2186 2006-11-20 James Youngman <jay@gnu.org>
2188 * po/et.po, po/bg.po, po/pl.po, po/nl.po, po/tr.po: Updated
2189 translations for Bulgarian, Estonian, Dutch, Polish and Turkish.
2191 2006-11-08 James Youngman <jay@gnu.org>
2193 * find/testsuite/Makefile.am:
2194 Oops, indicate the right directory for the new test files
2196 * 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:
2197 Savannah bug#18222 - test case
2199 * ChangeLog, lib/buildcmd.c:
2200 Fixed Svannah bug #17782 ('./' prefix added at start of arg while it should be added at the start of the expansion of {})
2202 * find/ftsfind.c (process_all_startpoints): Set
2203 state.starting_path_length for every pathname argument.
2204 This fixes Savannah bug #18222.
2206 * find/pred.c (pred_prune): -prune should have an effect only if we are
2207 currently considering a directory (Savannah bug #15531).
2209 2006-10-15 James Youngman <jay@gnu.org>
2211 * lib/buildcmd.c: Fixed Savannah bug #17782, in which "find
2212 -execdir echo "foo {}" runs 'echo ./foo filename' instead of the
2213 correct command 'echo foo ./filename'.
2215 * po/hu.po, po/sl.po: Updated Hungarian and Slovenian po files
2217 2006-08-21 James Youngman <jay@gnu.org>
2219 * find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.gnu/sv-bug-17490.exp:
2220 Fixed Savannah bug #17490, which was a coiredump when -regex ZZZ was the final test on the command line
2222 2006-08-20 James Youngman <jay@gnu.org>
2224 * find/parser.c: Merged the fix for the trailing % in "find -printf".
2226 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2228 Port recent fixes for symbolic modes involving X from gnulib,
2229 and clarify the documentation in this area.
2230 * doc/find.texi: Use "file mode bits" when talking about
2231 all the file mode bits (including setuid, setgid, and sticky),
2232 and "permissions" when talking only about permissions bits
2233 (read, write, execute/search). Use "execute/search" to
2234 talk about the x bit, since it means both. You do not need
2235 permission to the linked-to file to follow a symlink for
2236 syscalls like "stat", but you do need search permission for
2237 the directories you traverse. Clarify the explanation of
2238 -perm. Use "that" instead of "which" when "which" isn't
2239 quite correct English.
2240 (Mode Bits): Renamed from Permissions. All uses changed.
2241 * doc/perm.texi: Sync from coreutils 6.0.
2242 * find/defs.h (struct perm_val.val): Now an array of two items,
2243 one for non-directories, and one for directories. This is
2244 to handle symbolic modes like +X correctly.
2245 * find/parser.c (parse_perm): Likewise. Also, adjust to
2246 latest gnulib interface for mode_adjust.
2247 * find/pred.c (pred_perm): Likewise.
2248 * find/testsuite/Makefile.am (EXTRA_DIST_XO): Add find.posix/perm-X.xo.
2249 (EXTRA_DIST_EXP): Add find.posix/perm-X.exp.
2250 * find/testsuite/find.posix/perm-X.exp: New file.
2251 * find/testsuite/find.posix/perm-X.so: New file.
2253 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2255 Port to latest gnulib, and simplify the bootstrapping procedure.
2256 * intl: Remove this directory and everything in it.
2257 * depcomp, install-sh, missing, mkinstalldirs, doc/texinfo.tex:
2258 Remove these files from CVS, as they are now gotten from gnulib.
2259 * README-CVS: Don't recommend "autoreconf -i", as it doesn't work
2261 * import-gnulib.sh (findutils_files): New var. Grab this stuff
2263 (findutils_modules): Add fopen-safer; remove stdio-safer. This
2264 adjusts to latest gnulib.
2265 (modules): Remove obsolete reference to intl_modules.
2266 * .cvsignore: Remove stamp-h; add stamp-h1.
2267 * doc/.cvsignore: Add regexprops.texi.
2268 * find/.cvsignore: Add oldfind.
2269 * lib/.cvsignore: Add .deps, regexprops.
2270 * m4/.cvsignore: Add Makefile.
2271 * po/.cvsignore: Add stamp-po.
2273 2006-08-19 James Youngman <jay@gnu.org>
2275 * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/bigprefix1.exp:
2276 Explicit checks for parefixes which are within range of a short, but outside the one-byte range
2278 * locate/testsuite/locate.gnu/bigprefix1.exp, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
2281 * locate/testsuite/Makefile.am, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
2282 Patch from Tavis Ormandy; check frcode handles initial space end encodes paths with more than 2^16 characters in the common prefix (trivial change)
2284 * locate/frcode.c: Changes to avoid overflows
2286 2006-08-11 James Youngman <jay@gnu.org>
2289 Avoid producing an invalid database if the first item begins with a space
2291 2006-08-10 James Youngman <jay@gnu.org>
2293 * find/pred.c, import-gnulib.sh, lib/listfile.c:
2294 Updated callers of the gnnulib filemode module so that they work with the 2006-07-09 version of gnulib
2296 * config.rpath: Updated config.rpath from autotools
2298 2006-08-08 James Youngman <jay@gnu.org>
2300 * locate/locatedb.h:
2301 Automatically verify (at compile time) that the frcode datastream
2302 cannot get desynchronised.
2305 Fixed Savannah bug #10494 (-maxdepth does not yield the same stat savinf in ftsfind as oldfind)
2307 * find/ftsfind.c: display fts_level for find -D search
2309 * find/util.c: Support find -D search
2312 If the user specified -E but the database is an slocate database, do
2313 not produce a list of files they cannot stat. Issue an error message
2314 explaining the problem.
2317 Issue states messages in a way which indicates more clearly what's
2318 happening when the numbers are reduced because not every filename
2319 matched the pattern.
2321 * locate/locate.c: Better error checking in drop_privs().
2323 2006-08-07 James Youngman <jay@gnu.org>
2325 * NEWS, locate/locate.c, locate/locatedb.h:
2326 Added support for slocate database format
2329 Removed unused code (tivial patch from Miloslav Trmac).
2331 * xargs/xargs.c: Removed unused code.
2334 Clarify that the output format for locate -S differs from BSD's.
2336 * NEWS, find/find.1:
2337 Savannah bug #15360: explain global vs. positional options more clearly in the manual page
2339 * NEWS: Typo in subsection header (* should be **).
2341 * NEWS, find/find.1:
2342 Savannah bug #15360: explain global vs. positional options more clearly in the manual page
2344 * doc/find.texi: Fixed some clumsy phrasing
2346 * NEWS, configure.in:
2347 Now diverging again from the released tarball, so change once more to -CVS version number suffixes
2349 2006-08-06 James Youngman <jay@gnu.org>
2351 * locate/locate.c: Fixed a typo in a comment.
2353 * NEWS, configure.in: Moving on towards 4.3.2...
2357 * find/testsuite/config/unix.exp:
2358 Check that we can see the find.o file in the right position relative
2359 to $base_dir to ensure that we are indeed testing the program we just built.
2361 * find/testsuite/config/unix.exp:
2362 Be more paranoid about whether we're really checking the right version
2365 * NEWS, configure.in: Prepare for release of 4.3.1
2367 * doc/find.texi: Document the -O and -D options
2369 * find/defs.h, find/find.1, find/util.c:
2370 'find -D help' now explains the available debugging options
2372 * 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:
2373 Make dist changed all the po files again
2375 2006-08-05 James Youngman <jay@gnu.org>
2377 * NEWS: Described more changes in 4.3.1.
2379 * locate/testsuite/config/unix.exp:
2380 Set the environment variable so that updatedb knows where to find it; it's not in BINDIR yet during 'make check'
2382 * 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:
2383 Make dist changed all the po files again :)
2385 * po/et.po, po/vi.po: UPdated the Estonian and Vietnamese translations
2387 * NEWS, configure.in: Prepare for release of findutils-4.2.28
2389 * 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:
2390 Make dist changed all the po files again :)
2392 * configure.in: Added Bulgarian translation.
2394 * po/bg.po: Include Bulgarian translation
2396 * configure.in: Added Bulgarian translation.
2398 * po/et.po, po/vi.po: Updated Estonian and Vietnamese translations
2400 * NEWS: Removed spurious comma.
2402 * NEWS: Listed the updated translations.
2404 * find/parser.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
2405 Fixed Savannah bug#16738, find does not subtract environment size in find .. -exec {} +
2407 * NEWS: Updated the list of bugfixes etc.
2409 2006-06-15 James Youngman <jay@gnu.org>
2411 * NEWS: Described recent changes
2413 * configure.in: fix to how we invoke the gnulib regex module
2416 Savannah bug #16269: avoid confusion over what type of quotes to use
2419 * find/parser.c: Option -nowarn should not itself produce a warning
2421 * find/defs.h: Remoevd useless declaration of last_pred
2423 2006-06-14 James Youngman <jay@gnu.org>
2425 * 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:
2426 Updated translation files ga pl sv tr nl ca vi bg fr
2428 * locate/updatedb.sh:
2429 Fixed Savannah bug #16579 (su false should be su -c false)
2431 2006-04-01 James Youngman <jay@gnu.org>
2434 Fixed Savannah bug #15800: "Hard link count is wrong" reports wrong
2437 2006-03-31 James Youngman <jay@gnu.org>
2439 * po/hu.po: Updated Hungarian translation
2441 2006-01-04 James Youngman <jay@gnu.org>
2443 * find/testsuite/find.posix/sizetype.exp, find/testsuite/find.posix/sizetype.xo, find/testsuite/find.posix/typesize.exp, find/testsuite/find.posix/typesize.xo:
2444 Additional tests for -type -size and -size -type
2446 * 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:
2447 Initial implementation of a cost-based optimiser
2449 2005-12-23 James Youngman <jay@gnu.org>
2451 * find/parser.c: Refactor of parse_[acm]time
2453 * find/defs.h, find/find.c, find/finddata.c, find/ftsfind.c, find/tree.c, find/util.c:
2454 last_pred can be a static in tree.c rather than a global variable
2456 * find/tree.c, find/finddata.c:
2457 Moved some global data out of finddata.o and into static variables in tree.c
2459 * 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:
2460 Fixed many compilation warnings
2462 * find/find.c, find/ftsfind.c, find/util.c:
2463 Evaluating the predicates can change the contents of the data structure (for example to add another exec item)
2465 * find/defs.h, find/find.c, find/ftsfind.c, find/tree.c, find/util.c:
2466 Re-factored a lot of common expression-handling code out of find.c and ftsfind.c, mainly into tree.c
2468 * find/find.c, find/ftsfind.c, find/tree.c:
2469 Savannah bug #15271: more helpful error messages for cases where there is a missing expression
2471 2005-12-20 James Youngman <jay@gnu.org>
2473 * 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:
2474 Savannah bug #15195: more helpful error messages for 'find . ( )' or 'find . \!'
2476 * ChangeLog: Added entries for recent changes.
2478 * find/defs.h, find/find.c, find/ftsfind.c, find/testsuite/find.posix/bracket-depth.exp, find/util.c:
2479 Further fix to bug# 15235: a leading comma is a filename not an expression
2481 * find/defs.h, find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.posix/empty-parens.exp, find/tree.c:
2482 Accept 'find ( -depth )' but reject 'find ( )'
2484 * 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:
2487 * find/testsuite/find.gnu/delete.exp:
2488 Use the new find program, and the new way of locating it (/ instead of )
2490 * find/testsuite/Makefile.am: Added bracket-depth.exp.
2492 * NEWS, configure.in: We have moved on from 4.3.0
2494 * 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:
2495 Avoid getting confused by filename arguments of which the first
2496 character looks like a predicate, for example ',x' or '!x' or
2497 '(x' (Savannah bug #15235).
2499 2005-12-20 James Youngman <jay@gnu.org>
2501 * find/defs.h, find/find.c, find/ftsfind.c,
2502 find/testsuite/find.posix/bracket-depth.exp, find/util.c: Further
2503 fix to bug# 15235: a leading comma is a filename not an expression
2505 * find/defs.h, find/parser.c, find/testsuite/Makefile.am,
2506 find/testsuite/find.posix/empty-parens.exp, find/tree.c: Accept
2507 'find ( -depth )' but reject 'find ( )'
2509 * find/testsuite/find.gnu/delete.exp: Use the new find program,
2510 and the new way of locating it ($OLDFIND/$FTSFIND instead of $FIND)
2512 * find/testsuite/Makefile.am: Added bracket-depth.exp.
2514 * NEWS, configure.in: We have moved on from 4.3.0
2516 * find/defs.h, find/find.c, find/ftsfind.c,
2517 find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
2518 find/testsuite/find.posix/files-not-expressions1.exp,
2519 find/testsuite/find.posix/files-not-expressions1.xo,
2520 find/testsuite/find.posix/files-not-expressions2.exp,
2521 find/testsuite/find.posix/files-not-expressions2.xo,
2522 find/testsuite/find.posix/files-not-expressions3.exp,
2523 find/testsuite/find.posix/files-not-expressions3.xo, find/util.c:
2524 Avoid getting confused by filename arguments of which the first
2525 character looks like a predicate, for example ',x' or '!x' or '(x'
2526 (Savannah bug #15235).
2528 2005-12-19 James Youngman <jay@gnu.org>
2530 * find/testsuite/config/unix.exp:
2531 Run every test twice, once with the old (non-fts) binary and once with
2532 the new (fts-enabled) binary.
2534 2005-12-19 Eric Blake <ebb9@byu.net>
2536 * find/testsuite/Makefile.am,
2537 find/testsuite/find.posix/sv-bug-15235.xo,
2538 find/testsuite/find.posix/sv-bug-15235.exp: New tests for Savannah
2541 * NEWS, find/find.1, doc/find.texi (Invoking find): Document bug
2542 fix for Savannah bug 15235.
2544 2005-12-16 James Youngman <jay@gnu.org>
2546 * xargs/xargs.1, xargs/xargs.c: Fixed bug# 15211, that xargs
2547 --show-limits is not documented in the manpage or in the usage
2550 2005-12-12 James Youngman <jay@gnu.org>
2554 * find/testsuite/find.gnu/access.exp:
2555 Don't leave junk files lying around the place
2557 * README-CVS: Update the the instructions for getting gnulib; the
2558 CVS arrangements at Savannah have changed.
2560 * ChangeLog, NEWS, doc/find.texi, doc/perm.texi, find/defs.h, find/parser.c:
2561 Merged changes from 4.2.x branch again
2563 * NEWS, doc/find.texi, find/defs.h, find/find.c, find/ftsfind.c,
2564 find/parser.c, find/pred.c, find/util.c, lib/listfile.c,
2565 lib/listfile.h: Initial code to allow control over how -ls quote
2566 (or does not quote) control characters; not enabled yet
2568 2005-12-11 James Youngman <jay@gnu.org>
2570 * ChangeLog, THANKS, xargs/xargs.c:
2571 Fixed spelling errors in Bob Proulx's name. Sorry, Bob.
2573 2005-12-10 James Youngman <jay@gnu.org>
2576 Aaron Hawley: Updated perm.texi from the coreutils distribution
2579 Avoid using entries which have the same name as POSIX library
2580 functions (fprintf, printf, exec) as the implementation is allowed to
2581 #define these. That generates hard-to-grok compilation errors.
2583 2005-12-10 Andreas Metzler <gnu@downhill.at.eu.org>
2585 * ChangeLog, NEWS, configure.in, find/defs.h, find/parser.c:
2586 Applied patch from Andreas Metzler fixing Savannah bug #15181:
2587 implicit declaration of parse_openparen
2589 2005-12-08 James Youngman <jay@gnu.org>
2591 * doc/find.texi: Typo and spelling corrections from Aaron Hawley
2593 2005-12-05 James Youngman <jay@gnu.org>
2595 * Released findutils-4.2.27
2597 2005-12-05 James Youngman <jay@gnu.org>
2599 * doc/find.texi, find/find.1, locate/locate.1, xargs/xargs.1:
2600 Savannah patch #3775 from Aaron Hawley: reconciling man pages
2601 differences; did not apply the patch, but resolved all the
2602 remaining issues manually by updating the documentation (mostly
2603 the Texinfo documentation, which was missing a number of specific
2604 technical statements about the behaviour of various options)
2606 2005-12-04 James Youngman <jay@gnu.org>
2608 * doc/find.texi: Document --show-limits
2611 Correctly display the size of the argument buffer we really allocated.
2613 * doc/find.texi, find/find.1, find/parser.c, find/pred.c, NEWS:
2614 Savannah bug #14748 (which this change does NOT fix): issue
2615 warning of future changes in the behaviour of -perm /000
2617 2005-11-30 James Youngman <jay@gnu.org>
2620 Typo correction from Benno Schulenberg <benno@nietvergeten.nl>
2623 2005-11-29 James Youngman <jay@gnu.org>
2626 Typo "Ilegal"; change to "Invalid" since this is not really illegal!
2627 Bug report by Primoz Peterlin.
2629 * lib/regexprops.c, xargs/xargs.c:
2630 Prefer the word 'Invalid' or the phrase 'not allowed' over
2631 'Illegal', as per the GNU coding standards, and as per the
2632 suggestion from Benno Schulenberg
2634 2005-11-24 James Youngman <jay@gnu.org>
2636 * NEWS, lib/buildcmd.c, lib/buildcmd.h: Merge to trunk from 4.2.x fixes
2639 Deleted inaccurate comment about the default value of ctl->args_per_exec.
2641 * NEWS, lib/buildcmd.c, lib/buildcmd.h:
2642 Be more conservative about the total number of arguments we will
2643 allow (to avoid exec limits on Linux/PPC)
2645 2005-11-23 James Youngman <jay@gnu.org>
2647 * NEWS: Bug #14921 has been fixed.
2650 Savannah bug #14921: when a Linux bind filesystem is in use, find
2651 would expand '-printf %F' to 'none' if a bind mount targetted the same
2652 filesystem as the one containing the file to be described.
2654 * NEWS: Updated to describe recent changes
2656 * doc/find.texi, find/find.1: Documented find -printf %M
2658 * lib/buildcmd.c, xargs/testsuite/Makefile.am,
2659 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2660 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2661 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2662 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo:
2663 Ensure that the test suite still passes even if the current
2664 system's value of ARG_MAX is different from the development/test
2667 * lib/buildcmd.c: reindent and untabify
2669 * configure.in: The CVS code is moving on from the previous release.
2671 2005-11-22 James Youngman <jay@gnu.org>
2673 * ChangeLog: Updated with recent changes.
2675 2005-11-21 James Youngman <jay@gnu.org>
2677 * locate/testsuite/config/unix.exp:
2678 Even if we expect locate to return a nonzero status, the test should
2679 still fail if updatedb fails!
2681 * locate/testsuite/locate.gnu/ignore_case2.exp:
2682 Set the current directory for updatedb. This test case is supposed to
2683 fail because the filename is not matched, not because updatedb fails!
2685 * locate/updatedb.sh:
2686 Check the binaries actually exist in the place we expect.
2688 2005-11-20 James Youngman <jay@gnu.org>
2690 * locate/locate.1, xargs/xargs.1: Escape '-' as '\-' where appropriate.
2693 Escape '-' as '\-' where appropriate. Fixes last part of bug #14556.
2695 2005-11-19 James Youngman <jay@gnu.org>
2697 * doc/find.texi, find/find.1:
2698 Applied edited form of Andreas Metzler's -perm /mode documentation
2699 patch resolving Savannah bug #14619.
2702 In the success case, extendbuf() should preserve the previous value of
2703 errno. Fixes Savannah bug #14842.
2705 * xargs/testsuite/Makefile.am: Added new test files
2708 Correctly indicate the default regular expression syntax (fixes
2709 Savannah bug #14836).
2711 * NEWS, configure.in: Released findutils-4.2.26
2713 * ChangeLog, NEWS, lib/buildcmd.c,
2714 xargs/testsuite/inputs/16383-ys.xi,
2715 xargs/testsuite/inputs/32767-ys.xi,
2716 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2717 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2718 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2719 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: Applied
2720 bugfix from Jim Meyering (tiny change), where many short arguments
2721 would cause xargs (and probably find -exec .. {} +) to fail
2722 because execve() returns E2BIG, which we should avoid
2724 * xargs/testsuite/inputs/16383-ys.xi,
2725 xargs/testsuite/inputs/32767-ys.xi,
2726 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2727 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2728 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2729 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: New file.
2731 * po/be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
2732 findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
2733 ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
2734 ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po,
2735 zh_TW.po: Updated Portuguese .po file and did update-po
2737 2005-11-18 Jim Meyering <jim@meyering.net> (tiny change)
2739 * lib/buildcmd.c (bc_push_arg): When exec'ing, don't exceed
2740 Linux's limit on the maximum number of command line arguments.
2742 2005-11-11 James Youngman <jay@gnu.org>
2744 * NEWS, find/find.c, find/fstype.c: Savannah bug #14922: if we need the
2745 list of mounted filesystems but it is not available, exit fatally
2746 with a message. If it is not available but we don't need it,
2747 there is no need for an error.
2749 * po/ro.po, ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po,
2750 zh_CN.po, zh_TW.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po,
2751 pt_BR.po, be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po,
2752 fi.po, findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po,
2753 it.po, ja.po: Updated Polish translation
2755 2005-10-31 James Youngman <jay@gnu.org>
2758 Removed redundant additional description of "--regextype".
2760 2005-10-08 James Youngman <jay@gnu.org>
2762 * find/find.c, lib/regextype.c: Fixed Savannah bug #14616, which
2763 was that c99 code had crept in and it didn't compile on c89
2766 * doc/find.texi: Savannah patch #4371 from Andreas Metzler; the
2767 argument of -I is mandatory
2769 2005-09-21 James Youngman <jay@gnu.org>
2771 * xargs/xargs.1, xargs/xargs.c: Clarified the -E option
2773 2005-09-20 James Youngman <jay@gnu.org>
2775 * NEWS, configure.in, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
2776 Documentation clarification: -L and -I take a mandatory argument;
2779 2005-09-17 James Youngman <jay@gnu.org>
2782 Fixed Savannah bug #14550 - if environment is too large to allow
2783 exec() to work, we cannot even use "xargs --help".
2786 Avoid the use of -perm +mode, using -perm /mode instead. From comment
2787 by Andreas Metzler (though I didn't read the patch).
2789 * ChangeLog, doc/find.texi, find/find.1, xargs/xargs.1:
2790 Typo fix from A Costa (tiny change)
2792 * NEWS: Corrections for find manual page - symbolic permissions.
2795 Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
2796 'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
2798 2005-09-17 A Costa <agcosta@gis.net> (tiny change)
2800 docs/find.texi: Fixed typo
2801 find/find.1: Fixed typo
2802 xargs/xargs.1: Fixed typo
2804 2005-09-17 James Youngman <jay@gnu.org>
2806 * NEWS: Corrections for find manual page - symbolic permissions.
2809 Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
2810 'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
2812 2005-09-06 James Youngman <jay@gnu.org>
2814 * xargs/xargs.c: Typo in "IEEE" in a comment.
2816 2005-09-04 James Youngman <jay@gnu.org>
2818 * find/defs.h, find/find.c, find/parser.c, find/pred.c,
2819 Work around compilation failure with GCC 4 and AIX 5.1, in which
2820 open is #defined to open64
2822 * po/be.po, ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
2823 findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
2824 ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
2825 ru.po, rw.po, sk.po, sl.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po,
2826 zh_TW.po: Work around compilation failure with GCC 4 and AIX 5.1,
2827 in which open is #defined to open64
2829 2005-09-03 James Youngman <jay@gnu.org>
2831 * find/testsuite/find.gnu/quit.exp: Fixed Savannah bug#14390, by
2832 avoiding an accidental assumption in quit.exp that directory
2833 entries are returned by readir() in any particular order
2835 * NEWS, configure.in, doc/find.texi, xargs/testsuite/Makefile.am,
2836 xargs/testsuite/inputs/helloworld.xi,
2837 xargs/testsuite/xargs.gnu/delim-o.exp,
2838 xargs/testsuite/xargs.gnu/delim-o.xo, xargs/xargs.1,
2839 xargs/xargs.c: Added the --delimiter option to xargs, resolving
2840 Savannah support request sr #102914
2842 * ChangeLog, NEWS, configure.in: Released findutils-4.2.25
2844 * po/sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po, sl.po, be.po,
2845 ca.po, da.po, de.po, el.po, eo.po, es.po, et.po, fi.po,
2846 findutils.pot, fr.po, ga.po, gl.po, hr.po, hu.po, id.po, it.po,
2847 ja.po, ko.po, lg.po, ms.po, nl.po, pl.po, pt.po, pt_BR.po, ro.po,
2848 ru.po, rw.po, sk.po: Did update-po
2850 2005-09-02 James Youngman <jay@gnu.org>
2852 * doc/find.texi, find/find.1:
2853 Improved documentation in response to Savannah bug #14376
2855 2005-09-01 James Youngman <jay@gnu.org>
2857 * po/ChangeLog, ChangeLog: Updated with recent changes.
2859 * locate/locate.c: Removed unused struct stringbuf.soffs.
2861 * doc/find.texi: Typo fix from Jim Meyering (trivial change)
2863 2005-09-01 Jim Meyering <jim@meyering.net>
2865 * locate/locate.c (struct stringbuf) [soffs]: Remove unused member.
2866 (locate): Remove initialization, too.
2868 2005-09-01 James Youngman <jay@gnu.org>
2870 * doc/find.texi: Typo fix from Jim Meyering (trivial change)
2872 2005-08-30 James Youngman <jay@gnu.org>
2874 * find/defs.h, find/find.c, find/fstype.c, find/pred.c:
2875 Attempted fix for compilation when AFS is #defined
2877 2005-08-24 James Youngman <jay@gnu.org>
2879 * po/sl.po: Updated from Translation Project
2881 2005-08-13 James Youngman <jay@gnu.org>
2883 * find/find.1: Remind the user to quote the pattern argument to -iname.
2885 2005-08-12 James Youngman <jay@gnu.org>
2887 * NEWS: Corrected typo.
2889 2005-08-11 James Youngman <jay@gnu.org>
2891 * po/fr.po: Updated French translation and added new PO file zh_TW.po
2892 for Chinese (traditional)
2894 2005-08-09 James Youngman <jay@gnu.org>
2896 * NEWS: Indicate that regexprops.texi is built on Cygin now that
2897 Savannah bug #14025 has been fixed.
2899 * lib/Makefile.am, lib/regexprops.c: Fixed compilation failure on
2900 Cygwin - Savannah Bug #14025 (tiny change, three lines), reported
2901 and fixed by Eric Blake
2903 * find/testsuite/Makefile.am,
2904 find/testsuite/find.posix/sv-bug-14070.exp,
2905 find/testsuite/find.posix/sv-bug-14070.xo: Added new test case for
2906 SourceForge bug #14070
2908 * find/testsuite/find.posix/sv-bug-14070.exp,
2909 find/testsuite/find.posix/sv-bug-14070.xo: New file.
2911 * find/defs.h, find/ftsfind.c, find/pred.c, find/util.c:
2912 Ensure we can still build with --enable-debug
2914 * find/testsuite/config/unix.exp,
2915 find/testsuite/find.gnu/execdir-one.exp,
2916 find/testsuite/find.gnu/execdir-root-only.exp,
2917 find/testsuite/find.gnu/sv-bug-12230.exp: If . is on $PATH,
2918 indicate that the -execdir tests cannot be carried out, as opposed
2919 to indicating that those tests fail
2921 2005-08-07 James Youngman <jay@gnu.org>
2923 * NEWS: Indicated that some test suite files have been renamed.
2925 * xargs/testsuite/Makefile.am, xargs/testsuite/inputs/eof.xi,
2926 xargs/testsuite/inputs/eof1.xi,
2927 xargs/testsuite/xargs.sysv/eof.exp,
2928 xargs/testsuite/xargs.sysv/eof.xo,
2929 xargs/testsuite/xargs.sysv/eof1.exp,
2930 xargs/testsuite/xargs.sysv/eof1.xo,
2931 xargs/testsuite/xargs.posix/lc_l2.exp,
2932 xargs/testsuite/xargs.posix/lc_l2.xo,
2933 xargs/testsuite/xargs.sysv/l2.exp,
2934 xargs/testsuite/xargs.sysv/l2.xo,
2935 xargs/testsuite/xargs.sysv/lc_l2.exp,
2936 xargs/testsuite/xargs.sysv/lc_l2.xo,
2937 xargs/testsuite/xargs.posix/L2.exp,
2938 xargs/testsuite/xargs.posix/l2.exp,
2939 xargs/testsuite/xargs.posix/L2.xo,
2940 xargs/testsuite/xargs.posix/l2.xo,
2941 xargs/testsuite/xargs.posix/uc_L2.exp,
2942 xargs/testsuite/xargs.posix/uc_L2.xo: Work around problems with
2943 CVS clients on case-insentitive operating systems
2945 * debian/Changelog: Removed Changelog file since changelog is the
2946 one we should be using and having both files upsets Cygwin
2947 systems which cannot tell the dirrerence between changelog and
2951 If DEBUG is defined, show the symbolic names fro fts_info values.
2953 * find/ftsfind.c: Added additional diagnostics.
2955 2005-08-02 James Youngman <jay@gnu.org>
2958 Updated Vietnamese and Turkish translations from Translation Project
2960 * 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:
2963 * po/et.po, sk.po, ro.po:
2964 Updated Romanian, Slovak and Estonian translations from Translation Project
2966 2005-08-01 James Youngman <jay@gnu.org>
2968 * ABOUT-NLS, INSTALL, Makefile.am, configure.in, depcomp,
2969 doc/texinfo.tex, install-sh, missing, mkinstalldirs: By adding the
2970 missing AM_GNU_GETTEXT_VERSION call, allowed autopoint to update
2971 those files of which it has updated copies.
2973 * po/Makevars.template, po/Makefile.in.in, po/findutils.pot:
2974 Using AM_GNU_GETTEXT_VERSION, allowed gettext to update the infrastructure
2976 * po/Rules-quot, po/boldquot.sed, po/en@boldquot.header, po/en@quot.header, po/insert-header.sin, po/quot.sed:
2977 Files added by autopoint now that we are using AM_GNU_GETTEXT_VERSION
2979 * find/testsuite/Makefile.am: Added find.gnu./perm-slash.{exp,xo}.
2981 * po/nl.po: Updated Dutch translation from Translation Project
2983 * po/ga.po: Updated Irish translation from the Translation Project
2985 * po/da.po: Updated Danish translation from the Translation Project
2987 * po/ca.po: Updated Catalan translation from Translation Project
2989 2005-07-31 James Youngman <jay@gnu.org>
2991 * find/testsuite/excuses.txt: We now have tests for -perm.
2993 * NEWS, configure.in, find/parser.c,
2994 find/testsuite/find.gnu/perm-slash.exp,
2995 find/testsuite/find.gnu/perm-slash.xo: Fixed bug which caused find
2996 -perm /440 to be treated the same as find -perm 440
2998 * find/testsuite/Makefile.am:
2999 Generic tests for -perm -NNN and -perm NNN
3001 * find/testsuite/excuses.txt: New file - list of test cases that
3002 still need to be written, along with excuses why they haven't been
3005 * find/testsuite/find.posix/perm-vanilla.exp,
3006 find/testsuite/find.posix/perm-vanilla.xo: Generic tests for -perm
3009 * find/testsuite/find.gnu/inum.exp:
3010 Ensure that the test would fail if -inum just always returned true
3012 * find/testsuite/Makefile.am, find/testsuite/find.gnu/ilname.exp,
3013 find/testsuite/find.gnu/ilname.xo,
3014 find/testsuite/find.gnu/inum.exp, find/testsuite/find.gnu/inum.xo,
3015 find/testsuite/find.gnu/lname.exp,
3016 find/testsuite/find.gnu/lname.xo,
3017 find/testsuite/find.gnu/xtype.exp,
3018 find/testsuite/find.gnu/xtype.xo,
3019 find/testsuite/find.posix/links.exp,
3020 find/testsuite/find.posix/links.xo: New test cases for -ilname,
3021 -inum, -lname, -xtype
3023 * find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
3024 find/testsuite/find.gnu/delete.xo,
3025 find/testsuite/find.gnu/iregex1.exp,
3026 find/testsuite/find.gnu/iregex1.xo,
3027 find/testsuite/find.gnu/regex1.exp,
3028 find/testsuite/find.gnu/regex1.xo,
3029 find/testsuite/find.gnu/regex2.exp,
3030 find/testsuite/find.gnu/regex2.xo,
3031 find/testsuite/find.gnu/samefile-copy.exp,
3032 find/testsuite/find.gnu/samefile-copy.xo,
3033 find/testsuite/find.gnu/samefile-link.exp,
3034 find/testsuite/find.gnu/samefile-link.xo,
3035 find/testsuite/find.gnu/samefile-same.exp,
3036 find/testsuite/find.gnu/samefile-same.xo,
3037 find/testsuite/find.gnu/samefile-symlink.exp,
3038 find/testsuite/find.gnu/samefile-symlink.xo: Further test cases
3040 * find/find.1: Indicate that -delete implies -depth (find.texi
3041 already mentioned this).
3043 * find/testsuite/Makefile.am:
3044 Brought the list of .exp and .xo files in Makefile.am into sync with
3045 the actual contents of the CVS repository.
3047 * find/testsuite/Makefile.am, find/testsuite/find.gnu/depth-d.exp,
3048 find/testsuite/find.gnu/depth-d.xo,
3049 find/testsuite/find.gnu/empty.exp,
3050 find/testsuite/find.gnu/empty.xo,
3051 find/testsuite/find.gnu/execdir-one.exp,
3052 find/testsuite/find.gnu/execdir-one.xo,
3053 find/testsuite/find.gnu/false.exp,
3054 find/testsuite/find.gnu/false.xo,
3055 find/testsuite/find.gnu/follow-basic.exp,
3056 find/testsuite/find.gnu/follow-basic.xo,
3057 find/testsuite/find.gnu/gnu-or.exp,
3058 find/testsuite/find.gnu/gnu-or.xo,
3059 find/testsuite/find.gnu/gnuand.exp,
3060 find/testsuite/find.gnu/gnuand.xo,
3061 find/testsuite/find.gnu/gnunot.exp,
3062 find/testsuite/find.gnu/gnunot.xo,
3063 find/testsuite/find.gnu/iname.exp,
3064 find/testsuite/find.gnu/iname.xo,
3065 find/testsuite/find.gnu/ipath.exp,
3066 find/testsuite/find.gnu/ipath.xo,
3067 find/testsuite/find.gnu/iwholename.exp,
3068 find/testsuite/find.gnu/iwholename.xo,
3069 find/testsuite/find.gnu/path.exp, find/testsuite/find.gnu/path.xo,
3070 find/testsuite/find.gnu/print0.exp,
3071 find/testsuite/find.gnu/print0.xo,
3072 find/testsuite/find.gnu/quit.exp, find/testsuite/find.gnu/quit.xo,
3073 find/testsuite/find.gnu/true.exp, find/testsuite/find.gnu/true.xo,
3074 find/testsuite/find.gnu/wholename.exp,
3075 find/testsuite/find.gnu/wholename.xo,
3076 find/testsuite/find.posix/and.exp,
3077 find/testsuite/find.posix/and.xo,
3078 find/testsuite/find.posix/exec-one.exp,
3079 find/testsuite/find.posix/exec-one.xo,
3080 find/testsuite/find.posix/grouping.exp,
3081 find/testsuite/find.posix/grouping.xo,
3082 find/testsuite/find.posix/name.exp,
3083 find/testsuite/find.posix/name.xo,
3084 find/testsuite/find.posix/posixnot.exp,
3085 find/testsuite/find.posix/posixnot.xo,
3086 find/testsuite/find.posix/prune.exp,
3087 find/testsuite/find.posix/prune.xo: Added new test cases for many
3088 of the actions and tests of find
3090 * find/find.c (default_prints):
3091 not a static function, so do not declare it as one.
3093 * m4/withfts.m4: Fixed underquoted definition of FIND_WITH_FTS.
3094 [this change is currently on a branch only]
3096 2005-07-30 James Youngman <jay@gnu.org>
3098 * find/finddata.c, find/ftsfind.c, find/parser.c, find/pred.c,
3099 find/util.c, m4/Makefile.am, m4/withfts.m4: Initial attempt to
3100 convert find to use gnulib's fts()
3101 [this change is currently on a branch only]
3103 * find/finddata.c, find/ftsfind.c, m4/withfts.m4: New file.
3104 [this change is currently on a branch only]
3106 * NEWS, configure.in, find/Makefile.am, find/defs.h, find/find.c,
3107 import-gnulib.sh: Initial attempt to convert find to use gnulib's
3108 fts() [this change is currently on a branch only]
3110 2005-07-29 James Youngman <jay@gnu.org>
3112 * NEWS, configure.in
3113 Prepared for the release of findutils-4.2.24
3115 * ChangeLog: Updated with recent changes.
3117 * NEWS, find/find.1, doc/find.texi:
3118 Indicate that -ok and -okdir redirect stdin from /dev/null.
3120 * NEWS: Explain the directory link count change more throroughly.
3122 * NEWS: Fixed bug #13973.
3124 * find/pred.c (pred_fprintf): Fix Savannah bug #13973: Modify the
3125 handling of -printf %Y so that it no longer modifies stat_buf
3127 * find/testsuite/find.gnu/printf-symlink.exp,
3128 find/testsuite/find.gnu/printf-symlink.xo: Detect Savannah bug
3129 #13973: pollution of stat_buf by the %Y directive (trivial change
3130 from Andreas Metzler)
3132 * INSTALL, depcomp, doc/texinfo.tex, install-sh, missing, mkinstalldirs:
3133 Updated auxilliary files from the automake-1.9 distribution
3136 Introduce new Automake conditional, CROSS_COMPILING, true when we are corss compiling
3139 If we decline to follow a symbolic link due to the safety check, issue a more self-explanatory warning message
3141 * lib/Makefile.am: Don't build regexprops if we are cross compiling
3144 Depend on the regex.h file rather than the 'regexprops' binary,
3145 because the header file will always exist even if we are doing "make
3146 dist". Otherwise "make distcheck" fails because it tries to rebuild
3147 find.info while the source-directory is read-only.
3149 2005-07-28 James Youngman <jay@gnu.org>
3152 Say "other users" rather than "rest of the world" when talking about
3153 Unix permissions. Fixes Savannah bug #4246.
3155 2005-07-27 James Youngman <jay@gnu.org>
3157 * xargs/testsuite/Makefile.am: Added new test case 'childfail.exp'.
3160 Updated the description of the safe-dir-change operation to reflect
3161 what find now does on systems that lack O_NOFOLLOW.
3163 * NEWS, find/parser.c: Indicate in the output of find --version if
3164 the leaf optimisation is enabled or not
3166 * find/find.c: Fixed typo.
3168 * find/find.c: If the link count of a directory starts off less
3169 than two, disable the leaf optimisation for this directory.
3171 2005-07-26 James Youngman <jay@gnu.org>
3173 * lib/regexprops.c: Further small corrections from Karl.
3176 Reordered the sections in the manual to put the "Common Tasks" and
3177 "Worked Examples" chapters together.
3179 * configure.in, find/find.c: Allow the leaf optimisation to be
3180 disabled by default with the configure option
3181 --disable-leaf-optimisation
3183 * find/find.c: Removed old code for antuqie version of savedir().
3185 * lib/regextype.c: Put the syntaxes in alphabetical order.
3187 * lib/regexprops.c: Karl made some more readability suggestions.
3189 2005-07-24 James Youngman <jay@gnu.org>
3191 * doc/Makefile.am: If the regexprops program has changed we should
3192 re-run it, since it will probably now produce different output
3195 Allow the caller to detect if one regex type is identical to another.
3198 Define the preprocessor macro FINDUTILS for that code int he lib/
3199 directory can be slightly more reusable.
3202 Allow the caller to detect if one regex type is identical to another.
3205 Made Texinfo style corrections suggested by Karl Berry.
3207 2005-07-22 James Youngman <jay@gnu.org>
3209 * xargs/testsuite/xargs.posix/childfail.exp, xargs/xargs.c: Fix
3210 Savannah bug #13878, in which xargs deals incorrectly with child
3211 failure, returning 0 when it should return 123
3213 2005-07-17 James Youngman <jay@gnu.org>
3215 * find/find.1: (tiny change) Corrections by Greg Wooledge
3217 2005-07-16 James Youngman <jay@gnu.org>
3219 * doc/find.texi: Updates following comments by Dave Gilbert.
3221 * NEWS: Corrected a typo.
3224 Added in the example about updating an aggregate timestamp file.
3226 2005-07-15 James Youngman <jay@gnu.org>
3228 * po/da.po: Updated Danish translation from translation project
3230 2005-07-14 James Youngman <jay@gnu.org>
3232 * NEWS, doc/Makefile.am, doc/find.texi, lib/Makefile.am,
3233 lib/regexprops.c, lib/regextype.c, lib/regextype.h: Added
3234 --regextype and -regextype options to locate and find
3235 respectively, and documented these
3237 * doc/find.texi: We use GNU Emacs regexps by default now.
3240 We require GNU sort in order for locate to handle newlines correctly,
3243 2005-07-10 James Youngman <jay@gnu.org>
3246 Applied several documentation improvement patches from Aaron Hawley
3248 * ChangeLog, NEWS: Updated with recent changes.
3250 * NEWS: Recent gnulib changed have fixed -iregex
3252 * doc/find.texi, xargs/xargs.1:
3253 Tiny patch from Andreas Metzler: xargs -I is like xargs -i, but the latter is deprecated
3255 2005-07-06 James Youngman <jay@gnu.org>
3257 * find/defs.h, find/find.c, find/parser.c, find/pred.c:
3258 Fixed Savannah bug #13650; programs run by -exec cannot read stdin
3260 2005-07-04 James Youngman <jay@gnu.org>
3262 * NEWS: *** empty log message ***
3265 Added a "Worked Examples" section. It currently only contains a
3266 (long) example about deleting files.
3268 * .cvsignore: Some extra stuff to ignore.
3270 2005-07-03 James Youngman <jay@gnu.org>
3272 * find/Makefile.am: Don't need regexprops.c really...
3274 * lib/regextype.c, lib/regextype.h:
3275 New files for selecting regex type based on a keyword
3277 * locate/locate.1: Documented the fact that we now use Emacs-style
3278 regexps, not POSIX EREs, for compatibility with find -regex.
3280 * lib/Makefile.am, locate/locate.c, doc/find.texi,
3281 find/Makefile.am, find/defs.h, find/find.1, find/find.c,
3282 find/parser.c: Fixed Savannah bug #13495: find now uses
3283 Emacs-style regexps by default
3285 2005-07-02 James Youngman <jay@gnu.org>
3287 * configure.in, find/defs.h, find/fstype.c, find/parser.c,
3288 intl/dcigettext.c, lib/buildcmd.c, lib/listfile.c,
3289 lib/savedirinfo.c, locate/locate.c, xargs/xargs.c: Assume unistd.h
3290 is present - avoid using HAVE_UNISTD_H
3292 2005-07-01 Jim Meyering <jim@meyering.net>
3294 With `-fprint F' or `-fprintf F', don't write diagnostics
3295 to F when stderr is closed.
3297 * find/parser.c: Include "stdio-safer.h".
3298 (open_output_file): Use fopen_safer, not fopen.
3299 * import-gnulib.sh (findutils_modules): Add stdio-safer.
3301 2005-07-01 James Youngman <jay@gnu.org>
3304 Aaron pointed out a potentially-confusing sentence. I fixed it.
3306 * find/defs.h, find/find.1, find/find.c, find/parser.c,
3307 find/pred.c, find/util.c: Allow consistency-checking of the
3308 predicates, checking for example that actions all have side
3311 2005-06-29 James Youngman <jay@gnu.org>
3313 * doc/find.texi: Applied patch from Aaron Hawley (Savannah patch
3314 #3751: Typos and small suggestions to find.texi)
3316 2005-06-27 James Youngman <jay@gnu.org>
3318 * ChangeLog, locate/locate.c: Applied patch from Bas Van Gompel to
3319 move match counting into a (new) visitor function
3321 * NEWS, configure.in: No longer 4.2.23, as we're moving on now
3323 2005-06-24 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
3325 * locate/locate.c (visit_count, visit_limit): New functions.
3326 (locate): Use visit_limit or visit_count. Simplify main loop.
3327 (main) Bail out early when limit is reached.
3329 2005-06-20 James Youngman <jay@gnu.org>
3332 Removed some code which had already been disabled via the preprocessor.
3334 2005-06-19 Dmitry V. Levin <ldv@altlinux.org>
3336 * lib/savedirinfo.c: Fix two compilation warnings (which would
3337 prevent compilation if "-Wall -Werror" is in effect).
3339 2005-06-19 James Youngman <jay@gnu.org>
3341 * ChangeLog: Indicate that we made (are making) a release.
3343 * ChangeLog, NEWS, configure.in: Preparing to release 4.2.23
3345 * doc/find.texi: Fixed Texinfo syntax error in previous change
3347 * doc/find.texi, xargs/xargs.1:
3348 Document the fact that the -i and -L options are currently
3349 incompatible (Savannah bug 13041).
3351 * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
3352 reject trailing slashes in updatedb's --prunepaths, bacsue these
3353 will never be matched
3355 * NEWS: Released findutils-4.2.23.
3357 * doc/find.texi, xargs/xargs.1:
3358 Document the fact that the -i and -L options are currently
3359 incompatible (Savannah bug 13041).
3361 * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
3362 reject trailing slashes in updatedb's --prunepaths, because these
3363 will never be matched.
3365 2005-06-18 James Youngman <jay@gnu.org>
3367 * po/ga.po, tr.po: Updated Irish and Turkish translations.
3369 * po/pl.po: Did update-po
3372 Updated Polish translation file from the Translation Project
3374 * 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:
3377 2005-06-18 Martin Buchholz (trivial patch applied by James Youngman)
3379 * find/defs.h, find/find.c, find/parser.c, doc/find.texi: Fix
3380 typos/spelling errors (mostly in source code comments).
3382 2005-06-18 Dmitry V. Levin <ldv@altlinux.org>
3384 Additional documentation tweaks for -execdir/-okdir actions.
3385 * find/parser.c (parse_help): Mention -execdir and -ordir options.
3386 * doc/find.texi, find/find.1: Additionally document new options.
3388 2005-06-12 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
3390 * locate/locate.c: Implement --all (-A).
3392 * NEWS, doc/find.texi, locate/locate.1: Document locate --all (-A)
3394 2005-06-12 James Youngman <jay@gnu.org>
3396 * find/find.c, NEWS:
3397 Savannah bug #13381 (Debian bug 313081): if we have O_NOFOLLOW,
3398 safely_chdir() does not need to call stat(). However, process_dir()
3399 used to rely on using that stat information. To work around this
3400 problem, there is now an output parameter in safely_chdir() which
3401 indicates if the stat buffer is valid.
3402 This bug has possible security implications.
3404 * find/find.1, doc/find.texi:
3405 Applied patch from Andreas Metzler, improving the wording for the
3406 documentation of the %k and %b format directives. This patch does
3407 not require a copyright assignment as it consists of several
3408 copies of the same small wording change.
3410 2005-06-11 James Youngman <jay@gnu.org>
3412 * find/find.1: Corrected spelling error 'writeable' to 'writable'.
3414 * find/find.1, locate/locate.1:
3415 Fixed Savannah bug #13363, typos in manpages (trivial change)
3417 2005-06-10 James Youngman <jay@gnu.org>
3419 * find/find.c, lib/savedirinfo.c, lib/savedirinfo.h: Switch to a
3420 new scheme for saving directory entry data which is extensible to
3421 allow additional data to be saved.
3423 2005-06-09 James Youngman <jay@gnu.org>
3425 * locate/testsuite/config/unix.exp:
3426 Use the new normalize_dir procedure throughout.
3428 * locate/testsuite/config/unix.exp: Move the normalisation into a
3429 procedure. Don't rely on the "file normalize" command being
3430 available (it's new in Tcl 8.4).
3432 2005-06-08 James Youngman <jay@gnu.org>
3434 * ChangeLog, NEWS, configure.in: Updated for recent changes
3437 Explain that you should put the argument of -name in quotes.
3440 Added a new "NON-BUGS" section pointing out things that look like bugs
3441 but are caused by mistakes or misunderstandings.
3443 * doc/find.texi, locate/locate.1: Applied Bas van Gompel's patch
3444 which allows the database to be read from stdin.
3447 Read the database in by using the "visitor" pattern. Modified file
3448 header comment to indicate that we no longer use the efficient
3449 algorith described in ;login:. Emit an error message if the
3450 LOCATE_PATH variable implies that we should read stdin twice.
3451 Most of this code is from Bas van Gompel.
3453 * AUTHORS: Credit Bas van Gompel for his work on locate.
3455 * lib/printquoted.h: Appled patch from Bas - fixing compiler warning.
3457 2005-06-07 James Youngman <jay@gnu.org>
3459 * ChangeLog, NEWS, configure.in: Updates prior to release
3461 * config.rpath: Added file required for 'make dist'
3463 * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
3464 po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
3465 po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
3466 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
3467 po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po,
3468 po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po:
3469 updated the po files for release
3471 * xargs/testsuite/Makefile.am:
3472 Added in all the test files from Dmitry V. Levin.
3474 2005-06-08 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
3476 * NEWS, locate/locate.1, doc/find.texi: Document usage of `-'
3477 to refer to stdin in database-path for locate.
3478 * locate/locate.c: Change prototype for visitors and processors
3479 throughout. Move reading the database and generating base_name
3480 into visitors. Allow `-' to refer to stdin in database-path.
3482 * lib/printquoted.h: Include stdio.h.
3484 2005-06-07 James Youngman <jay@gnu.org>
3486 * COPYING, debian/copyright, depcomp, doc/texinfo.tex,
3487 find/defs.h, find/find.c, find/fstype.c, find/parser.c,
3488 find/pred.c, find/testsuite/config/unix.exp, find/tree.c,
3489 find/util.c, import-gnulib.sh, intl/Makefile.in,
3490 intl/bindtextdom.c, intl/config.charset, intl/dcgettext.c,
3491 intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c,
3492 intl/dngettext.c, intl/explodename.c, intl/finddomain.c,
3493 intl/gettext.c, intl/gettext.h, intl/gettextP.h,
3494 intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
3495 intl/libgettext.h, intl/libgnuintl.h, intl/loadinfo.h,
3496 intl/loadmsgcat.c, intl/localcharset.c, intl/locale.alias,
3497 intl/localealias.c, intl/ngettext.c, intl/plural.c, intl/plural.y,
3498 intl/ref-add.sin, intl/ref-del.sin, intl/textdomain.c,
3499 lib/buildcmd.c, lib/buildcmd.h, lib/extendbuf.c, lib/extendbuf.h,
3500 lib/forcefindlib.c, lib/listfile.c, lib/listfile.h,
3501 lib/modetype.h, lib/nextelem.c, lib/nextelem.h, lib/printquoted.c,
3502 lib/printquoted.h, lib/qmark.c, lib/savedirinfo.c,
3503 lib/savedirinfo.h, lib/strspn.c, lib/wait.h, lib/waitpid.c,
3504 locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c,
3505 locate/locatedb.h, locate/testsuite/config/unix.exp,
3506 locate/updatedb.sh, missing, po/fetch-po-files,
3507 xargs/testsuite/config/unix.exp, xargs/xargs.c:
3508 Updated the FSF's postal address
3510 * ChangeLog: Corrected Bas's email address.
3512 * locate/locate.c: Updated copyright years.
3514 2005-06-07 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
3516 * locate/locate.c: Fold case once, only when needed.
3518 2005-06-07 James Youngman <jay@gnu.org>
3520 * NEWS: Updated with recent changes.
3522 * mdate-sh: Use the mdate-sh from automake
3524 * find/parser.c, find/pred.c, find/tree.c, find/util.c,
3525 lib/Makefile.am, lib/forcefindlib.c, lib/listfile.c,
3526 lib/listfile.h, locate/code.c, locate/locate.c, find/defs.h,
3527 find/find.c: Fix Savannah bug #13324: Fix compiler warnings for
3531 Fixed Savannah bug #13325: Quoting of output filenames in locate
3535 Fixed Savannah bug #13319: C9X-ism in parser.c (declaration after
3538 * find/pred.c, lib/Makefile.am, lib/listfile.c, lib/nextelem.c,
3539 lib/printquoted.c, lib/printquoted.h, lib/qmark.c, NEWS,
3540 doc/find.texi, find/defs.h, find/find.1, find/parser.c: Fixed
3541 Savannah bug #13303, find should filter out non-printable
3542 characters if outputting to tty
3544 2005-05-30 James Youngman <jay@gnu.org>
3546 * locate/locate.c: rename new_locate() to locate() since
3547 old_locate() has gone the way of the dodo.
3549 2005-05-29 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
3551 Add a ``--print'' (``-p'') option. (to cancel side-effects of -c/-S)
3552 Allow ``--statistics'' in combination with non-options.
3553 * doc/find.texi: Add documentation for locate --print (-p), and the
3554 use of non-options with --statistics.
3555 * locate/locate.1: ditto.
3556 * locate/locate.c: Read each database only once.
3558 2005-05-23 Paul Eggert <eggert@cs.ucla.edu>
3560 Adjust to recent gnulib changes.
3561 * import-gnulib.sh: Get config.rpath from gnulib/build-aux,
3563 * find/parser.c (parse_perm): Ignore umask when parsing
3564 symbolic permissions. Adjust to new modechange API.
3566 2005-05-16 James Youngman <jay@gnu.org>
3568 * find/find.c, find/parser.c, find/pred.c, find/tree.c:
3569 Trivial change: don't use i18n support for debug-only messages
3571 * ChangeLog: Added ChangeLog entry crediting Dmitry
3573 2005-05-09 James Youngman <jay@gnu.org>
3576 The previous change fixed Savannah bug #12999. This change doesn't do
3577 anything, it's only intended to be a place to record the Savannah bug
3578 ID we've just fixed.
3581 Oops. Initialise the variable which indicates which regex syntax to
3582 use. We use POSIX basic regular expressions.
3585 Suggestion by Ed Avis: point out that "-name foo/bar" will almost
3586 always evaluate to false. Suggest to the user what alternatives they
3589 2005-05-02 James Youngman <jay@gnu.org>
3592 Added Dimitry (his new test suite contribution required a copyright
3595 2005-05-03 Dmitry V. Levin
3597 * Added xargs test suite tests by Dmitry V. Levin, together with
3598 bugfixes which ensure that the tests pass.
3600 2005-04-18 James Youngman <jay@gnu.org>
3602 * Added test suite tests for Bas van Gompel's changes.
3604 2005-04-18 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
3606 * doc/find.texi: Document locate --non-existing (-E).
3607 * locate/locate.1: Ditto.
3608 * locate/locate.c: Implement --non-existing (-E).
3610 2005-04-04 James Youngman <jay@gnu.org>
3612 * configure.in, import-gnulib.sh:
3613 We no longer need gnulib/m4/Makefile.am
3615 * po/vi.po: Updated Vietnamese translation
3617 * locate/updatedb.sh:
3618 Savannah bug #12491: Only use the "-s" option to "su" if it is
3621 2005-04-01 James Youngman <jay@gnu.org>
3623 * locate/locate.1, locate/updatedb.1, xargs/xargs.1: Trivial
3624 change from A Costa <agcosta@gis.net>, fixing typos in manual
3625 pages for xargs, locate and updatedb; fixes Savannah bug #12500,
3628 2005-03-22 James Youngman <jay@gnu.org>
3630 * import-gnulib.sh: Include the new gnulib module stat-macros
3633 CVS code is (will shortly be) no longer identical to the 4.2.20 release
3635 2005-03-17 James Youngman <jay@gnu.org>
3637 * configure.in: Preprare for release of 4.2.20.
3639 * NEWS: Updated prior to release of 4.2.20.
3641 * ChangeLog: Updated with recent changes.
3643 * THANKS: Thank Bas van Gompel, but only once.
3645 * THANKS: Thank Bas van Gompel and Aaron S. Hawley.
3647 * po/vi.po: Updated Vietnamese PO file
3649 2005-03-10 James Youngman <jay@gnu.org>
3651 * po/nl.po: Updated Dutch PO file
3653 2005-03-08 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
3655 * import-gnulib.sh: Re-enable creation of gnulib/m4/Makefile.am.
3657 2005-03-07 James Youngman <jay@gnu.org>
3659 * Released findutils-4.2.19.
3661 * find/testsuite/find.posix/sizes.exp:
3662 Use 2>/dev/null instead of 2>&1, because Tcl understands the former
3665 * find/testsuite/Makefile.am: Also distribute sv-bug-12181.xo.
3667 * find/testsuite/Makefile.am: Distribute sv-bug-12181.
3669 * find/testsuite/Makefile.am: Distribute sv-bug-12230.
3671 * NEWS: Updated with new news.
3673 * ChangeLog: Brought up to date.
3675 * lib/buildcmd.c, find/testsuite/find.gnu/sv-bug-12230.exp: Fixed
3676 Savannah bug #12230, in which '-exec echo == {} +' is always run,
3677 even if there were no matched files.
3679 2005-03-06 James Youngman <jay@gnu.org>
3681 * ChangeLog: Added latest changes.
3683 * po/pt.po, configure.in: Added Portuguese translation
3685 2005-03-04 James Youngman <jay@gnu.org>
3687 * configure.in: Modernized the way we call AC_INIT and
3690 * locate/locate.c, find/pred.c, find/find.c:
3691 Eliminated some compiler warnings
3693 * find/pred.c: Clarified the meaning of a comment.
3695 * find/testsuite/Makefile.am: Added sizes.exp, sizes.xo.
3697 * find/testsuite/find.posix/sizes.xo,
3698 find/testsuite/find.posix/sizes.exp: Added tests for -size
3701 2005-03-03 James Youngman <jay@gnu.org>
3704 safely_chdir_lstat(): if we didn't end up in the right place, and then
3705 fchdir() fails, we can't return to the directory we started in.
3706 Therefore, issue a fatal error message and exit.
3708 2005-03-01 James Youngman <jay@gnu.org>
3710 * find/find.c, find/testsuite/find.posix/sv-bug-12181.exp,
3711 find/testsuite/find.posix/sv-bug-12181.xo: Fixed SourceForge bug
3712 12181 (find -H symlink-to-dir reports 'Too many Symbolic links')
3713 and bug 12044 (find still hangs on dead NFS filesystems on
3716 2005-02-28 James Youngman <jay@gnu.org>
3718 * doc/find.texi: Typo: O_NOFOLLOW, not O_FOLLOW
3721 Suggestion from Martin Buchholz; unset CDPATH to prevent "cd" echoing
3724 2005-02-27 James Youngman <jay@gnu.org>
3726 * README: Indicate how the reader can verify the release.
3728 2005-02-26 James Youngman <jay@gnu.org>
3730 * po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po,
3731 po/zh_CN.po, po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po,
3732 po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot,
3733 po/fr.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
3734 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
3735 po/pt_BR.po, po/ro.po, po/ru.po: Added new Vietnamese translation
3737 * configure.in: Added new Vietnamese translation.
3739 2005-02-25 James Youngman <jay@gnu.org>
3741 * po/ga.po: Updated Irish po file
3743 2005-02-23 James Youngman <jay@gnu.org>
3745 * Makefile.am: Fix Savannah bug #12064 - 'make distclean' deletes
3746 regex.c but should not.
3748 * find/testsuite/Makefile.am,
3749 find/testsuite/find.gnu/printf-h.exp,
3750 find/testsuite/find.gnu/printf-h.xo: Added test case for Savannah
3751 bug #12085 (-printf %h).
3753 * NEWS, doc/find.texi, find/find.1, find/pred.c:
3754 %h now expands to '.' instead of nothing.
3756 2005-02-22 James Youngman <jay@gnu.org>
3759 Fixed Savannah bug #12099 (misinterpretation of system versions
3760 leading to possible incorrect disabling of O_NOFOLLOW). Reported by
3764 For the %h format, don't bail out early as the format might contain
3767 2005-02-21 James Youngman <jay@gnu.org>
3769 * find/find.c: Fixed accidental C99 dependency.
3771 2005-02-20 James Youngman <jay@gnu.org>
3773 * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
3774 po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
3775 po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
3776 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
3777 po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sl.po, po/sr.po,
3778 po/sv.po, po/tr.po, po/zh_CN.po: Updated italian translation
3780 * doc/find.texi: Corrected a typo.
3783 Read the mounted device list afer parsing the command line, so that
3784 for example "find --version" still works (in response to Savannah bug
3787 * configure.in: We've moved on from findutils-4.2.18.
3789 2005-02-19 James Youngman <jay@gnu.org>
3791 * NEWS: Corrected the summary of the "find -depth" bug.
3793 2005-02-16 James Youngman <jay@gnu.org>
3795 * NEWS, configure.in: Prepared for release of 4.2.18.
3797 * ChangeLog: Updated prior to release of 4.2.18.
3799 * find/testsuite/Makefile.am:
3800 Distribute the test cases for the recent "find -depth" bug.
3802 * find/testsuite/find.posix/depth1.exp, find/testsuite/find.posix/depth1.xo:
3803 Added test case for find -depth bug reported by Joseph S. Myers
3806 If -depth is in effect, processing of the subdirectories invalidates
3807 the information in 'state'. Therefore once we get around to
3808 processing the predicates, restore the information that we keep in
3809 'state' and in 'stat_buf'.
3811 2005-02-15 James Youngman <jay@gnu.org>
3813 * ChangeLog: Updated with recent changes
3816 Emphasise that -L causes find to recurse into subdirectories pointed
3817 to by symbolic links.
3820 Patch to find.1 from Aaron Hawley <Aaron.Hawley@uvm.edu>:
3822 * Notes about -H actually apply to -L.
3823 * Said paragraph is duplicated two paragraphs later.
3824 * Typos: nno, ibmue, surrpounding
3826 2005-02-15 Aaron Hawley <Aaron.Hawley@uvm.edu>
3828 * find/find.1: Notes about -H actually apply to -L. Said
3829 paragraph is duplicated two paragraphs later. Also typos: nno,
3832 2005-02-13 James Youngman <jay@gnu.org>
3834 * find/find.1: Miscellaneous small clarifications and improvements.
3836 * doc/find.texi: Added Info nodes and menus under "Changing the
3837 Current Working Directory" so that it doesn't generate such a huge
3840 * find/find.c: Parenthesise #if defined(...).
3842 2005-02-13 Dmitry V. Levin <ldv@altlinux.org>
3844 * find/find.c: remove test code snippet (time(NULL) was used to
3845 place a marker for spotting with strace(), but was not actually
3848 * find/find.c (safely_chdir_nofollow): must not fall back on
3849 safely_chdir_lstat() because that will expose it to race condition
3850 exploits, making it pointless.
3852 * find/find.c (safely_chdir_lstat): Move
3853 complete_pending_execdirs() up into safely_chdir(), because we
3854 need to do that in either case.
3856 2005-02-12 James Youngman <jay@gnu.org>
3858 * configure.in, doc/find.texi, find/defs.h, find/find.c,
3859 find/parser.c: Fix for Savannah bug #11879, that
3860 init_mounted_dev_list() causes find to hang on systems which are
3861 clients to dead NFS servers
3863 2005-02-10 James Youngman <jay@gnu.org>
3865 * doc/find.texi: Talk about the problem where find will not work
3866 if you have a filesystem mounted from an unresponsive NFS server.
3868 2005-02-09 James Youngman <jay@gnu.org>
3870 * find/find.1: Indicate that $TZ affects from printf-format
3871 results, and add extra cross-references in the SEE ALSO section.
3873 2005-02-08 James Youngman <jay@gnu.org>
3875 * xargs/testsuite/Makefile.am: Distribute the .xe files also.
3877 * Makefile.am: Check that we have the right number of .xe files in
3878 the distribution also.
3880 * ChangeLog, NEWS, configure.in
3881 Preparing to release findutils-4.2.17
3883 2005-02-07 James Youngman <jay@gnu.org>
3885 * find/testsuite/config/unix.exp: Re-sort the .xo file using the
3886 calling user's locale, because our 'pre-sorted' .so output file
3887 may not be sorted with the same collating order as 'sort' used to
3888 order the output of "find. Bug spotted by Vin Shelton and Dimitry
3891 * find/testsuite/Makefile.am:
3892 New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
3894 * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
3895 find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
3896 Fix for starting point /foo/bar/baz where bar is a symlink but baz
3897 is not - we should chdir into bar there even if it is a symbolic
3900 2005-02-07 James Youngman <jay@gnu.org>
3902 * find/testsuite/Makefile.am:
3903 New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
3905 * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
3906 find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
3907 Fix for starting point /foo/bar/baz where bar is a symlink but baz
3908 is not - we should chdir into bar there even if it is a symbolic
3911 2005-02-06 James Youngman <jay@gnu.org>
3914 -size: Clarification - -size gives a result consistent with 'wc -c'
3917 * Makefile.am, find/testsuite/Makefile.am,
3918 find/testsuite/find.gnu/execdir-root-only.exp,
3919 find/testsuite/find.gnu/execdir-root-only.xo,
3920 locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
3921 dist-hook: Ensure that we distribute all the .po files and all the
3924 * po/pl.po: Updated Polish translation from TP website
3926 2005-02-05 Dmitry V. Levin <ldv@altlinux.org>
3928 * find/parser.c, find/pred.c: Additional tweaks for
3929 -execdir/-okdir actions.
3931 * find/parser.c (new_insert_exec_ok): Disable ignore_readdir_race
3932 for -execdir/-okdir.
3934 * find/pred.c (pred_execdir, pred_okdir): Use state.rel_pathname
3935 instead of basename(pathname). Do not add "./" prefix for
3938 * find/find.c (process_top_path): Treat "/" similarly to ".".
3940 * xargs/testsuite/xargs.posix/savannah-11865.exp,
3941 xargs/testsuite/xargs.posix/savannah-11865.xo, xargs/xargs.c:
3942 Fixed Savannah bug #11866 (not resetting number of used chars in
3943 the command buffer) - reported by Dimitry V. Levin
3945 2005-02-05 James Youngman <jay@gnu.org>
3948 Added thanks for Dimitry - has produced many patches, bugfixes and
3952 Fixed Savannah bug #11866: typo in pred_okdir() renders it useless
3955 Savannah bug #11861: undefined symbol 'basename' on IRIX 5.3
3957 * NEWS, configure.in, po/be.po, po/ca.po, po/el.po, po/eo.po,
3958 po/fi.po, po/ga.po, po/hr.po, po/hu.po, po/ja.po, po/lg.po,
3959 po/ms.po, po/ro.po, po/sl.po, po/sr.po, po/zh_CN.po: Added new
3962 * ChangeLog: Updated from CVS prior to release of 4.2.16.
3964 * po/ChangeLog: Updated from CVS.
3966 * NEWS, configure.in: Preparing to release 4.2.16
3968 * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
3969 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
3970 po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sl.po, po/sv.po,
3971 po/tr.po: make update-po prior to 'make distcheck'
3973 * po/fetch-po-files: This is the first version we actually used.
3975 * find/find.c: process_top_path() fixed compilation warning.
3977 * find/find.c: process_top_path(): avoid processing this item if
3978 we can't chdir to the basename of the named file.
3980 * lib/Makefile.am: Always build forcefindlib.c
3982 * locate/locate.c: Say 'base name' rather than 'basename' in comments
3984 * find/pred.c, find/find.c: process_top_path(): Proper bugfix for
3985 correct handling of items at depth 0 (i.e. specified on the
3986 command line) - do an extra chdir to ensure that we're in the
3987 directory containing the item before calling process_path().
3988 Hnece also undo the previous 'quick fix' for the same problem
3991 -execdir no longer has to treat anything as special, even at depth 0.
3993 2005-02-03 James Youngman <jay@gnu.org>
3995 * doc/find.texi, find/pred.c: When state.curdepth is 0, our
3996 working directory is not the directory containing the file we are
3999 2005-02-02 James Youngman <jay@gnu.org>
4002 To allow compilation on cygwin, use base_name(), not basename().
4004 * po/tr.po: Updated Turkish translation from TP
4006 * po/ro.po: Updated Romanian translation from TP
4008 * po/da.po, po/et.po: Updated translations from MT project website
4010 2005-02-01 James Youngman <jay@gnu.org>
4012 * ChangeLog: Updated from CVS log.
4014 2005-01-31 James Youngman <jay@gnu.org>
4016 * find/find.c, lib/nextelem.c, lib/nextelem.h, locate/code.c,
4017 locate/frcode.c, locate/testsuite/config/unix.exp,
4018 xargs/testsuite/config/unix.exp, xargs/xargs.c: Updated/corrected
4019 the email address for David MacKenzie, one of the original authors
4022 * doc/Makefile.am: The HTML version of the manual generated for
4023 the GNU project website has each node in a separate file, not each
4024 chapter in a separate file; adjust filenames accordingly
4026 * find/parser.c, find/pred.c, lib/savedirinfo.c:
4027 Removed some unused variables (patch from Dmitry V. Levin)
4030 Patch from Dmitry V. Levin <ldv@altlinux.org>: Add subfs to the list
4031 of filesystems which are likely to be automounted.
4033 * m4/findlib.m4: Corrected typo (pointed out by Dmitry V. Levin).
4035 * find/testsuite/config/unix.exp,
4036 find/testsuite/find.gnu/name-period.xo,
4037 find/testsuite/find.gnu/posix-dflt.xo,
4038 find/testsuite/find.gnu/posix-h.xo,
4039 find/testsuite/find.gnu/posix-l.xo,
4040 find/testsuite/find.gnu/printf.exp,
4041 find/testsuite/find.gnu/printf.xo: Systems differ in the order in
4042 which filenames are returned by readdir. Hence sort the output of
4043 'find' before comparing against the expected-output file. We
4044 therefore also have the lines in the .xo files ready-sorted.
4046 * po/ca.po: Updated from Translation Project
4048 * po/ChangeLog: Updated from CVS logs.
4050 * po/de.po, es.po, et.po, fr.po, gl.po, id.po, it.po, ko.po, nl.po,
4051 pl.po, pt_BR.po, ru.po, sk.po, sv.po, tr.po, da.po: Ran update-po
4053 * po/be.po, ca.po, el.po, eo.po, fi.po, hr.po, hu.po, ja.po, lg.po,
4054 ms.po, ro.po, sl.po, sr.po, zh_CN.po: Added new translation files
4055 from the Translation Project web site
4057 * po/da.po, de.po, es.po, et.po, fr.po, ga.po, gl.po, id.po, it.po,
4058 ko.po, nl.po, pl.po, pt_BR.po, ru.po, sk.po, sv.po, tr.po: Updated
4059 .po files from the Translation Project site
4061 2005-01-30 James Youngman <jay@gnu.org>
4064 Added rules for extra targets that we buld to update the web site.
4066 2005-01-29 James Youngman <jay@gnu.org>
4068 * configure.in: No longer version 4.2.15 - we've changed the manual.
4071 Clarified the txt about adding extra tests with post-processing via
4072 xargs, and recommend -execdir instead for security reasons.
4074 * doc/find.texi: Patch from Karl Berry:
4075 - more entries for the dir file
4076 - use @copying so the copyright ends up in the HTML etc. output.
4077 (This is the only really important change.)
4078 - put @contents after the title page, for conventional toc location.
4079 - use @ifnottex to wrap the Top node instead of @ifinfo, for the sake of
4082 * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
4083 po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
4084 po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
4085 po/sv.po, po/tr.po: Prepared to release findutils-4.2.15
4087 * ChangeLog: Updated from CVS log.
4089 2005-01-28 James Youngman <jay@gnu.org>
4092 Make --enable-d_type-optimization and --enable-d_type-optimisation
4095 * configure.in: Assume --enable-d_type-optimisation by default
4097 * find/parser.c: Indicate which features are enabled/disabled
4099 * locate/testsuite/config/unix.exp:
4100 Clean up the files left behind by the locate_textonly test
4102 2005-01-27 James Youngman <jay@gnu.org>
4104 * doc/find.texi: Documented --regex.
4106 * NEWS, locate/locate.1, locate/locate.c, locate/testsuite/Makefile.am, locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/regex1.exp:
4107 Implemented locate --regex - but needs documenting in Texinfo manual.
4109 2005-01-25 James Youngman <jay@gnu.org>
4111 * configure.in: Bumped version no.
4114 Document --mmap and --stdio as being synonyms of -m and -s.
4117 Document --mmap and --stdio as synonyms of -m and -s.
4120 Document -m and -s (both no-ops) in the usage message.
4122 * doc/find.texi, locate/locate.1: Document -m and -s as no-ops.
4124 * ChangeLog: Updated for release of findutils-4.2.14.
4126 * 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:
4127 Preparing to release findutils-4.2.14
4129 2005-01-25 James Youngman <jay@gnu.org>
4131 * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
4132 po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
4133 po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
4134 po/sv.po, po/tr.po: Preparing to release findutils-4.2.14
4136 2005-01-24 James Youngman <jay@gnu.org>
4138 * Makefile.am: Work around the fact that automake-1.7 actually
4139 works, and correctly distributes regex.c; hence dist-hook should
4140 only copy gnulib/lib/regex.c if this has not already been done.
4142 * find/defs.h, find/find.c, find/pred.c,
4143 find/testsuite/Makefile.am,
4144 find/testsuite/find.gnu/printf-symlink.exp,
4145 find/testsuite/find.gnu/printf-symlink.xo,
4146 find/testsuite/find.gnu/xtype-symlink.exp,
4147 find/testsuite/find.gnu/xtype-symlink.xo: Fixes for -xtype and
4148 -printf %Y, which had been the wrong way around.
4150 * NEWS: Avoid including the find.gnu subdirectory in the
4151 distributed file more than once
4154 Move the printing of the statistics into a new function, print_stats()
4156 * find/testsuite/Makefile.am: Avoid including the find.gnu
4157 subdirectory in the distributed file more than once
4160 We need the regex module anyway, to allow compilation on Solaris
4162 2005-01-23 James Youngman <jay@gnu.org>
4165 Invoke gl_INCLUDED_REGEX directly to ensure successful compilation on
4166 systems like Solaris, which lacks those functions in libc (fixes GNU
4167 Savannah bug #11710).
4169 * locate/locate.1: -S is a synonym for --statistics
4171 * doc/find.texi: Documented the new -H, -L and -P options.
4173 * locate/locate.1, locate/locate.c: Implement options -L
4174 (default), -H and -P, which mean the same things as for find,
4175 except for the fact that the default is -L rather than -P
4177 * find/find.1: Corrected definition of the exit status for -quit.
4179 * find/find.c, find/pred.c: If DEBUG_STAT is set, issue a debug
4180 message when we call chdir() so that we can figure out what is
4181 actually being stat()ed
4183 * locate/updatedb.sh:
4184 Removed spurious newline from help message (bug report from Karl
4187 * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
4188 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
4189 po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po,
4190 Makefile.am, NEWS, configure.in, find/defs.h, find/find.c,
4191 find/parser.c, find/pred.c, find/tree.c, find/util.c,
4192 import-gnulib.sh, lib/savedirinfo.c: Merged the d_type
4193 optimisation code; this is disabled by default, and can be enabled
4194 with 'configure --enable-d_type-optimisation'
4197 Updated optimisation NEWS item to indicate the effect on runtime.
4199 2005-01-22 James Youngman <jay@gnu.org>
4201 * NEWS, configure.in: Prepare for release of findutils-4.2.12
4203 * ChangeLog: Brought up to date with recent changes.
4205 * Makefile.am, import-gnulib.sh, po/Makefile.in.in, po/Makevars,
4206 po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
4207 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
4208 po/pl.po, po/pt_BR.po, po/remove-potcdate.sin, po/ru.po, po/sk.po,
4209 po/sv.po, po/tr.po: Switch to using the gnulib gettext module, to
4210 ensure that 'make distcheck' works with current xgettext,
4213 * find/testsuite/config/unix.exp:
4214 Oops, we do need to clean up after all.
4216 2005-01-21 James Youngman <jay@gnu.org>
4218 * xargs/testsuite/Makefile.am: Added name of missing input file.
4220 * find/testsuite/Makefile.am:
4221 Distribute a few files that we had forgotten about
4223 * xargs/testsuite/Makefile.am: Added some missing files.
4225 * lib/Makefile.am: Also need buildcmd.h.
4227 * xargs/testsuite/Makefile.am: Fixed a typo.
4229 * NEWS: Indicate the d_type performance improvement
4231 2005-01-18 James Youngman <jay@gnu.org>
4233 * lib/savedirinfo.h: Added on d_type_optimisation also
4235 * lib/savedirinfo.c: Added on branch d_type_optimisation also.
4237 * find/pred.c: Added assert that we actually know the file type by
4238 the time pred_type() is called
4240 * find/find.c: Always initialise state.have_stat = false when
4241 starting to work with a new file
4243 2005-01-17 James Youngman <jay@gnu.org>
4245 * ChangeLog: Brought up to date with recent changes.
4247 * NEWS: Documented the changes so far.
4249 * find/testsuite/find.gnu/exec-many-rtn-success.xo:
4250 Expected output for exec-many-rtn-success.exp
4253 Indicate that -quit still ensures that pending commands are invoked
4256 Indicate that -quit still causes partial command lines to be invoked,
4257 but there are some types of fatal error which leave such commands
4260 * find/defs.h, find/find.c, find/pred.c, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
4261 Fixed savannah bug #11625 Wrong return status for -exec ... \; when command fails; also execute any pending commands when doing -quit
4263 * 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:
4264 Various test cases for succeeding and failing forms of -exec \; and -exec {} +
4266 * find/pred.c: "-exec ... {} +" always returns "true".
4268 * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
4269 Implemented d_type optimisation but not working correctly, so currently disabled
4271 * lib/savedirinfo.h, lib/savedirinfo.c:
4272 Initial implementation (temporarily disabled).
4274 * lib/Makefile.am: Resolved merge conflict.
4277 Make sure nextelem.h is included in the list of sources.
4279 * find/parser.c, lib/nextelem.c, lib/nextelem.h, locate/locate.c:
4280 Use prototypes for next_element() to make sure it is called correctly.
4282 2005-01-16 James Youngman <jay@gnu.org>
4284 * find/find.c, find/pred.c:
4285 When completing incomplete multiple execs, use 'eval_tree' not 'predicates'
4288 Oops, initialise state->cmd_initial_argv_chars to zero.
4291 Document the way that -execdir and -okdir will refuse to wqork if ">"
4292 is on $PATH. Also document -okdir in the manpage.
4295 -execdir and -okdir are insecure if $PATH includes the current
4296 directory, and so they refuse to work if the user has done that.
4299 Oops; for -exec ... {} +, pass arguments to bc_push_arg() in the right
4300 order. Problem spotted by Geoff Clare.
4302 * TODO: Removed items which have now been done.
4304 * lib/buildcmd.c: Tidied up formatting of arg list for bc_do_insert
4306 2005-01-15 James Youngman <jay@gnu.org>
4308 * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo:
4309 Added extra tests for more printf formats; patch by Andreas Metzler
4312 Ensure that the new long options have a relevang short option too.
4313 Also bring usage message into line with the options actually
4314 supported. Thanks to Bas van Gompel for noticing this defect.
4317 Escape "-" in SYNOPSIS. Thanks to Bas van Gompel for noticing this
4320 * ChangeLog: Fixed typos.
4323 Documented -execdir, and the "+" variants of -exec and -execdir.
4325 * find/find.1: Documented -execdir.
4328 Updated to bring into line with bc_*() interface changes
4330 * ChangeLog: Updated with recent changes.
4332 * find/defs.h, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h:
4333 Implemented -execdir and -okdir
4335 * find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
4336 First working version of -exec ...+
4338 2005-01-09 James Youngman <jay@gnu.org>
4340 * find/defs.h, find/find.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
4341 Initial implementation of -exec ..{} +, but currently disabled since not yet working
4343 2005-01-08 James Youngman <jay@gnu.org>
4345 * find/find.c: Fixed typo in comment.
4347 * find/defs.h, find/find.c, find/parser.c, find/pred.c:
4348 We now understand but do not implement -execdir (a *BSD invention, and a very useful security enhancement) and -okdir (the obvious companion to it)
4350 * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
4351 The GNU coding standard requires a space between the function name and
4352 its parenthesised argument list.
4355 Understand the -exec ... {} \+ construction (for multiple
4356 replacement). No support yet.
4359 Indicate that empty elements in the dbpath are treated as synonyms for
4360 the default database.
4363 Support empty elements in the dbpath as synonyms for the default
4364 database. These colons can be leading, trailing or in the middle of
4365 the string. We no longer com,plain if the user does this.
4368 If curdir_ok is 0 and an element is empty, return "" instead of NULL
4369 so that the caller knows to keep calling us.
4371 * find/find.c, find/pred.c, import-gnulib.sh, locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
4372 Savannah bug 11517: find, xargs, locate, etc. should not hide write failures; patch from Jim Meyering
4374 * 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:
4375 changed .pot creation date
4377 * THANKS, AUTHORS: Take into account the FSF copyright-assignments list
4380 If -quit is used, the exit value can be nonzero if errors have occurred.
4383 Removed incorrect comment about -H, -P and -follow in HISTORY.
4385 2005-01-07 James Youngman <jay@gnu.org>
4387 * lib/Makefile.am, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
4388 Refactored xargs to use an external library function from the new file buildcmd.c
4390 * configure.in: no longer the same as the released 4.2.11 version
4392 2005-01-06 James Youngman <jay@gnu.org>
4394 * xargs/testsuite/inputs/lines.xi, xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/Makefile.am:
4395 Tests for the -L option
4397 * xargs/testsuite/config/unix.exp: When a test fails, show the diffs
4399 * xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/xargs.posix/l2.xo:
4400 tests for the -l option
4402 * xargs/testsuite/Makefile.am: Added extra test files
4404 * xargs/testsuite/xargs.sysv/trace.exp, xargs/testsuite/xargs.sysv/trace.xe, xargs/testsuite/xargs.sysv/trace.xo:
4405 Added tests for the -t option
4407 * 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:
4408 Use a blanks-only input file for cases where there is supposed to be no output
4410 * xargs/testsuite/inputs/blank.xi: Initial version.
4413 Corrected a typo; also indicate that it's impossible to use xargs
4414 securely due to the race condition.
4416 2005-01-05 James Youngman <jay@gnu.org>
4419 Fixed Savannah bug 11495: fallthrough from -printf format processing
4420 from 'n' case to 'd' case.
4422 2005-01-03 James Youngman <jay@gnu.org>
4425 Oops. Had duplicated an entire section. Fortunately this was after
4426 @bye, so there was no adverse effect.
4430 * doc/find.texi, locate/locate.1: document locate -S
4432 * configure.in, doc/find.texi, locate/locate.1, locate/locate.c:
4433 Support locate -b as a synonym for locate --basename
4435 * 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:
4438 * find/testsuite/config/unix.exp:
4439 Clean up (delete) find.out at at the end of the test.
4441 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c, find/pred.c:
4442 Implemented the -samefile test for find
4444 2005-01-02 James Youngman <jay@gnu.org>
4446 * ChangeLog: Updated with recent changes.
4449 Bas van Gompel: two-line patch to locate.c to make locate's -i and -w
4450 options work if -e is in use.
4452 * THANKS: Added Bas van Gompel.
4455 Bas van Gompel: (visit_exists) when testing for the existence of the
4456 file, check the real filename [printname], not the case-converted
4457 filename [testname]. Really these argument names are badly chosen.
4459 * find/find.1, doc/find.texi:
4460 Improved the documentation for -perm, with plenty of examples,
4461 following a comment by Dan Jacobson that the comment "Symbolic modes
4462 use mode 0 as a point of departure" is baffling and unhelpful.
4465 Suggestion and patch from Bas van Gompel: (new_locate): Fix display of
4466 negative compression ratios.
4468 2004-12-31 James Youngman <jay@gnu.org>
4470 * NEWS: Brought up to date with recent changes
4473 Don't need to nest the "race conditions with..." sections so deeply.
4475 * doc/find.texi: Corrected some spelling errors.
4477 * doc/find.texi: Added new "Security Considerations" chapter.
4479 2004-12-23 James Youngman <jay@gnu.org>
4482 Applied bugfixes from Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>.
4483 (lc_strcpy): Zero-terminate result.
4484 (add_visitor): Update lastinspector.
4485 (visit_substring_match_casefold): fix off-by-one error.
4486 (new_locate): Move visit_exists down to improve performance.
4487 (new_locate): Don't fold case when getting stats.
4489 2004-12-19 James Youngman <jay@gnu.org>
4492 Indicate that "cd /; find tmp -wholename /tmp" will never match anything.
4494 * doc/find.texi: Documented locate --statistics.
4496 * locate/locate.1: Documented the --statistics option.
4498 * locate/locate.c: Added support for the -S option.
4500 2004-12-12 James Youngman <jay@gnu.org>
4502 * NEWS: Added a summary of the changes so far.
4504 * find/tree.c: Made some of the error messages more self-explanatory
4506 * find/pred.c: Print pointers with %p, not %x.
4508 * find/find.c: Moved option data into struct options.
4510 * find/find.1: clarifications
4512 * find/testsuite/find.gnu/comma.exp:
4513 Limit the amount of searching with maxdepth.
4515 * doc/find.texi: clearer description of how -prune works
4517 * ChangeLog: Removed duplicate entry.
4519 * configure.in, find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
4520 Separated ariables representing current state from variable representing option information
4522 2004-12-11 James Youngman <jay@gnu.org>
4524 * find/parser.c: Readability improvement to the usage message.
4526 * find/find.c: Oops. Fixed unmatched #endif.
4528 * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo, THANKS, configure.in, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
4529 Fixed Savannah bug #11280
4532 Remember to set path_length and curdepth in process_top_path().
4534 2004-12-07 James Youngman <jay@gnu.org>
4536 * find/fstype.c: Use xstat() not stat() to examine things.
4538 * find/find.c: Explain why #ifdef EOVERFLOW.
4540 * find/find.c: EOVERFLOW is not defined on UNICOS.
4542 * NEWS: Corrected typo.
4544 2004-12-06 James Youngman <jay@gnu.org>
4546 * ChangeLog: Brought up to date.
4548 * NEWS, configure.in: releasing 4.2.10
4550 * 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:
4553 * ChangeLog: Updated prior to release of finsutils-4.2.10.
4555 * import-gnulib.sh, find/fstype.c:
4556 Use gnulib's mountlist module instead of grokking it ourselves.
4559 Removed all the out-of-date cruft for grokking getmntent().
4562 Added the -I and -L options; also -E takes an argument which is not optional.
4564 2004-12-05 James Youngman <jay@gnu.org>
4566 * README, configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c:
4567 Allow debug output to be turned on or off by saying --enable-debug on the configure command line
4570 Removed disparaging (it is now, it probably wasn't then) comment about
4571 the production-readiness of Automake.
4573 * README: Qualify remarks about POSIX compliance.
4575 * NEWS, configure.in: Preparation for release 4.2.9
4577 * 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:
4580 * ChangeLog: Brought up to date.
4583 Avoid duplicate error message when we cannot chdir() into a subdirectory.
4585 * THANKS: Added recent thankees.
4588 Brought up to date with respect to the current set of fixed bugs.
4590 * NEWS, xargs/xargs.1, xargs/xargs.c:
4591 Implemented POSIX options -L, -I and -E
4593 2004-12-03 James Youngman <jay@gnu.org>
4596 -xdev is an option, not a test. Fixes Savannah bug 11192.
4598 * find/find.1, xargs/xargs.1:
4599 Escape dashes with a backslash (for fix Savannah bug 11189).
4601 2004-11-27 James Youngman <jay@gnu.org>
4604 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.
4606 * find/find.1: "necessary" only has one "C".
4609 If stat() fails with ELOOP, we issue a diagnostic message.
4611 2004-11-26 James Youngman <jay@gnu.org>
4613 * find/find.c: Removed some unused code.
4615 * Makefile.am: Don't do anything in the 'intl' subdirectory
4618 Enhanced safely_chdir() to the point where the test suite passes, and report infinite loops in the directory hierarchy
4621 belt and braces; ensure that SYMLINK_NEVER_DEREF has value zero
4624 Describe our strategy for detecting and reporting infinite loops
4626 2004-11-24 James Youngman <jay@gnu.org>
4629 Updated the discussion of th error messages for findutils-4.2.8.
4631 * configure.in: Next version will be 4.2.9...
4634 Don't issue a warning if we notice the mounting of a filesystem that's
4635 likely just to be an automounter.
4637 * doc/find.texi, find/find.1:
4638 Explain how rounding is performed for -atime and friends.
4641 Once we collect enough arguments (for the value specified by the -n
4642 option) to do an exec(), do it immediaely instead of waiting for the
4643 next one to arrive. This fixes Savannah bug #7340.
4645 * ChangeLog, configure.in, NEWS: Prepare to release 4.2.8.
4647 * NEWS: Updates for 4.2.8.
4649 * configure.in: check for sys/types.h
4652 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.
4655 Declarations of xmalloc() and friends belong in xalloc.h, not in defs.h
4657 * find/parser.c: avoid signed/unsigned warning, and #include xalloc.h
4660 Changed to alloc get_mounted_devices() to compile on Solaris
4663 Automake requires GNU m4, so point out that the reader needs that.
4665 * find/defs.h, find/find.c, find/fstype.c:
4666 When wd_sanity_check() fails, enumerate the mounted devices, rather than the mounted filesystem names
4668 * NEWS: prepare for 4.2.8
4671 Look for some Solaris headers which are used by get_mounted_devices()
4673 * lib/Makefile.am: don't build savedirtypes yet
4675 * 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:
4679 Avoid suprious output of the test data when the tests fail.
4681 2004-11-21 James Youngman <jay@gnu.org>
4683 * 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:
4684 Messages changed again
4686 * ChangeLog, configure.in: Preparing to release 4.2.7.
4688 * NEWS: Updated for release of 4.2.7.
4690 * import-gnulib.sh: Also need canonicalize module.
4693 When checking to see if a filesystem has changed state, use an
4697 No need to pause to allow James to view his handiwork, it (allegedly)
4701 Oops. Check for setlocale() to re-enable the i18n support which was
4702 accidentally disabled in 4.2.5.
4705 Check to see if the new directory is a transitioned mount point by
4706 using its ABSOLUTE name, if we can figure it out.
4709 Added guidance on some of the error messages. Not the most common
4710 ones, but the ones where the user might most benefit from some handy
4711 hints or an explanation of what is going on.
4714 Actually emit an error message if we fail to stat a symlink (for
4715 reasons other than nonexistence of the link and infinite loop).
4717 * doc/texinfo.tex: Updated texinfo.tex
4719 * NEWS, configure.in, find/find.c, find/fstype.c:
4720 Enable the 'Warning: filesystem XXX has recently been mounted' check on Solaris, which prevents it exiting fatally when traversing an automount mount point
4722 * 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:
4723 messages changed again
4725 * NEWS: Implemented xargs --arg-file.
4727 * doc/find.texi, xargs/xargs.1, xargs/xargs.c, NEWS:
4728 Implemented xargs --arg-file
4731 Where a filesystem was recently (un)mounted, try togive its full name
4734 Try to avoid requesting -lsun if we don't seem to need it (e.g. on
4735 UNICOS where it is not present and trying to link against it produces
4738 * find/defs.h, lib/modetype.h: Guard against multiple inclusion
4741 We now need <mntent.h> even if we are not using getmntent() to figure
4742 out the type of a filesystem, because wd_sanity_check() needs to
4743 enumerate the system mount points.
4745 * configure.in: Next release will be 4.2.7.
4748 get_mounted_filesystems() should use getmntent() if that function is
4749 present, rather than just if configure didn't find anything better for
4750 filesystem_type_uncached() to use than that.
4753 If -delete is the only action on a file, don't assume the default
4756 * 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:
4757 Preparation to release findutils-4.2.6.
4759 * find/Makefile.am, xargs/Makefile.am:
4760 Enable checking of support for --version and --help
4762 * locate/Makefile.am:
4763 Con't check command-line options for frcode, code or bigram
4765 * locate/code.c: Support --version and --help.
4767 * ChangeLog: *** empty log message ***
4769 * find/defs.h, find/find.c, find/fstype.c, lib/Makefile.am, lib/extendbuf.c, lib/extendbuf.h, NEWS:
4770 Avoid fatal error if automount mounts a filesystem on a directory because we chdir()ed into it
4772 * configure.in: Next release will be 4.2.6.
4775 Indicate that the '-' flag does work for most fields. Also provide
4776 an example of using the comma operator to traverse the filesystem just
4777 once but search for more than one thing.
4779 * doc/find.texi: Indicate that the '-' flag does work for most fields.
4781 2004-11-19 James Youngman <jay@gnu.org>
4783 * configure.in: releaseing findutils-4.2.5
4785 * find/testsuite/Makefile.am, locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
4786 If a directory has no Makefile.am, omit it from the parent's DIST_SUBDIRS - automake-1.9 requires this
4788 * 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:
4789 updated by make distcheck
4791 * ChangeLog, NEWS: Updated for release 4.2.5.
4793 * find/find.1, doc/find.texi:
4794 Tell the reader that format flags may not work as they expect.
4797 Use the correct name for the macro gl_AC_TYPE_LONG_LONG (not
4798 jm_AC_TYPE_LONG_LONG).
4800 2004-11-15 James Youngman <jay@gnu.org>
4803 Avoid test -e because not all systems are POSIX-compliant (bug
4804 #11005). Also don't need regex module any more if we're not building
4807 * Makefile.am, configure.in:
4808 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
4811 Use @ref not @xref for a reference at the beginning of a sentence.
4814 Make sure gnulib.lib is on the #include path (Savannah bug #11002)
4817 Use base_name instead of basename - fixes Savannah bug 11003.
4819 * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, locate/bigram.c, locate/locate.c:
4820 Don't need banner to emphasise the location of the call to jy_SORTZ
4822 2004-11-12 James Youngman <jay@gnu.org>
4824 * 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:
4825 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]
4827 2004-11-11 James Youngman <jay@gnu.org>
4829 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c:
4830 Implemented -H and -L options.
4832 * find/util.c: Added in the -H and -L options on the usage message.
4834 2004-11-10 James Youngman <jay@gnu.org>
4836 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4837 Implemented %M and %A+ format specifiers
4839 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4840 Documented the fact that only %d and %m format specifiers honour the various formatting flags
4843 Get the right number of bytes in a Kilobyte (hint: it's not 1048; that
4844 was a typo, honest :)
4846 * po/pl.po: Applied Polish translations
4848 2004-11-08 James Youngman <jay@gnu.org>
4850 * 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:
4851 distcheck changed the po files again
4853 * locate/Makefile.am:
4854 Make install-data-hook honour the setting of DESTDIR so that "make
4855 DESTDIR=/tmp/foo install" works and puts localstater in the right
4858 * configure.in: We're now working on findutils-4.2.5.
4860 * doc/find.texi, xargs/xargs.1:
4861 Point out that xargs -i only splits input items at newlines
4863 * ChangeLog: Indicate that we released 4.2.4.
4865 * ChangeLog: Updated for release 4.2.4
4867 * NEWS, configure.in: Prepare for release of 4.2.4.
4869 * NEWS: Brought up to date with latest changes.
4871 * 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:
4872 Turn warning messages off by default if stdin is not a tty; allow these to be controlled explicitly by options -warn and -nowarn
4874 * po/et.po, po/it.po: Updated translation files
4876 * po/sk.po: New translation file
4878 * po/fr.po, po/nl.po, po/tr.po: Updated translation files
4880 * configure.in: Added Slovak (sk) language.
4883 Enforcing a lower limit on the value specified by -s makes the test
4884 suite fail. Removed that lower limit.
4886 * locate/Makefile.am: Oops, multilocate doesn't exist yet.
4888 * NEWS: *** empty log message ***
4890 * doc/find.texi, locate/updatedb.1, locate/updatedb.sh:
4891 Added option --findoptions to updatedb
4893 * locate/Makefile.am, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
4894 Fixed section numbers in manpage titles and cross-references
4896 * NEWS, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
4897 Increased the default argument length and improved POSIX compliance of the handling of out-of-range values for the -s option
4899 2004-11-07 James Youngman <jay@gnu.org>
4902 Added in the extra files we need to distribute, nullsort.m4
4903 order-bad.bin order-good.bin
4905 * doc/find.texi: Documented locate's --limit option
4907 * locate/locate.1, locate/locate.c:
4908 Implmented --limit and corrected the implementation of the -i option.
4910 2004-11-06 James Youngman <jay@gnu.org>
4912 * NEWS, doc/find.texi, locate/locate.1:
4913 Documented --wholename and --basename and updated the NEWS file
4916 Give the autogen commands in a form that you can usefully cut and paste into a shell
4918 * NEWS: Options --null and --count) for locate
4921 Don't return '.' for an empty path element, because the path we are splitting may not be intended to contain directories
4923 * configure.in: we're working on findutils-4.2.4 now
4925 * locate/Makefile.am: Substitute @SORT_SUPPORTS_Z@
4928 Documented new locate option --null and newline handling
4930 * locate/locate.1, locate/locate.c:
4931 New locate options --null, --wholename, --basename, --count
4933 * locate/frcode.c, locate/updatedb.1, locate/updatedb.sh:
4934 correctly handle newlines in the file names
4936 * configure.in: Determine if sort -z works
4938 * m4/nullsort.m4, m4/order-bad.bin, m4/order-good.bin:
4939 jy_SORTZ: a macro to determine if the system has a sort command with a working -z option
4941 2004-11-01 James Youngman <jay@gnu.org>
4943 * NEWS: Fixed "find -printf '%H\n'".
4946 Avoid segfault if -printf %H is used where the matched file was the default, unspecified starting point, the current directory
4948 2004-10-31 James Youngman <jay@gnu.org>
4950 * find/find.1, find/parser.c: NetBSD also supports -d.
4952 * find/find.1, doc/find.texi:
4953 Documented the behaviour of -daystart and -follow in more detail
4955 * find/parser.c: Corrected the usage message.
4958 When deciding whether to issue a warning about options following
4959 non-options, ignore any options whose position affects the tests
4960 (i.e. -daystart and -follow).
4962 * find/parser.c: -daystart is a positional option like -follow.
4965 Issue a warning message if an option is specified after a test or an
4966 action (because the user might have believed that the behaviour of the
4967 option is in some way conditional on the preceding tests).
4969 * locate/updatedb.sh:
4970 Oops; removed some test code that I shouldn't have checked in.
4972 * locate/updatedb.sh:
4973 Indicate that the old locate database format will shortly be unsupported.
4976 Use @direntry instead of hard-coding START-INFO-DIR-ENTRY inside @ifinfo.
4978 * locate/updatedb.1: Updated default location of locatedb file.
4981 Updated to give correct FTP location and to not talk about "test"
4982 versions of automake, which are no longer required.
4984 * locate/updatedb.sh:
4985 Incorporated the default list of filesystems to avoid from the Debian
4986 package. Also added /afs and /sfs to the default pruned paths.
4988 * configure.in: Released findutils 4.2.3
4990 * 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:
4991 did make distcheck, which updates these files
4993 * find/defs.h, find/fstype.c:
4994 Use const qualifier in arguments to filesystem_type() to allow callers with const variables to use them
4996 * ChangeLog: Updated.
4998 * NEWS: Added new news.
5001 Extra diagnositcs for the case where we have the error "%s changed
5002 during execution of %s" - that is when we chdir back to the parent
5003 directory only to find that it has changed.
5005 2004-10-30 James Youngman <jay@gnu.org>
5007 * .cvsignore, NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
5008 Implemented the -quit action
5010 * NEWS, doc/find.texi, find/find.1, find/parser.c, find/pred.c:
5011 Refactored time handling routines in preparation for support of absolute timestamp comparison predicates
5014 Applied Savannah patch #2952 ("getline off-by-one bugfix").
5016 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
5017 Added -delete action (Savannah patch #3454 with additions)
5020 Applied Savannah patch #2692 (allowing get_short to process negative integers).
5023 If we are iossuing an error message because $FIND_BLOCK_SIZE is set,
5024 ignore the setting of errno.
5026 * find/parser.c: More fixes for pedantic compiler warnings
5028 * NEWS, find/parser.c, find/tree.c: Eliminated some compiler warnings
5030 * find/find.c, find/parser.c, find/pred.c:
5031 Various fixes for compiler warninga sbout unreachable code or unused function arguments
5033 * intl/plural.y: Silence compiler warning about unused argument.
5035 * locate/testsuite/Makefile.am:
5036 Subdirectory "inputs" does not exist, so remove it from DIST_SUBDIRS.
5039 Corrected the explanation of why we have to use no parentheses around
5040 the String argument to the N_ macro in its expansion.
5042 * configure.in: Nextr release is 4.2.3.
5044 * configure.in: IOndicate this is no longer the pristine release.
5047 Oops, comments for release 4.2.0 should have said 20480 bytes, not 2480.
5050 The -ls predicate should not truncate usernames. Fixes Savannah bug #10800.
5052 * find/fstype.c, locate/locate.c:
5053 Fixes for Savannah bug #3727 (Intel icc compilation errors).
5055 2004-10-25 James Youngman <jay@gnu.org>
5057 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
5058 Support -printf %D, which prints the device number of the containing filesystem
5060 * locate/updatedb.sh:
5061 Avoid confusion between James Woods and James Youngman, by using the
5062 disambiguating surname.
5064 * find/parser.c: Use RE_ICASE instead of re->translate.
5066 * configure.in, find/parser.c, find/pred.c, xargs/xargs.c:
5067 No need to #define _GNU_SOURCE if we use gl_INIT.
5069 2004-10-24 James Youngman <jay@gnu.org>
5071 * ChangeLog: Prepared to release findutils-4.2.2.
5073 * 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:
5074 Updates prior to release of 4.2.2
5076 * NEWS: Updated with news for findutils-4.2.2.
5078 * 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:
5079 Corrected typo in the address of the FSF office
5081 * lib/strspn.c: Updated FSF address.
5083 * m4/.cvsignore: 'cvs status' should ignore Makefile.in
5085 * 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:
5086 Use gnulib-tool --import to import the gnulib code, rather than the odd way we were doing it before
5088 * 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:
5089 Work round an apparent compiler bug in HP-UX 11.23 for
5093 Work around what appears to be a C compiler bug in HP-UX 11.23 for
5096 * INSTALL, depcomp, install-sh, missing, mkinstalldirs:
5097 Updated from automake
5099 * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c, find/find.c:
5100 Avoid use of exit() within main, to silence warnings about unreachable code
5102 2004-10-22 James Youngman <jay@gnu.org>
5104 * doc/find.texi: Syntax corrections.
5106 * doc/find.texi: Indicate that "-exec {}+" is not yet supported.
5108 * find/find.1: Indicate that "{}+" is not yet supported.
5110 * find/testsuite/find.gnu/name-period.xo, find/testsuite/find.gnu/name-period.exp, find/find.1, doc/find.texi:
5111 The -name predicate must allow '*' to match '.foo' as demanded by IEEE
5112 Std 1003.2-1992 Interpretation #126.
5115 Remove use of FNM_PERIOD for -name as demanded by IEEE Std 1003.2-1992
5118 * find/parser.c: Fix for compilation (on AIX 4.3) with GCC 2.x.
5121 Changed the erorr message issued when there is an unmatched quote to
5122 point out that the user might have wanted to use the -0 option instead.
5124 2004-10-17 James Youngman <jay@gnu.org>
5127 Define intmax_t if it is not already defined - allows parser.c to compile on AIX 4.3
5130 Adjust version number to indicate that this s/w has moved on since the
5133 * configure.in: preparing to release 4.2.1
5135 * ChangeLog: updated with current changes
5137 * README-CVS: Updated to go with newer version of gnulib.
5139 * 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:
5140 preparation for release
5142 * NEWS: Mention the changes to "trap".
5144 * NEWS: Brought up to date.
5147 Use xalloc-die module from gnulib, since that has now been split out
5150 Check fnmatch() when other predicates that rely on fnmatch() are used.
5152 * find/parser.c: bug #10701: find needs fnmatch sanitycheck on startup
5154 2004-10-16 James Youngman <jay@gnu.org>
5157 Switch to requirement for GNU fnmatch because it supports FNM_CASEFOLD.
5159 * locate/updatedb.sh:
5160 Bug #9465: use of signal numbers for 'trap' is deprecated. Should use
5162 http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html,
5163 which indicates that support for signal numbers is optional, while
5164 support for signal names is mandatory.
5167 Indicate that this is the CVS version (once again) now that findutils
5168 4.2.0 has been released.
5170 * 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:
5171 findutils 4.1.20 check-in for tagging
5173 2004-10-02 James Youngman <jay@gnu.org>
5175 * po/Makefile.in.in:
5176 Search in $(top_srcdir) for mkinstalldirs, since that's where we keep it.
5178 * NEWS: Brought up to date, organised more clearly, and tidied up.
5180 * NEWS: brought up to date with recent changes
5182 * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/ignore_case1.exp, locate/testsuite/locate.gnu/ignore_case3.exp, locate/updatedb.sh:
5183 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
5186 Fixed usage of human_readable() in '%k' format specifier to fix a bug
5187 reported by Dmitry V. Levin (arguments to human_readable() were
5188 specified in the wrong order, which resulted in a floating-point
5191 2004-08-08 James Youngman <jay@gnu.org>
5193 * locate/updatedb.sh:
5194 cd to / to avoid inability to examine the current directory if we're
5195 invoked via cron (and hence in root's home directory for example).
5197 * doc/find.texi, find/find.1:
5198 Deprecate -path and -ipath in favour of -wholename and -iwholename
5201 As per RMS's suggestion, deprecate -path and -ipath in favour of
5202 -wholename and -iwholename.
5205 Fixed Savannah bug #9923, in which get_short() returns large positive
5206 ints when it should be returning negative shorts.
5209 Applied documentation improvements suggested by Dan Jacobson
5210 <jidanni@jidanni.org>.
5213 Don't check size_of_environment against arg_max since that causes the
5216 * xargs/xargs.1, xargs/xargs.c: Better documentation for the -i option
5218 2004-05-03 James Youngman <jay@gnu.org>
5221 document the various suffixes for -size and also the new
5222 option -ignore_readdir_race
5225 Fixes Savannah bug #8623 (failure to check consistency of data
5226 read from locate database)
5228 * locate/updatedb.sh:
5229 Resolves Savannah bug 4380, that updatedb generates an empty
5230 database if one of the commands fails
5232 * NEWS: Talk about -ignore_readdir_race
5235 Documented -ignore_readdir_race and -noignore_readdir_race
5238 -ignore_readdir_race should have no effect if the reason for the
5239 failure of stat(2) was anything other than ENOENT.
5241 * find/defs.h, find/find.c, find/parser.c:
5242 Fixed Savannah bug 4391 (readdir race condition leading to
5243 spurious error messages)
5245 2004-04-24 James Youngman <jay@gnu.org>
5247 * README-CVS: Corrected the instructions for getting gnulib via CVS.
5249 2004-04-13 James Youngman <jay@gnu.org>
5252 Actioned Savannah bug #8558 (find complains when it tries to recurse
5253 into directories that it had removed).
5255 2004-03-13 James Youngman <jay@gnu.org>
5257 * ChangeLog: Updated from checkin comments.
5260 Oops, there is no access to the predicate name table if DEBUG is
5264 Detect arithmetic overflow (poorly) in insert_time(), which diagnoses
5265 the failure to handle large arguments to -mtime. The existing code
5266 does careful computation and then bungs the value into a time_t, which
5267 ruins all our careful effort. The new code is not a great
5268 improvement. We just check the result to detect overflow, rather than
5269 actually avoiding the overflow.
5272 Fixed Debian bug #185202 by checking for any trailing predicates after
5273 the top-level invocation of get_expr() has done its work.
5275 * locate/locate.1, xargs/xargs.1:
5276 Fixed Debian bug 175372, inappropriate 'L' suffixes on manual
5277 page section indicators
5280 Removed "L" suffixes from manual page section indicators, to fix
5283 * debian/updatedb.conf:
5284 Updated with list of filesystems from current Debian release. This
5285 includes devfs, for example.
5288 Modified documentation of "-s" option to take into account the fix for
5292 Fixed Debian bug #176201, "xargs enviroment size limited to 20k", by
5293 reading a patch offered by Bob Proulx and implementing something
5294 substantially similar myself.
5296 2004-01-03 James Youngman <jay@gnu.org>
5299 Indicate that prep_child_for_exec() fixes Savannah bug #3992.
5302 Attach the stdin of xargs' child process to /dev/null so that if it
5303 tries to read from its stdin it doesn't consume any of the list of
5304 files that xargs is trying to use.
5307 Documented that the -regex option follows Gnulib's re_match()
5310 * NEWS, locate/locate.c: Applied Savannah patch 2108
5312 * xargs/xargs.c: Applied Savannah patch 1500
5314 * find/find.1, doc/find.texi:
5315 Improved the documentation for the %k and %b format specifiers to
5316 -printf (Savannah bug #5034). Also pointed out that this handling is
5317 different to that used by the "b" and "k" suffixes with "-size".
5319 * find/find.1: Improved the documentation for %k (Savannah bug #5034).
5322 Improved the documentation for -print0 in the manpage, fixing Debian
5325 * README-CVS, find/pred.c, lib/listfile.c:
5326 Brought up-to-date with change in gnulib's human.c - we no longer
5327 use human_readable_inexact(), because it is no longer provided.
5329 2003-08-08 James Youngman <jay@gnu.org>
5332 Documented the fact that -printf also supports the '\0' escape code.
5333 Added "STANDARDS CONFORMANCE" section.
5335 2003-08-02 James Youngman <jay@gnu.org>
5338 Explain that braces are not special when performing filename matching
5342 added example of the use of -exec to the EXAMPLES section
5344 * find/fstype.c, locate/locate.c:
5345 Savannah bug #4295 - implicit declarations of ctype.h functions
5348 Savannah bug #4279 - missing newline on locate help message
5350 * find/find.1, xargs/xargs.1:
5351 Improved discussion of the -print0 option of find and the -0 option of xargs
5353 2003-06-26 James Youngman <jay@gnu.org>
5356 Remove reference to nonexistent module "basename" ("dirname" exists
5357 and we already use that).
5359 2003-06-21 James Youngman <jay@gnu.org>
5362 Indicate that xargs stops immediately if a command exits with status 255
5365 Document the fact that xargs exits immediately with an error message
5366 if the command it executes exits with a status of 255.
5368 2003-06-18 James Youngman <jay@gnu.org>
5371 Indicate that -fls and friends always create their output file
5373 2003-06-16 James Youngman <jay@gnu.org>
5375 * ChangeLog, find/find.1, locate/locate.1, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
5376 Added BUGS section to manual pages. This section includes information about known bugs and how to report new bugs.
5378 * AUTHORS: Identify the current maintainer.
5380 * TODO: Removed the TODO items which have now been done.
5382 * THANKS: Added Bruno Haible and Bob Proulx.
5384 * xargs/xargs.c: xargs/xargs.c (DO_MULTIBYTE): New macro.
5385 (mbstrstr): New function.
5386 (do_insert): Use it instead of strstr.
5388 * config.guess, config.sub:
5389 Use config.guess and config.sub from automake
5392 Bruno Haible: (fstype_to_string) Don't define this function if
5393 HAVE_F_FSTYPENAME_IN_STATFS is defined.
5396 Bruno Haible: Prefer the 4.4BSD API (if present) to the 4.3BSD API,
5397 because some 4.4BSD systems have <mntent.h> but no /etc/mtab file.
5399 * doc/find.texi, find/find.1:
5400 Applied patch 1498 (documenting the backslash escape sequence)
5402 * locate/updatedb.sh: Applied (my own version of) Savannah patch 1601.
5405 Applied Savannah patch #1547 (document the fact that printf
5406 field-width specifiers are supported).
5409 Applied Savannah patch #1499 (adds final newline to usage message).
5411 2003-06-14 James Youngman <jay@gnu.org>
5413 * NEWS, configure.in:
5414 Updated version number to 4.2.0-CVS [not ready for release yet]
5416 * 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
5417 also need stpcpy (e.g. for Solaris)
5419 * intl/dcigettext.c:
5420 plural_lookup: don't use a variable called "index", because we may
5421 have done "#define strchr index", in which case using a variable
5422 called index will prevent us calling strchr(p, ch) in the same scope.
5424 * 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:
5425 Updated copyright years and the address of the FSF
5427 * aclocal.m4, config.h.in, configure:
5428 Removed files that are generated from other files (e.g. configure)
5430 * NEWS: Updated NEWS file for 4.1.20.
5432 * 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:
5433 Updates to the i18n files to ensure that 'make dist' succeeds
5435 * lib/posix/.cvsignore, lib/posix/Makefile.am,
5436 lib/posix/Makefile.in, lib/posix/regex.h, lib/strftime.c,
5437 lib/strncasecmp.c, lib/strspn.c, lib/strstr.c, lib/strtol.c,
5438 lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, lib/wait.h,
5439 lib/waitpid.c, lib/xalloc.h, lib/xgetcwd.c, lib/xmalloc.c,
5440 lib/xstat.in, lib/xstrdup.c, lib/xstrtol.c, lib/xstrtol.h,
5441 lib/xstrtoul.c, lib/xstrtoul.h, lib/xstrtoumax.c, lib/yesno.c,
5442 locate/Makefile.am, locate/Makefile.in, locate/locate.c,
5443 locate/testsuite/Makefile.in, m4/.cvsignore, m4/ChangeLog,
5444 m4/Makefile.am, m4/Makefile.am.in, m4/Makefile.in, m4/README,
5445 m4/afs.m4, m4/assert.m4, m4/c-bs-a.m4, m4/check-decl.m4,
5446 m4/codeset.m4, m4/d-ino.m4, m4/d-type.m4, m4/error.m4,
5447 m4/fnmatch.m4, m4/fnmatchcase.m4, m4/fstypename.m4, m4/getline.m4,
5448 m4/gettext.m4, m4/glibc.m4, m4/glibc21.m4, m4/iconv.m4,
5449 m4/inttypes_h.m4, m4/isc-posix.m4, m4/jm-glibc-io.m4,
5450 m4/jm-macros.m4, m4/jm-mktime.m4, m4/lcmessage.m4, m4/libintl.m4,
5451 m4/link-follow.m4, m4/ls-mntd-fs.m4, m4/lstat-slash.m4,
5452 m4/lstat.m4, m4/malloc.m4, m4/mbstate_t.m4, m4/memcmp.m4,
5453 m4/prereq.m4, m4/progtest.m4, m4/readdir.m4, m4/realloc.m4,
5454 m4/regex.m4, m4/st_dm_mode.m4, m4/st_mtim.m4, m4/stat.m4,
5455 m4/strerror_r.m4, m4/strftime.m4, m4/timespec.m4, m4/uintmax_t.m4,
5456 m4/ulonglong.m4, m4/xstrtoumax.m4, xargs/Makefile.am,
5457 xargs/Makefile.in, xargs/testsuite/Makefile.in,
5458 find/testsuite/Makefile.in, lib/.cvsignore, lib/Makefile.am,
5459 lib/Makefile.in, lib/alloca.c, lib/ansi2knr.1, lib/ansi2knr.c,
5460 lib/argmatch.c, lib/argmatch.h, lib/basename.c, lib/basename.h,
5461 lib/dirname.c, lib/dirname.h, lib/error.c, lib/error.h,
5462 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/fnmatch.c,
5463 lib/fnmatch.h, lib/getline.c, lib/getline.h, lib/getopt.c,
5464 lib/getopt.h, lib/getopt1.c, lib/human.c, lib/human.h,
5465 lib/idcache.c, lib/malloc.c, lib/memcmp.c, lib/memcpy.c,
5466 lib/memset.c, lib/mktime.c, lib/modechange.c, lib/modechange.h,
5467 lib/pathmax.h, lib/quotearg.c, lib/quotearg.h, lib/realloc.c,
5468 lib/regex.c, lib/regex.h, lib/rpmatch.c, lib/savedir.c,
5469 lib/savedir.h, lib/stpcpy.c, lib/strcasecmp.c, lib/strdup.c,
5470 find/Makefile.am, find/Makefile.in, find/find.c, find/pred.c:
5471 Updated to work with current version of gnulib
5473 * import-gnulib.sh: New file.
5475 * config.h.in, configure, configure.in, doc/Makefile.in, import-gnulib.sh:
5476 Updated to work with current version of gnulib
5478 * README-CVS: New file.
5480 * Makefile.am, Makefile.in, README-CVS, aclocal.m4:
5481 Updated to work with current version of gnulib
5483 2003-05-26 James Youngman <jay@gnu.org>
5485 * po/pl.po, pt_BR.po, ru.po, sv.po, tr.po, da.po, de.po, es.po,
5486 et.po, findutils.pot, fr.po, gl.po, id.po, it.po, ko.po, nl.po:
5487 Changes to allow compilation on non-GNU systems (i.e. for the
5488 macros that gnulib decides to #define to be effective)
5490 2003-05-24 James Youngman <jay@gnu.org>
5492 * po/da.po, de.po, es.po, et.po, findutils.pot, fr.po, gl.po,
5493 id.po, it.po, ko.po, nl.po, pl.po, pt_BR.po, ru.po, sv.po, tr.po:
5494 also need stpcpy (e.g. for Solaris)
5496 * po/POTFILES.in, da.po, de.po, es.po, et.po, findutils.pot, fr.po,
5497 gl.po, id.po, it.po, ko.po, nl.po, pl.po, pt_BR.po, ru.po, sv.po,
5498 tr.po: Updates to the i18n files to ensure that 'make dist'
5501 2001-06-09 Kevin Dalley <kevin@seti.org>
5504 Changes the location of bison.simple after running bison on local
5507 * ChangeLog: *** empty log message ***
5509 * Makefile.in, aclocal.m4, config.h.in, configure,
5510 doc/Makefile.in, find/Makefile.in, find/testsuite/Makefile.in,
5511 lib/Makefile.in, lib/posix/Makefile.in, locate/Makefile.in,
5512 locate/testsuite/Makefile.in, m4/Makefile.in, xargs/Makefile.in,
5513 xargs/testsuite/Makefile.in: Updates mostly from gettext-0.10.38
5515 * ABOUT-NLS: * ABOUT-NLS: updated from gettext-0.10.38.
5517 * configure.in: * configure.in: add tr to ALL_LINGUAS.
5519 * intl/config.charset, intl/dcigettext.c, intl/dcngettext.c,
5520 intl/dngettext.c, intl/libgnuintl.h, intl/localcharset.c,
5521 intl/locale.alias, intl/ngettext.c, intl/plural.y,
5522 intl/ref-add.sin, intl/ref-del.sin: updated from gettext-0.10.38
5524 * intl/cat-compat.c, intl/linux-msg.sed, intl/po2tbl.sed.in,
5525 intl/xopen-msg.sed, m4/ChangeLog: *** empty log message ***
5528 * jm-macros.m4 (jm_MACROS): remove jm_ICONV, which is replaced by
5529 AM_ICONV, which is imported from gettext-0.10.38. removed
5530 jm_GLIBC21, which is required in AM_GNU_GETTEXT, which is
5531 imported from gettext-0.10.38.
5533 * po/stamp-cat-id: * stamp-cat-id: Remove file.
5535 * po/Makefile.in.in: * Makefile.in.in: Upgrade to gettext-0.10.38.
5537 * po/ChangeLog: * cat-id-tbl.c: Remove file.
5539 * po/de.po, po/es.po, po/et.po, po/fr.po:
5540 * fr.po, et.po, es.po, de.po: updated translations to
5543 * po/tr.po: * tr.po: New Turkish translation.
5545 * m4/ChangeLog: *** empty log message ***
5547 * intl/dgettext.c, intl/explodename.c, intl/finddomain.c,
5548 intl/gettext.c, intl/gettext.h, intl/gettextP.h,
5549 intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
5550 intl/libgettext.h, intl/loadinfo.h, intl/loadmsgcat.c,
5551 intl/localealias.c, intl/plural.c, intl/textdomain.c,
5552 intl/ChangeLog, intl/Makefile.in, intl/VERSION,
5553 intl/bindtextdom.c, intl/dcgettext.c: Updated from gettext-0.10.38
5556 reflects addition of codeset.m4 from gettext-0.10.38, automatically
5559 * m4/codeset.m4, m4/gettext.m4, m4/glibc21.m4, m4/iconv.m4,
5560 m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4: *
5561 progtest.m4, lcmessage.m4, isc-posix.m4, iconv.m4,
5562 glibc21.m4, gettext.m4, codeset.m4: updated from
5565 * ChangeLog: *** empty log message ***
5567 * THANKS: added "Gerrit P. Haase" <gerrit.haase@t-online.de>
5569 * m4/ChangeLog, locate/testsuite/.cvsignore,
5570 xargs/testsuite/.cvsignore, config.h.in, configure, aclocal.m4,
5571 doc/.cvsignore: *** empty log message ***
5573 * m4/jm-macros.m4: * jm-macros.m4 (jm_MACROS): add jm_FSTYPENAME
5575 * doc/Makefile.in: *** empty log message ***
5578 * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
5579 created by dvips. This should be taken care of by automake, but
5580 the code is commented out.
5582 2001-06-09 Kevin Dalley <kevin@seti.org>
5584 * ABOUT-NLS: updated from gettext-0.10.38.
5586 * configure.in: add tr to ALL_LINGUAS.
5588 * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
5589 created by dvips. This should be taken care of by automake, but
5590 the code is commented out.
5592 * po/stamp-cat-id: * stamp-cat-id: Remove file.
5594 * po/Makefile.in.in: * Makefile.in.in: Upgrade to gettext-0.10.38.
5596 * po/ChangeLog: * cat-id-tbl.c: Remove file.
5598 * po/de.po, es.po, et.po, fr.po:
5599 * po/fr.po, et.po, es.po, de.po: updated translations to
5602 * po/tr.po: * tr.po: New Turkish translation.
5604 2001-06-05 Kevin Dalley <kevin@seti.org>
5606 * locate/updatedb.sh: replace "whoami" with "id -u" when testing
5609 2001-06-04 Kevin Dalley <kevin@seti.org>
5611 * locate/testsuite/Makefile.am (DIST_SUBDIRS): remove second
5612 instance of DIST_SUBDIRS.
5614 * locate/Makefile.am (install-data-hook): changed install target
5615 to install-data-hook, which still installs other files.
5617 * doc/Makefile.am (MOSTLYCLEANFILES): added find.cps, which should
5618 probably be handled by automake.
5620 * doc/mdate-sh: removed file in doc directory. It now exists only
5621 in top_srcdir, but this changed required a patch to automake.
5623 2001-06-01 gettextize <bug-gnu-utils@gnu.org>
5625 * Makefile.in.in: Upgrade to gettext-0.10.38.
5626 * cat-id-tbl.c: Remove file.
5627 * stamp-cat-id: Remove file.
5629 2001-05-20 Kevin Dalley <kevin@seti.org>
5633 * lib/Makefile.am (EXTRA_DIST): add strcasecmp.c
5635 * find/testsuite/Makefile.am (EXTRA_DIST): new tests:
5636 find.gnu/name-opt.exp find.gnu/perm.exp find.gnu/perm.xo
5637 find.gnu/prune-default-print.exp find.gnu/prune-default-print.xo
5639 * configure.in: update to 4.1.7
5641 * config.sub, config.guess: upgraded to recent versions of
5642 config.sub and config.guess.
5644 * locate/updatedb.sh: Add space to "#! /bin/sh"
5646 * configure.in: Add id to ALL_LINGUAS
5648 * lib/Makefile.am (EXTRA_DIST): getline.[ch] added
5649 (libfind_a_SOURCES): getline.[ch] removed since getline.c is not
5652 * po/da.po, de.po, es.po, et.po, fr.po, gl.po, id.po, it.po, ko.po,
5653 nl.po, pl.po, pt_BR.po, ru.po, sv.po: updated to reflect changes
5656 * po/id.po: New translation for Indonesia.
5658 2001-05-20 Lionel CONS <lionel.cons@cern.ch>
5660 * find/find.c: Fixed security holes. 1. There is a race
5661 condition between the lstat() to detect a symbolic link and the
5662 actual chdir(). 2. An attacker can move directories while find
5663 is _inside_ so that chdir(..) goes out of the intended file tree.
5665 * lib/modetype.h: support for Solaris door files is added.
5667 * lib/filemode.c: S_ISDOOR is undef'ed if STAT_MACROS_BROKEN
5669 * find/pred.c (pred_type): -D option (for Solaris door files) is
5672 * find/parser.c (insert_type): -D option (for Solaris door files)
5675 * find/find.1: -D option (for Solaris door files) is documented
5677 * doc/find.texi (Type): -D option (for Solaris door files) is
5680 2001-05-02 Kevin Dalley <kevin@seti.org>
5682 * configure.in: Change AC_CHECK_MEMBERS to conform to new
5683 autoconf. Add Danish.
5685 2001-04-28 Kevin Dalley <kevind@rahul.net>
5687 * po/sv.po, ru.po, pt_BR.po, pl.po, nl.po, ko.po, it.po, gl.po,
5688 fr.po, et.po, es.po, de.po, findutils.pot: new translations, and
5689 new source code to translate.
5691 * po/da.po: new Danish translation.
5693 2001-01-20 Kevin Dalley <kevin@seti.org>
5695 * doc/find.texi (Adding Tests): Place space in "#! /bin/sh".
5697 * find/testsuite/find.gnu/prune-default-print.xo,
5698 find/testsuite/find.gnu/prune-default-print.exp: test for "find
5699 . -prune" which passes after changes. Also see name-opt.exp.
5701 * find/util.c (get_new_pred):
5702 * find/tree.c (set_new_parent):
5703 * find/parser.c (various parse functions):
5704 * find/find.c (main):
5705 (default_prints): new function
5706 * find/defs.h (struct predicate): added no_default_print
5707 side_effects are no separated from no_default_print. predicates
5708 which cause side effects should not be reordered (optimized).
5709 predicates which cause printing should have printing turned off.
5710 Printing statements also cause side effects.
5712 2000-10-29 Bruno Haible <haible@ilog.fr>
5714 * locate/code.c (main), doc/find.texi: improve handling of
5715 non-ASCII characters used old format.
5717 2000-10-21 Paul Eggert <eggert@twinsun.com>
5719 If open + fchdir fails, fall back on xgetcwd + chdir.
5720 The old code tested for this at compile-time,
5721 but SunOS 4.1.4 fchdir can fail at run-time.
5723 * find/defs.h (fchdir): Define to -1 if not available.
5724 * find/defs.h (starting_dir, starting_desc):
5725 Always declare. starting_dir now points to const.
5726 * find/find.c (starting_dir, starting_desc): Likewise.
5727 * find/find.c (starting_dir):
5728 Now "." if starting_desc is nonnegative, for benefit of diagnostics.
5729 (main, process_top_path, process_dir):
5730 If open + fchdir fails, fall back on xgetcwd + chdir.
5731 * find/pred.c (launch): Likewise.
5733 2000-10-20 Kevin Dalley <kevin@seti.org>
5735 * xargs/xargs.c, locate/updatedb.sh, locate/locate.c (usage),
5736 find/parser.c (parse_help): add bug reporting address to help
5738 2000-10-13 Kevin Dalley <kevin@seti.org>
5740 * depcomp, lib/depcomp: depcomp moved from lib to .
5742 * po/sv.po, ru.po, pt_BR.po, pl.po, nl.po, ko.po, it.po, gl.po,
5743 fr.po, findutils.pot, et.po, es.po, de.po: updated after addition
5746 2000-10-11 Kevin Dalley <kevind@rahul.net>
5750 * locate/testsuite/config/unix.exp: set PRUNEFS to "" for the
5753 2000-10-10 Bruno Haible <haible@ilog.fr>
5755 * lib/Makefile.am (libfind_a_SOURCES): added yesno.c
5757 * lib/yesno.c, lib/rpmatch.c: new files.
5759 * find/pred.c: use function yesno().
5761 2000-10-10 Kevin Dalley <kevind@rahul.net>
5763 * locate/testsuite/Makefile.am: Added missing \ at end of
5766 * locate/testsuite/locate.gnu/ignore_case3.xo,
5767 locate/testsuite/locate.gnu/ignore_case3.exp,
5768 locate/testsuite/locate.gnu/ignore_case2.exp,
5769 locate/testsuite/locate.gnu/ignore_case1.xo,
5770 locate/testsuite/locate.gnu/ignore_case1.exp: place locatedb
5771 inside tmp directory, add subdir directory under tmp.
5773 * locate/testsuite/config/unix.exp: clean up tmp after test is
5776 2000-10-10 Kevin Dalley <kevind@rahul.net>
5778 * locate/testsuite/config/unix.exp (Repository):
5780 * po/POTFILES.in: added lib/rpmatch.c
5782 2000-10-09 Kevin Dalley <kevind@rahul.net>
5784 * lib/fnmatch.c, lib/fnmatch.h: reverted to older version of
5785 fnmatch which works with Solaris.
5787 * locate/testsuite/config/unix.exp: dejagnu unix.exp
5789 * xargs/testsuite/config/unix.exp: remove temporary file
5791 * xargs/xargs.c: spelling correction
5793 * m4/prereq.m4: updated and changed some macros
5795 * m4/jm-macros.m4: replaced jm_FUNC_FNMATCH with
5796 kd_FUNC_FNMATCH_CASE_REPL
5798 * m4/timespec.m4, m4/strerror_r.m4, m4/mbstate_t.m4,
5799 m4/largefile.m4, m4/gettext.m4, m4/fnmatchcase.m4, m4/d-type.m4,
5800 m4/d-ino.m4, m4/c-bs-a.m4: new m4 macros.
5802 * m4/Makefile.am: add fnmatchcase.m4 and mbstate_t.m4
5804 * locate/testsuite/locate.gnu/ignore_case3.xo,
5805 locate/testsuite/locate.gnu/ignore_case3.exp,
5806 locate/testsuite/locate.gnu/ignore_case2.xo,
5807 locate/testsuite/locate.gnu/ignore_case2.exp,
5808 locate/testsuite/locate.gnu/ignore_case1.xo,
5809 locate/testsuite/locate.gnu/ignore_case1.exp,
5810 locate/testsuite/config/unix.exp: tests related to "--ignore-case"
5813 * locate/testsuite/locate.gnu: testsuite directory
5815 * locate/testsuite/Makefile.am (Repository):
5817 * locate/testsuite: add directory for locate testsuite
5819 * po/findutils.pot: updated file
5821 * po/sv.po, po/ru.po, po/pt_BR.po, po/pl.po, po/nl.po, po/ko.po,
5822 po/it.po, po/gl.po, po/fr.po, po/et.po, po/es.po, po/de.po:
5823 updated various po files.
5825 * locate/updatedb.sh: export TMPDIR, which is used by child
5828 * locate/locate.1, locate/locate.c: add "--ignore-case" option.
5830 * locate/Makefile.am: add testsuite subdirectory
5832 * find/testsuite/find.gnu/perm.xo,
5833 find/testsuite/find.gnu/perm.exp,
5834 find/testsuite/find.gnu/name-opt.xo,
5835 find/testsuite/find.gnu/name-opt.exp: added test suites
5837 * configure.in: add locate/testsuite/Makefile
5839 * doc/find.info*: removed from repository
5841 * doc/find.texi: add documentation for "-i" option.
5843 * aclocal.m4: removed from repository, as it is generated.
5845 * find/pred.c: fixes problem with "find -perm -0100".
5847 * lib/lstat.c, lib/stat.c: removed from repository. These files
5848 are generated from lib/xstat.in.
5850 2000-08-24 Kevin Dalley <kevind@rahul.net>
5852 * doc/find.texi (Invoking xargs): changed @var{-s} to @samp{-s}.
5854 2000-05-13 Kevin Dalley <kevind@rahul.net>
5856 * find/tree.c (opt_expr): move iname and ipath to the front of the
5859 * doc/find.texi (Directories): changed wording for "-prune".
5861 * find/parser.c (parse_prune): set side_effects to true, to
5862 prevent prune from being moved in opt_expr.
5864 2000-04-12 Kevin Dalley <kevind@rahul.net>
5866 * doc/find.texi, doc/permi.texi: fix spellings, add LocalWords.
5868 * lib/Makefile.am: put getline.c back into libfind_a_SOURCES,
5869 since getstr is needed.
5873 * po/POTFILES.in: updated list of files, updated po files.
5876 2000-04-02 Paul Eggert <eggert@twinsun.com>
5878 Add support for large files, and port to Solaris 8 and earlier
5881 * lib/human.c (getenv): Depend on NEED_GETENV_DECL, not
5884 * lib/strftime.c (my_strftime): Make sure we call the system
5885 strftime, not ourselves, when invoking the underlying strftime.
5887 * m4/check-decl.m4 (jm_CHECK_DECLS): Remove memchr, nanosleep.
5889 * m4/jm-macros.m4 (jm_MACROS): Don't check for utime.h. Do not
5890 require jm_BISON, jm_CHECK_TYPE_STRUCT_UTIMBUF, jm_FUNC_LCHOWN,
5891 jm_FUNC_CHOWN, jm_FUNC_NANOSLEEP, jm_FUNC_GROUP_MEMBER,
5892 jm_FUNC_PUTENV, jm_FUNC_GETGROUPS, AM_FUNC_GETLOADAVG,
5893 jm_SYS_PROC_UPTIME, jm_FUNC_FTRUNCATE, jm_FUNC_UTIME. Do not
5894 replace strcasecmp, dup2, gethostname, getusershell, stime,
5895 strcspn, strpbrk, euidaccess, mkdir, rmdir, rpmatch, strndup,
5896 strverscmp, memchr, memmove. Do not check for declaration of
5897 lchown. Remove invocations of AM_FUNC_OBSTACK, AM_FUNC_STRTOD,
5898 POW_LIBM, jm_LANGINFO_CODESET, jm_ICONV. Remove df tests.
5899 (jm_CHECK_ALL_TYPES): Include <sys/stat.h> when checking for
5900 struct stat.st_blksize.
5902 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set environment variable
5903 in shell rather than using putenv, which isn't portable.
5905 * COPYING, lib/alloca.c, lib/dirname.c, lib/error.c,
5906 lib/savedir.c, lib/strstr.c, m4/check-decl.m4, m4/d-ino.m4,
5907 m4/d-type.m4, m4/getline.m4, m4/jm-glibc-io.m4, m4/jm-macros.m4,
5908 m4/jm-mktime.m4, m4/ls-mntd-fs.m4, m4/memcmp.m4, m4/prereq.m4,
5909 m4/readdir.m4, m4/regex.m4, m4/strftime.m4, m4/uintmax_t.m4: Sync
5910 to latest version from sh-utils-2.0g.
5912 * config.guess, config.sub, lib/argmatch.c, lib/argmatch.h,
5913 lib/human.c, lib/human.h, lib/memcpy.c, lib/quotearg.c,
5914 lib/quotearg.h, lib/strtoull.c, lib/strtoumax.c,
5915 lib/xstrtoumax.c, m4/c-bs-a.m4, m4/gettext.m4,
5916 m4/largefile.m4, m4/lcmessage.m4, m4/link-follow.m4,
5917 m4/progtest.m4, m4/strerror_r.m4, m4/timespec.m4,
5918 m4/xstrtoumax.m4: New files, taken from sh-utils-2.0g.
5920 * lib/ansi2knr.1, lib/ansi2knr.c, lib/basename.c, lib/getopt.h,
5921 lib/fnmatch.c, lib/fnmatch.h, lib/modechange.c: Sync to latest
5922 unreleased version of GNU tar (between 1.13.17 and 1.13.18).
5924 * lib/basename.h, lib/waitpid.c: New files, taken from same
5927 * lib/regex.c, lib/regex.h: Sync to GNU grep 2.4.2.
5929 * lib/posix/Makefile.am, lib/posix/regex.h: New files, taken from
5932 * lib/strftime.c: Sync to textutils 2.0e.
5934 * acconfig.h, depcomp, lib/strcasecmp.c, m4/check-type.m4,
5935 m4/const.m4, m4/decl.m4, m4/lfs.m4, m4/mktime.m4, m4/perl.m4,
5936 m4/putenv.m4, m4/uptime.m4, m4/utimbuf.m4, m4/utime.m4,
5937 m4/utimes.m4: Remove these files; no longer needed.
5939 * configure.in (AC_CANONICAL_HOST, AC_SYS_LARGEFILE,
5940 jm_AC_TYPE_UINTMAX_T): Add.
5941 (CACHE_IDS, FSTYPE_STATVFS, FSTYPE_USG_STATFS, FSTYPE_AIX_STATFS,
5942 FSTYPE_MNTENT, FSTYPE_STATFS, FSTYPE_GETMNT): Add comment, so that
5943 we don't need acconfig.h.
5944 (AC_CHECK_TYPE): Add ssize_t.
5945 (AC_REPLACE_FUNCS): Add waitpid.
5946 (AC_CHECK_FUNCS): Remove basename.
5947 (AC_FUNC_MKTIME): Remove.
5948 (LIBOBJS): Add no-ops to work around automake 1.4 bug.
5949 (AC_OUTPUT): Add lib/posix/Makefile.
5951 * find/defs.h: Include <config.h>, <sys/types.h>, <sys/stat.h>,
5952 <stdio.h>, <limits.h>, <inttypes.h>. All includers changed to not
5953 include these files, and to include "defs.h" first (since config.h
5954 must be included first).
5955 (CHAR_BIT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
5956 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, MOD_WXUSR,
5957 MODE_R, MODE_RW, MODE_RWX, MODE_ALL): New macros.
5958 (enum permissions_type): New enum.
5959 (struct long_val.negative): New member.
5960 (struct long_val.l_val): Now uintmax_t, not unsigned long.
5961 (struct size_val.size): Likewise.
5962 (struct perm_val): New type.
5963 (struct predicate.perm): Now struct perm_val, not unsigned long.
5964 (struct predicate.type): Now mode_t, not unsigned long.
5965 (list_file): New parameters current_time, output_block_size.
5966 All callers changed.
5967 (savedir, basename): Remove decls.
5968 (output_block_size, start_time): New extern vars.
5970 * find/find.c: Include <human.h>, <savedir.h>.
5971 (output_block_size, start_time): New vars.
5972 (main): Initialize them. No need to check for negative st_size,
5973 since savedir now does it for us.
5975 * find/fstype.c: Include "dirname.h".
5977 (filesystem_type_uncached): Use xstrtoumax instead of xatoi.
5979 * find/parser.c: Include "xstrtol.h".
5980 (get_num_days, get_num, parse_amin, parse_cmin, parse_mmin,
5981 parse_size, parse_used, insert_time, insert_num): Compute using
5982 uintmax_t, not unsigned long.
5983 (parse_amin, parse_cmin, parse_mmin, parse_used, insert_time):
5984 Keep track of whether time was negative before converting it to an
5986 (parse_daystart): Don't assume that localtime succeeds; e.g. it
5987 can fail with 64-bit time_t and 32-bit tm_year.
5988 (parse_perm, insert_type): Compute using mode_t, not unsigned
5990 (insert_type): Use symbolic constants like MODE_ALL instead of
5991 traditional ones like 07777. Set new kind member to indicate
5992 permissions type, instead of using unportable magic numbers.
5993 (make_segment): We will use human_readable to convert most numeric
5994 values, so simplify the cases.
5995 (get_num_days): Write in terms of get_num, to avoid duplicated
5997 (insert_time, insert_num): When debugging, convert large values to
5998 uintmax_t and output with %ju.
5999 (get_num): Use xstrtoumax to do the real work.
6001 * find/pred.c: Include "basename.h", "human.h".
6002 (DEV_BSIZE, ST_BLKSIZE, ST_NBLOCKSIZE): New macros, taken from
6004 (ST_NBLOCKS): Replace with fileutils defn.
6006 (ctime_format): New function.
6007 (pred_fprintf, format_date): Use human_readable to output large
6009 (pred_fprintf): Use ctime_format to output ctime-style dates. Use
6010 base_name to compute the base name of a path. With %m, output the
6011 mode portably using traditional numbers, even if the host uses
6012 some other numbering scheme.
6013 (pred_iname, pred_name): basename -> base_name.
6014 (pred_perm): Use new kind member to deduce permissions type,
6015 instead of relying on magic numbers.
6016 (pred_size): Compute using uintmax_t, not unsigned long. Avoid
6017 overflow if file size is near the maximum.
6018 (pred_type): Compute using mode_t, not unsigned long.
6019 (launch): Use waitpid, not wait. Check for EINTR.
6020 (format_date): Don't assume that localtime succeeds.
6022 * find/util.c (basename): Remove; we now use base_name.
6024 * lib/Makefile.am (SUBDIRS): New macro.
6025 (libfind_a_SOURCES): Add argmatch.h, argmatch.c, basename.h,
6026 basename.c, human.c, human.h, quotearg.c, quotearg.h, xstrtoumax.c.
6027 Remove error.h, error.c, getline.c.
6028 (EXTRA_DIST): Add mktime.c, regex.c.
6030 * lib/listfile.c: Include "human.h".
6031 (alloca): Declare, or include appropriate files to declare.
6032 (DEV_BSIZE, ST_NBLKSIZE, ST_NBLOCKS, ST_NBLOCKSIZE): New macros.
6033 (convert_blocks): Remove.
6034 (list_file): New current_time and output_block_size args.
6035 Revamp quite a bit, to handle large numbers correctly
6036 and to match GNU ls behavior more closely.
6038 * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4, gettext.m4,
6039 largefile.m4, lcmessage.m4, link-follow.m4, progtest.m4,
6040 strerror_r.m4, xstrtoumax.m4. Remove check-type.m4, const.m4,
6041 decl.m4, lfs.m4, mktime.m4, perl.m4, putenv.m4, timespec.m4,
6042 uptime.m4, utimbuf.m4, utime.m4, utimes.m4.
6044 * xargs/xargs.c (wait_for_proc): Retry wait if it fails with
6047 2000-04-05 Kevin Dalley <kevind@rahul.net>
6049 * xargs/Makefile.am: add ansi2knr
6051 * xargs/xargs.c: add macros PARAMS rather than P_. Add
6054 * po/POTFILES: new file listing all POFILES.
6056 * m4/gl.po, m4/et.po: new files
6058 * m4/Makefile.am.in: updated file
6060 * m4: update directory
6062 * locate/Makefile.am: create updatedb from updatedb.sh
6064 * locate/updatedb.sh, locate/updatedb.in: removed file. Replaced
6067 * locate/frcode.c, locate/code.c, locate/bigram.c: add macros
6068 PARAMS rather than P_. Add prototypes.
6070 * lib/xstat.in: new file
6072 * lib/Makefile.am: update to latest versions of library files.
6074 * find/testsuite/Makefile.am: add CLEANFILES
6076 * find/util.c: remove definition of basename
6078 * find/util.c, find/tree.c, find/pred.c, find/parser.c,
6079 find/fstype.c, find/find.c, find/defs.h: add macros PARAMS rather
6080 than P_, for consistency, change to prototypes
6082 * find/Makefile.am: Add prototypes and ansi2knr
6084 * configure.in: add Galition and Estonian languages.
6085 Miscellaneous other fixes.
6088 2000-03-11 Kevin Dalley <kevind@rahul.net>
6090 * lib/basename.c: Add file from libit.
6091 * lib/Makefile.am (libfind_a_SOURCES): add basename.c since it is
6092 no longer replaceable.
6094 * find/util.c: Remove definition of basename, which is now in
6095 lib/basename.c (as base_name).
6096 * find/pred.c: Use base_name, not basename.
6097 * find/defs.h: Likewise.
6099 * configure.in : Don't replace basename. Now we use only
6102 2000-02-26 Kevin Dalley <kevind@rahul.net>
6106 * lib/strtoul.c: added to distribution
6108 * configure.in: added strtoul to AC_REPLACE_FUNCS
6110 * configure.in: added jm_CHECK_ALL_TYPE
6112 2000-02-23 Kevin Dalley <kevind@rahul.net>
6114 * po/ChangeLog: removed, merged with top-level ChangeLog.
6116 * po/de.po: new version of German file.
6118 * po/gl.po, po/et.po: new languages, Estonian and Galician.
6120 * locate/updatedb.sh (PRUNEFS): enclose paths in quotes
6122 2000-02-17 Kevin Dalley <kevind@rahul.net>
6124 * po/it.po: new version of Italian file.
6126 * locate/updatedb.sh (prunefs_exp): have sed statement use '*'
6127 rather than the often unsupported '+'.
6129 2000-02-13 Kevin Dalley <kevind@rahul.net>
6131 * configure.in: removed AC_ARG_PROGRAM, which is already in
6134 * locate/Makefile.am (updatedb), locate/updatedb.sh: add
6135 transforms of find, frcode, bigram, and code back into
6136 updatedb.sh, which were accidentally removed.
6138 2000-02-12 Kevin Dalley <kevind@rahul.net>
6140 * lib/wait.h: updated address.
6142 2000-01-26 Kevin Dalley <kevind@rahul.net>
6146 * acconfig.h: added internationalization.
6148 * intl/*: copied from tar-1.13.17.
6150 * locate/Makefile.am, locate/locate.c, locate/code.c:
6151 internationalized file.
6153 * locate/frcode.c, locate/bigram.c: include headers from ../lib
6156 * xargs/Makefile.am, xargs/xargs.c: internationalized directory.
6158 2000-01-26 Kevin Dalley <kevind@rahul.net>
6160 * po/POTFILES.in: added list of files with translatable strings.
6162 * de.po, es.po, fr.po, it.po, ko.po, nl.po, pl.po, pt_BR.po,
6163 ru.po, sv.po: New, slightly out of date, files imported from the
6164 Translation Project: http://www.iro.umontreal.ca/contrib/po/HTML/,
6165 German, Spanish, French, Italian, Korean, Dutch, Polish, Brazilian
6169 2000-01-24 Kevin Dalley <kevind@rahul.net>
6171 * lib/xmalloc.c, lib/regex.c, lib/getopt.c: internationalization
6172 works with current version of gettext.
6174 * lib/getline.h : added declaration of getstr.
6175 * lib/Makefile.am (libfind_a_SOURCES): added getline.[ch] to
6176 standard compilation. Added internationalization.
6177 * find/Makefile.am (INCLUDES): corrected -I options for building
6178 in other directories.
6179 (LDADD): changes for internationalization.
6181 * configure.in (ALL_LINGUAS): added internationalization.
6182 getline.c is always compiled and linked, because of getstr.
6186 (DISTCLEANFILES): added intl/libintl.h
6187 (AUTOMAKE_OPTIONS): added gnits to AUTOMAKE_OPTIONS
6188 (SUBDIRS): added intl and po
6190 * acconfig.h: added internationalization values
6192 * THANKS: added thanks file for gnits compatibility.
6194 2000-01-22 Kevin Dalley <kevind@rahul.net>
6196 * added intl directory.
6197 * created po directory and added existing po files from
6198 http://www.iro.umontreal.ca/contrib/po/HTML
6200 * Added internationalization, only with slightly out of date po
6201 files for many locales.
6203 2000-01-18 Kevin Dalley <kevind@rahul.net>
6207 * locate/Makefile.am: remove creation of updatedb, since it is now
6210 * configure.in: updatedb is now created by configure.
6212 * xargs/Makefile.am: added testsuite to xargs directory
6214 * locate/updatedb.in: updatedb is now created by configure
6216 * locate/frcode.c, locate/code.c, locate/bigram.c: change return
6217 from main to int. Replace getstr with getline, where possible.
6219 * locate/Makefile.am: place frcode, code, bigram in
6222 * lib/xstrdup.c, lib/xmalloc.c, lib/xgetcwd.c, lib/xalloc.h,
6223 lib/strtol.c, lib/strstr.c, lib/strftime.c, lib/strdup.c,
6224 lib/stpcpy.c, lib/stat.c, lib/savedir.h, lib/savedir.c,
6225 lib/regex.h, lib/regex.c, lib/realloc.c, lib/pathmax.h,
6226 lib/modechange.h, lib/modechange.c, lib/mktime.c, lib/memset.c,
6227 lib/memcmp.c, lib/malloc.c, lib/lstat.c, lib/idcache.c,
6228 lib/getopt1.c, lib/getopt.c, lib/getopt.h, lib/getline.c,
6229 lib/getline.h, lib/fnmatch.c, lib/fnmatch.h, lib/filemode.c,
6230 lib/filemode.h, lib/fileblocks.c, lib/error.c, lib/error.h,
6231 lib/dirname.c, lib/alloca.c: updated to newer version of file from
6234 * find/version.c: version number is now automatically generated by
6237 * find/fstype.c (filesystem_type_uncached): fixes bug described as
6238 follows: When 'find' looks for a fstype, it parses the /etc/mtab
6239 until it finds the good line. But, if there is, before the good
6240 line, a line whose mountpoint is unreachable, it fails.
6242 * doc/texinfo.tex: updated to newer version
6244 * doc/find.texi: added version.texi, fixed a few documentation bugs.
6246 * configure.in: new m4 features.
6248 * Makefile.am: moved testsuite to below corresponding directories
6251 * acconfig.h: updated to match new m4 files.
6253 * m4: added m4 directory, largely borrowed from Jim Meyering's
6256 2000-01-17 Kevin Dalley <kevind@rahul.net>
6258 * doc/find.texi (Multiple Files): placed missing xargs in examples
6260 * find/testsuite/find.gnu/depth.exp: added find tests to test
6263 * doc/find.texi: include version.texi for automatic determination
6264 of version number, update bug report email address to
6265 bug-findutils@gnu.org.
6266 (Combining Primaries With Operators): add indices for " ,", "()",
6269 2000-01-17 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
6271 * find/tree.c (opt_expr): Never rearrange the arguments of the
6272 comma operator, since it is not commutative. Remove useless
6275 2000-01-17 Jonathan R. Ferro <jferro@corwin.ece.cmu.edu>
6277 * find/find.c (process_path): fix problem with "-depth" which is
6278 tested in depth.exp test.
6280 1999-08-15 Kevin Dalley <Kevin Dalley <kevin@seti.org>>
6282 * find/fstype.c (filesystem_type_uncached): a stat failure with
6283 EACCESS will ignore this file system keep on looking. Patch
6284 suggested by Vincent Danjean <vdanjean@ens-lyon.fr>.
6286 1999-08-15 Mark Kettenis <kettenis@gnu.org>
6288 * xargs/xargs.c (LONG_MAX): Define if necessary.
6289 (main): If ARG_MAX is -1 (that is sysconf
6290 (_SC_ARG_MAX) returns -1) the system does not impose a limit. In
6291 that case, use LONG_MAX as the limit.
6293 1999-08-15 Kevin Dalley <Kevin Dalley <kevind@rahul.net>
6295 * find/version.c: version string is now set by config.h
6297 1999-08-08 Kevin Dalley <kevin@seti.org>
6301 * README-alpha: added alpha README file
6303 * find/defs.h: move lstat declarations into defs.h
6305 * xargs/Makefile.am, testsuite/Makefile.am, locate/Makefile.am,
6306 lib/Makefile.am, find/Makefile.am, doc/Makefile.am, configure.in,
6307 Makefile.am: update for automake-1.4
6309 1999-08-02 Kevin Dalley <kevind@rahul.net>
6311 * AUTHORS: added file listing AUTHORS
6313 * lib/Makefile.am: modified code for EXTRA sources
6315 1999-01-30 Kevin Dalley <kevind@rahul.net>
6317 * added const to declaration of basename, which should satisfy
6318 Linux as well as Hurd (fixes bug #31325).
6320 1998-12-04 Kevin Dalley <kevind@rahul.net>
6322 * lib/nextelem.c: removed declaration of strdup and free, which
6323 meets GNU coding standards and allows compilation on more
6326 * find.texi: corrected explanation of -amin option which described
6327 hours instead of minutes
6329 1998-09-26 Kevin Dalley <kevind@rahul.net>
6331 * lib/getline.c: fix getstr so that it correctly handles long file
6334 1998-09-20 Kevin Dalley <kevind@rahul.net>
6336 * removed more function declarations to meet GNU coding standards
6338 1998-08-30 Kevin Dalley <kevind@rahul.net>
6340 * lib/nextelem.c: removed declaration of strdup and free, which
6341 meets GNU coding standards and allow compilation on sparc
6343 * corrected explanation of -amin option which described hours
6346 1998-02-27 Kevin Dalley <kevind@rahul.net>
6348 * locate/locate.c: add --existing option to locate, which only
6349 prints the names of files which still exist
6351 1998-02-08 Kevin Dalley <kevind@rahul.net>
6353 * locate/locate.c: corrected get_short so that it correctly
6354 returns negative numbers.
6356 * remove declarations of various string functions. Removing the
6357 declarations almost matches the GNU Coding Standards.
6359 1997-03-03 Kevin Dalley <kevind@rahul.net>
6361 * xargs/xargs.c: xargs fixed to prevent occasional core dumping.
6363 1997-01-11 Kevin Dalley <kevind@rahul.net>
6365 * locate/updatedb.sh: add --localuser option to updatedb, which
6366 allows find to be run as nobody, while allowing database file to
6367 be created as root, change suggested by
6368 <Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de>
6370 1996-12-28 Kevin Dalley <kevind@rahul.net>
6371 * added PRUNEFS as variable in updatedb and --prunefs as option to
6374 1996-05-27 Kevin Dalley <kevind@rahul.net>
6376 * updatedb.sh: when NETPATHS is used, only su to NETUSER if whoami
6378 1996-04-27 Kevin Dalley <kevind@rahul.net>
6380 * lib/getline.c (getstr): verify that nchars_avail is *really*
6381 greater than 0; set *n to a large enough number, stops some core
6384 Thu Nov 3 09:23:33 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
6388 * locate/Makefile.am: Move updatedb from LIBSCRIPTS to SCRIPTS.
6390 * Makefile.am (distname): Change distribution name from find to
6393 * testsuite/config/unix.exp: Don't abuse xfail; simulate it correctly.
6395 * locate/Makefile.am (CLEANFILES): Fix typo.
6397 Wed Nov 2 15:11:52 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
6401 * lib/listfile.c find/defs.h (list_file): Take a stream arg.
6402 * find/pred.c (pred_ls): pass it.
6403 * find/parser.c pred.c defs.h (parse_fls, pred_fls): New functions.
6405 Tue Oct 25 16:09:04 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
6407 * find/pred.c (pred_fprintf): Flush output after \c. From Chapman
6410 * find/parser.c (insert_fprintf): Warn about unrecognized \ and %
6413 Tue Oct 18 00:03:10 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
6415 * find/defs.h parser.c pred.c tree.c util.c: Globally change
6416 "victim" to "primary".
6418 * find/parser.c (insert_fprintf): For 'c' format, don't lose the
6419 need_stat information. From Chapman Flack.
6421 * doc/find.texi perm.texi: New files.
6422 * configure.in: Configure the doc directory.
6424 * find/pred.c (pred_regex): Check that the regex matched the whole
6427 Wed Oct 12 17:13:47 1994 David J. MacKenzie (djm@duality.gnu.ai.mit.edu)
6429 * find/find.c (main): Tell what the invalid arg is.
6432 Fri Oct 7 12:33:24 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6434 * find/parser.c: Add -mount as an alias for -xdev.
6435 From Klaus.Steinberger@physik.uni-muenchen.de (Klaus Steinberger).
6437 * lib/modechange.c: Make umask_value unsigned short.
6439 * xargs/xargs.c: Use symbolic constants in longopts.
6442 Wed Oct 5 11:23:09 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6444 * xargs/xargs.c (main, read_line, read_string, do_exec): Pass
6445 along the lengths of the args.
6446 (main): Calculate length of replace_pat.
6447 (push_arg, do_insert): Use those lengths instead of calculating
6450 Tue Oct 4 10:02:05 1994 David MacKenzie <djm@churchy.gnu.ai.mit.edu>
6452 * locate/updatedb.sh Makefile.in: Add substitutions to get
6453 the transformed program names.
6455 * xargs/xargs.c: Put back the global variables for now.
6456 Rename some variables. Increase default args_per_exec.
6457 Use boolean where applicable.
6458 (main): Reduce default arg_max by 2048 for POSIX.2.
6459 (read_string): Don't check EOF string.
6460 (read_line, read_string): Take initial args size into account.
6462 Sat Oct 1 17:43:13 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6464 * find/pred.c (launch): Use pid_t.
6466 * xargs/xargs.c (EOF_STR): Define and use.
6467 [__STDC__]: Declare xrealloc and xmalloc using void *.
6468 * find/defs.h: Likewise.
6470 * find/defs.h: Only declare stpcpy if !HAVE_STPCPY.
6472 * xargs/xargs.c: Replace most global variables with structure
6473 pointers passed as arguments. Use pid_t.
6474 * lib/wait.h: Include sys/wait.h if HAVE_SYS_WAIT_H.
6475 * configure.in: Call AC_TYPE_MODE_T and AC_HEADER_SYS_WAIT.
6477 * xargs/xargs.c: Improve paging performance and memory
6478 fragmentation by building command arguments in a pre-allocated
6479 buffer and re-implementing the child pid list as an expandable
6480 array. From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
6482 Thu Sep 29 11:38:07 1994 David J. MacKenzie (djm@geech.gnu.ai.mit.edu)
6484 * xargs/xargs.c [__STDC__]: Prototype declarations.
6486 Wed Sep 28 11:25:53 1994 David J. MacKenzie (djm@duality.gnu.ai.mit.edu)
6488 * find/fstype.c [AFS, __STDC__]: Fix definition of _VICEIOCTL.
6490 Tue Sep 27 08:14:27 1994 David MacKenzie <djm@churchy.gnu.ai.mit.edu>
6492 * find/fstype.c (fstype_to_string): Add more cases. Use
6493 INITMOUNTNAMES if defined.
6494 * find/defs.h: Change boolean typedef from char to int.
6495 * configure.in: Check for mktime.
6497 Tue Sep 27 01:20:28 1994 Kaveh R. Ghazi (ghazi@noc.rutgers.edu)
6499 * configure.in: Add AC_HEADER_STAT.
6500 * lib/listfile.c, lib/modetype.h: Add STAT_MACROS_BROKEN.
6502 * find/pred.c: Move the inclusion of defs.h ahead of the first
6503 test of _POSIX_VERSION.
6505 * lib/xgetcwd.c: Remove _POSIX_VERSION, rely only on HAVE_GETCWD.
6507 Mon Sep 26 16:43:01 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6509 * configure.in: Add AC_CONFIG_HEADER.
6510 * find/*.c locate/*.c xargs/*.c: Include config.h.
6511 * locate/updatedb.sh: Add --version; --old -> --old-format.
6513 Sun Sep 25 23:43:37 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6515 * find/* [__STDC__]: Prototype declarations.
6517 * locate/updatedb.sh: Account for renaming code and frcode.
6519 * find/find.c (process_path): Store dev and ino of directories in
6520 current branch to avoid symlink loops. From DJ Delorie
6522 (process_dir): If following symlinks, don't cd to ..; instead,
6523 cd to the starting directory and then to the parent directory.
6524 (main) [HAVE_FCHDIR]: Save the dev, ino of the starting directory.
6525 (process_top_path) [HAVE_FCHDIR]: Use it.
6526 * find/pred.c (launch) [HAVE_FCHDIR]: Likewise.
6527 * defs.h [HAVE_FCHDIR]: Declare starting_desc instead of starting_dir.
6528 * configure.in: Check for dev_t, ino_t, fchdir, fcntl.h.
6530 Fri Sep 23 11:55:38 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6532 * lib/listfile.c: Change #ifdef S_IFLNK to #ifdef S_ISLNK.
6533 From Andreas Luik <luik@isa.de>.
6535 Thu Sep 22 11:42:40 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6537 * locate/locate.c (last_literal_end): Dynamically allocate enough
6538 memory for the subpattern.
6540 Wed Sep 21 06:12:56 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6542 * locate/locate.c (locate): Warn if database is >8 days old.
6543 From Ian Lance Taylor.
6545 * xargs/xargs.c (do_exec), find/pred.c (launch): Set SIGCHLD to
6546 default. From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
6547 * find/find.c pred.c util.c lib/listfile.c: Remove fflush(stdout)
6548 calls before error. error does it, and doesn't trash errno.
6549 From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
6551 * find/fstype.c (filesystem_type_uncached): Don't trust mtab dev
6552 number on HPUX. From Andreas Luik <luik@isa.de>.
6553 (filesystem_type_uncached): Don't cache unknown file system
6554 types. From casper@fwi.uva.nl (Casper Dik).
6556 * locate/updatedb.sh: Collect results in temp file and rename it
6557 atomically. From Andreas Luik <luik@isa.de>.
6559 * xargs/xargs.c (parse_num): Print a long using %ld. From Jim
6562 * find/defs.h find.c parser.c pred.c util.c, lib/nextelem.c:
6563 Emulate strchr and strrchr with index and rindex, not vice versa.
6565 Remove man directory; move man pages to the directories of the
6566 programs they document.
6568 * locate/frcode.c: Renamed from code.c.
6569 * locate/frcode.c (put_short): Renamed from puthalfword.
6570 * locate/locate.c (get_short): Renamed from gethalfword.
6571 (last_literal_end): Renamed from patprep.
6572 (locate): Recognize old-format databases too.
6573 * locate/locatedb.h: Add defines for old-format databases.
6574 * locate/bigram.c locate/code.c: Put back programs to create
6575 old-format databases.
6576 * locate/updatedb.sh: Take --old option to use them.
6578 Tue Sep 20 15:41:11 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
6580 * configure.in: Update for Autoconf v2.
6581 * find/pred.c lib/savedir.c: Use new symbols for dir header.
6582 * locate/updatedb.sh: Add --help option.
6584 Sun Feb 13 11:21:58 1994 Jim Meyering (meyering@comco.com)
6586 * man/Makefile.in [man1ext, man5ext]: Set man5ext (not man1ext) to 5.
6588 Sun Aug 1 22:30:55 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
6590 * bigram.c: File removed.
6591 * getline.c, memcmp.c, locatedb.h, updatedb.1, locatedb.5: New files.
6592 * updatedb.sh: Take command line options.
6593 Don't do bigram compression.
6594 * code.c, locate.c: Don't do bigram compression.
6595 Write and read counts in network byte order.
6596 Handle arbitrarily long paths.
6597 Use a magic number at the start of the databases.
6599 Thu Jul 29 20:44:53 1993 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
6601 * Makefile.in (config.status): Run config.status --recheck, not
6602 configure, to get the right args passed.
6604 Thu Jul 22 12:53:12 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
6606 * listfile.c (list_file): Print inode as a long.
6608 Wed Jul 14 14:14:45 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
6610 * fstype.c [STDC_HEADERS]: Include stdlib.h.
6612 * Move unistd.h include from parser.c and pred.c to defs.h.
6614 Wed Jun 30 14:14:47 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
6616 * updatedb.sh: Construct PRUNEREGEX from PRUNEPATHS with sed.
6617 Prune /afs. Change NFSUSER to NETUSER and NFSPATHS to NETPATHS.
6619 Tue Jun 29 12:19:58 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
6621 * pred.c (pred_fprintf): Abort in switch if `c' is not A, C, or T.
6623 Mon Jun 28 00:18:52 1993 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
6625 * fstype.c (in_afs) [AFS]: New function, derived from code by
6626 Sanjay Ramamurthy <ramams@rpi.edu>.
6627 (filesystem_type_uncached) [AFS]: Call it if the fs type is
6630 * parser.c (parse_size): Recognize b and w suffixes for dd
6633 * code.c (puthalfword): New function.
6635 * locate.c (gethalfword): New function.
6637 From ifado!wb@germany.eu.net (Wilhelm B. Kloke).
6639 * listfile.c: Include pathmax.h.
6640 (get_link_name): Always allocate PATH_MAX + 1 bytes for
6642 * pred.c (pred_fprintf, insert_lname): Call get_link_name.
6644 * fstype.c (filesystem_type, filesystem_type_uncached),
6645 listfile.c (list_file): Take an arg for the path to access.
6646 * pred.c (pred_ls, pred_fstype, pred_fprintf): Pass it.
6648 * find.c (process_dir): Renamed from scan_directory.
6650 Changes from jrs@world.std.com (Rick Sladkey) to chdir into
6651 subdirectories instead of using string concatenation, for speed:
6652 * find.c (process_top_path): New function.
6653 (main): Call it, and xgetcwd.
6654 (process_path, scan_directory): Take new arg, the pathname
6655 relative to ".". Use it and pass it on.
6656 * pred.c (pred_and, pred_comma, pred_negate, pred_or,
6657 pred_xtype, pred_fprintf, pred_empty, insert_lname):
6658 access rel_pathname instead of pathname.
6659 (launch): chdir to starting_dir.
6660 * defs.h: Declare rel_pathname and starting_dir.
6661 * find.c: Define them.
6663 * xgetcwd.c: New file.
6665 * updatedb.sh: Recognize -fstype NFS as well as nfs.
6666 * locate.c (patprep): Skip trailing character classes correctly.
6667 From luik@pharao.stgt.sub.org (Andreas Luik).
6669 * parser.c (parse_group): Make gid a gid_t, not short or int.
6670 (parse_nogroup): Cast gid to unsigned when using it as an array index.
6671 (parse_user, parse_nouser): Similar changes for uid.
6672 * defs.h: Use uid_t and gid_t.
6674 * parser.c (parse_help): New function.
6675 (parse_table): Add --version, -help, and --help options.
6676 Rename struct parser_table_t to struct parser_table.
6677 (parse_version): Exit after printing message, on
6680 * xargs.c, locate.c (main, usage): Add --version and --help
6683 Wed Mar 31 22:39:57 1993 Jim Meyering (meyering@comco.com)
6685 * parser.c: Define isascii macro to be 1 also if STDC_HEADERS.
6688 Wed Mar 31 16:04:07 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
6690 * pred.c (pred_fprintf): If curdepth is 0, don't nuke
6691 segment->text; nuke cp.
6693 Mon Mar 29 15:57:20 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
6697 Fri Mar 26 16:36:59 1993 David J. MacKenzie (djm@hal.gnu.ai.mit.edu)
6699 * pred.c (pred_ilname, pred_iname, pred_ipath): New functions.
6700 (pred_table): Add them.
6701 (insert_lname): New function.
6702 (pred_lname): Call it.
6703 * parser.c (parse_ilname, parse_iname, parse_ipath,
6704 parse_iregex): New functions.
6705 (parse_table): Add them.
6706 (insert_regex): New function.
6707 (parse_regex): Call it.
6709 * fstype.c (filesystem_type): Cache previous result.
6710 (filesystem_type_uncached): New function.
6711 pred.c (pred_fstype, pred_fprintf): Adjust callers to not cache.
6713 * parser.c: Don't define const.
6715 * fstype.c [FSTYPE_STATFS] (fstype_to_string): #ifdef
6716 MOUNT_PC for 386bsd.
6718 Thu Mar 25 18:32:24 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
6720 * parser.c (parse_regex): If ignore_case, set up a translate
6721 table for the regex.
6723 * defs.h: Include string.h or strings.h.
6724 * find.c fstype.c parser.c pred.c util.c: Don't.
6726 * nextelem.c [index]: Don't redefine.
6728 Wed Mar 24 17:47:10 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
6730 * xargs.c (wait_for_proc): Exit with a nonrunnable command's exit
6731 status, not the wait status value. From
6732 Andreas Schwab <schwab@lamothe.informatik.uni-dortmund.de>.
6734 * parser.c (make_segment, insert_fprintf), pred.c
6735 (pred_fprintf): Add '%F' to print filesystem type.
6737 * parser.c (parse_fprintf): Check if second arg is missing.
6739 Tue Mar 23 13:18:08 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
6741 * pred.c (pred_fprintf): For %P, don't move past an assumed
6742 slash if the ARGV element ends with one, because in that case
6745 * parser.c (parse_printf): Check for missing arg.
6746 From smj@cats.com (Steve James).
6748 * parser.c: Add #ifdef around atol decl for Linux.
6750 Fri Dec 11 08:17:07 1992 Jim Meyering (meyering@comco.com)
6752 * defs.h: Remove dcl of process_path.
6753 * find.c: Put dcl of p
6755 * pred.c (pred_fprintf): Don't print "\n" unless it's in the
6758 Mon Oct 21 22:30:35 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6760 * defs.h, parser.c, pred.c: Rename some types that conflict
6761 with reserved POSIX.1 namespace (ended in _t).
6765 Thu Oct 17 22:39:06 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6767 * xargs.c: Don't determine memory.h based on POSIX, which
6770 Sat Oct 5 16:11:05 1991 Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
6772 * parser.c (parse_perm): Parse new `-perm +mode' notation.
6773 * pred.c (pred_perm): Interpret same.
6775 Fri Sep 13 14:58:27 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
6777 * xargs.c [POSIX]: Always use sysconf to get ARG_MAX.
6779 Thu Sep 5 23:57:06 1991 David J. MacKenzie (djm at apple-gunkies)
6781 * bigram.c, code.c (main): Make path_max int, not unsigned.
6782 * locate.c (main): Check for pathconf failure.
6784 Thu Sep 5 11:54:44 1991 Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
6786 * parser.c (insert_fprintf): Add `\\' escape and fixed `%%'
6788 * pred.c (pred_fprintf): fixed off-by-one indexing problem
6789 when handling [gGuU] printf formats.
6791 Wed Aug 28 20:53:57 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6795 Mon Aug 26 18:57:32 1991 David J. MacKenzie (djm at pogo.gnu.ai.mit.edu)
6797 * bigram.c, code.c: Fix handling of PATH_MAX.
6798 Check for anomalous input line lengths.
6801 Fri Aug 23 11:00:18 1991 David J. MacKenzie (djm at apple-gunkies)
6803 * pred.c (pred_fprintf): Round block number up to get K.
6805 Thu Aug 22 10:46:30 1991 David J. MacKenzie (djm at apple-gunkies)
6807 * pred.c (pred_fprintf, pred_lname) [_AIX]: Allocate PATH_MAX
6808 byte for link object since st_size is wrong.
6810 * listfile.c (list_file): Don't convert blocks to kilobytes if
6811 env. var POSIX_ME_HARDER is defined.
6813 * fstype.c [FS_AIX_STATFS]: New case.
6815 * configure: Make sure the sys/mount.h is the 4.4BSD version
6816 with grep instead of just testing whether it exists.
6818 * listfile.c (list_file): Add 1 to number of 512-byte blocks
6819 before dividing to get 1K blocks (so we round up, not down).
6821 Wed Aug 21 13:02:46 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6825 * parser.c (parse_fprintf), pred.c (pred_fprintf): Add %k
6826 conversion to print 1K blocks.
6828 * listfile.c: Print counts of 1K blocks, for consistency with
6829 new fileutils release. Bad timing, there.
6833 * pred.c [VOID_CLOSEDIR]: Fake a return value for closedir,
6834 which returns void on some systems, like Sequents.
6835 * configure: Check sys/dir.h for 'void closedir'.
6837 Thu Aug 15 16:07:46 1991 David J. MacKenzie (djm at frob)
6839 * modetype.h: Define POSIX.1 stat stuff if missing.
6840 * pred.c, parser.c, find.c, fstype.c: Don't define it.
6841 * updatedb.sh: Use a variable substitution method like configure's.
6842 * Makefile.in: Add datadir variable to separate programs from
6845 * parser.c, pred.c: Rename -fulldays to -daystart.
6847 * defs.h, find.c, parser.c, pred.c: Add many new predicates
6848 from Jay Plett (jay@princeton.edu).
6850 Wed Aug 14 14:37:06 1991 David J. MacKenzie (djm at bleen)
6852 * parser.c (parse_size), pred.c (pred_size), defs.h (struct
6853 size_t): Allow `k' to follow number to measure size in Kbytes.
6854 * parser.c (parse_size, get_num, insert_num), defs.h (struct
6855 size_t): Use enum comparison_type instead of short.
6857 Fri Aug 9 00:49:32 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6859 * xargs.c (read_line): Use isblank, to support POSIX locales.
6861 * fstype [FS_STATVFS]: New code for SVR4, from slootman@dri.nl
6863 * configure: Figure out when to use it.
6865 * configure: Check for st_blocks in struct stat.
6866 * listfile.c (ST_NBLOCKS): New macro.
6867 (list_file): Print file's block count.
6868 Use S_ISLNK instead of S_IFLNK.
6869 * fileblocks.c: New file, from fileutils.
6871 Thu Aug 8 17:20:19 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6873 * parser.c, pred.c [CACHE_IDS]: Optional code to turn uid and
6874 gid lookups into table lookups.
6876 Wed Aug 7 00:22:29 1991 David J. MacKenzie (djm at wheat-chex)
6878 * configure, Makefile.in's: Support +srcdir option via VPATH.
6879 Clean up clean targets.
6881 Sat Jul 20 01:11:51 1991 David J. MacKenzie (djm at apple-gunkies)
6883 * configure: Filter /etc and /usr/etc from path.
6885 * xargs.c (wait_for_proc): Fix handling of child exit status.
6886 (main): Exit with a nonzero status if any child did.
6888 * pred.c (launch): Flush stdout and stderr before forking.
6890 * fstype.c (filesystem_type) [FS_MNTENT]: Skip entries of
6893 Fri Jul 19 22:53:42 1991 David J. MacKenzie (djm at bleen)
6895 * pred.c, locate.c: Use fnmatch instead of glob_match.
6896 * fnmatch.c, fnmatch.h: New files.
6898 * Many files: Use string.h if STDC_HEADERS, as well as if USG.
6900 * locate.c, code.c, bigram.c: Possibly use pathconf to get
6901 PATH_MAX. Use malloc to allocate path arrays.
6903 * xargs.c: Possibly use sysconf to get ARG_MAX.
6904 (env_size): Make definition unconditional.
6905 (main): Do arg_max adjustment that can't be done with
6906 preprocessor now that ARG_MAX might be a function call.
6907 (do_exec): Exit with status 126 or 127 after failed exec, for
6910 * xargs.c, pred.c, listfile.c: Use POSIX, not UNISTD_MISSING.
6911 * wait.h: Use POSIX, not WAIT_MACROS_MISSING.
6913 * COPYING: Use version 2. Update all files.
6915 * Replace Makefile and lib/Makefile with Makefile.in,
6916 lib/Makefile.in and configure. Update README.
6918 Fri Apr 5 12:49:09 1991 David J. MacKenzie (djm at apple-gunkies)
6922 Fri Mar 15 20:44:45 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
6924 * xargs.c (main): Always run the command if some args are left over.
6925 Rename some variables.
6927 Fri Jan 18 03:35:57 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
6929 * bigram.c, code.c, locate.c: Use LIMITS_MISSING, not
6930 _POSIX_SOURCE, to decide whether to include limits.h.
6932 * parser.c, pred.c, listfile.c: Use POSIX, not _POSIX_SOURCE,
6933 to decide whether to declare getpwuid and getgrgid.
6935 * xargs.c: Use POSIX, not _POSIX_SOURCE, to determine whether
6936 to include memory.h.
6938 Sat Jan 12 04:12:34 1991 David J. MacKenzie (djm at wookumz.ai.mit.edu)
6940 * defs.h, find.c, parser.c, pred.c: Remove -permmask option.
6942 Thu Jan 10 04:32:52 1991 David J. MacKenzie (djm at albert.ai.mit.edu)
6944 * wait.h: Include sys/types.h to get pid_t.
6946 * xargs.c [USG && !STDC_HEADERS]: Only include memory.h if not
6949 Tue Jan 1 23:53:32 1991 David J. MacKenzie (djm at albert.ai.mit.edu)
6953 Wed Dec 26 03:25:51 1990 David J. MacKenzie (djm at apple-gunkies)
6955 * locate.c, bigram.c, code.c: Attempt to get max. path length
6956 on more kinds of systems, incl. POSIX.
6958 * pred.c, listfile.c, xargs.c: Get some decls from unistd.h,
6961 * find.c, defs.h: Make `cur_day_start' a time_t, not long.
6963 Fri Dec 21 01:49:12 1990 David J. MacKenzie (djm at egypt)
6965 * defs.h, parser.c: Remove unused field from `struct exec_t'.
6967 * xargs.c: Add +no-run-if-empty option to cause the command to
6968 not be run if the input is empty.
6970 * defs.h (struct exec_t): Change the array of offsets into an
6971 array of `struct path_arg'.
6972 * parser.c (insert_exec_ok): Fill in new fields, to allow "{}"
6973 to be substituted (multiple times) anywhere in an arg to -exec
6975 * pred.c (pred_exec): Add code to substitute "{}" within args.
6976 (pred_ok): After prompting, just run pred_exec.
6978 Thu Dec 20 02:32:09 1990 David J. MacKenzie (djm at egypt)
6980 * fstype.c (filesystem_type) [FS_MNTENT]: Allow for optional
6981 "0x" at front of "dev=" mount option, which amd puts there but
6982 Sun automounter doesn't.
6984 Sat Dec 15 19:01:12 1990 David J. MacKenzie (djm at egypt)
6986 * find.c (main), util.c (usage): Make directory args optional,
6989 Sat Dec 15 18:36:29 1990 David J. MacKenzie (djm at apple-gunkies)
6991 * listfile.c: Define major and minor if not defined (as in POSIX).
6993 Mon Dec 3 01:04:35 1990 David J. MacKenzie (djm at alborz)
6995 * find.c, fstype.c, parser.c, pred.c, util.c: Flush stdout before
6996 writing to stderr, in case they have been redirected to the
6997 same file descriptor.
6999 * pred.c (launch): Use POSIX wait macros from wait.h.
7001 * xargs.c (print_xargs): Read from tty_stream, not stdin.
7003 Tue Nov 20 16:48:24 1990 David J. MacKenzie (djm at apple-gunkies)
7007 * fstype.c [FS_USG_STATFS]: New code.
7008 [FS_STATFS]: For symlinks, statfs the directory the link is in
7009 instead of the link.
7010 * Various files: Conditionalize some declarations on
7011 STDC_HEADERS or _POSIX_SOURCE.
7013 Fri Nov 16 12:24:43 1990 David J. MacKenzie (djm at egypt)
7015 * modetype.h: New file.
7016 parser.c, pred.c: Use it.
7018 Thu Nov 15 18:05:54 1990 David J. MacKenzie (djm at apple-gunkies)
7020 * xmalloc.c: New file from fileutils.
7022 * fstype.c (fstype_to_string): Add case for MFS.
7023 (filesystem_type): Take a pathname as a second arg.
7024 [FS_STATFS] return "unknown" instead of exiting if statfs
7025 fails because of ENOENT.
7026 * pred.c (pred_fstype): Pass the pathname. Set current_dev.
7027 * find.c (process_path): Make root_dev local again.
7029 Mon Nov 12 02:54:00 1990 David J. MacKenzie (djm at apple-gunkies)
7031 * pred.c (pred_fstype): Free old fs type.
7033 * fstype.c, pred.c (pred_fstype), parser.c (parse_fstype):
7034 Reread the file system type info. every time a filesystem
7035 mount point is crossed, to allow for automounting.
7037 * xstrdup.c: New file from fileutils.
7039 * find.c (process_path): Rename root_dev to current_dev and
7040 make it global, for -fstype.
7042 * wait.h: New file taken from xargs.c.
7044 * xargs.c: Make limits.h vs. sys/param.h conditional on
7045 LIMITS_MISSING instead of USG, to accomodate SVR2.
7047 Thu Nov 8 11:52:22 1990 David J. MacKenzie (djm at apple-gunkies)
7049 * parser.c, pred.c, listfile.c: If not _POSIX_SOURCE, declare
7050 getpwuid and getgrgid. Use them.
7052 * listfile.c: If not _POSIX_SOURCE, define S_ISDIR and
7055 * find.c: Use S_ISDIR instead of S_IFDIR, and define if not
7058 * Makefile: Define AR and RANLIB and pass to child makes.
7059 lib/Makefile: Use them.
7061 * xargs.c (WIFSIGNALED): Redefine so it works.
7063 Mon Nov 5 00:02:01 1990 David J. MacKenzie (djm at apple-gunkies)
7065 * find.c (process_path): For -xdev, process filesystem
7066 mountpoints (but don't descend them), instead of skipping them
7069 * find.c, parser.c, defs.h: Add -follow predicate.
7071 * xargs.c: Change ifdefs to support STDC POSIX systems.
7073 Sat Nov 3 20:18:05 1990 David J. MacKenzie (djm at apple-gunkies)
7075 * xargs.c (do_exec): Child process exits with status 255, not
7076 127, if command can't be run.
7078 Fri Nov 2 02:11:42 1990 David J. MacKenzie (djm at apple-gunkies)
7080 * xargs.c: Exit with status 127 if running commmand fails, as
7083 * fstype.c: Support -fstype for Ultrix (-DFS_GETMNT).
7084 Sun/BSD code is now -DFS_MNTENT.
7086 Thu Nov 1 13:06:01 1990 David J. MacKenzie (djm at egypt)
7088 * Reorganize into subdirectories and add xargs. Rewrite Makefiles.
7090 * find.c (process_path, main): Allow a maxdepth of 0, meaning
7091 only process command line args.
7093 * parser.c, pred.c: Add -print0 predicate.
7095 * xargs.c: Add -0 option and long options. Move standard
7096 library functions into separate files. Use error instead of
7097 fatal and fprintf/perror. Use POSIX macros for examining exit
7099 (read_string): New function.
7101 Fri Sep 21 10:21:09 1990 David J. MacKenzie (djm at apple-gunkies)
7103 * find.c (process_path): Take DEPTH as an arg instead of ROOT,
7106 Thu Sep 20 23:58:47 1990 David J. MacKenzie (djm at apple-gunkies)
7108 * parser.c (parse_maxdepth): New function.
7109 * find.c (process_path): If -maxdepth was given, don't go
7110 more than that many levels deep.
7111 * defs.h: Declare maxdepth.
7113 Wed Sep 12 02:12:31 1990 David J. MacKenzie (djm at apple-gunkies)
7115 * parser.c: Add -not as synonym for !.
7117 Sun Aug 26 06:16:08 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
7119 * Makefile (TAGS): New target.
7121 Sun Aug 12 00:32:01 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7123 * xargs.c (main): Tell getopt to not permute.
7125 Sat Aug 4 21:43:45 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
7127 * parser.c (parse_perm), pred.c (pred_perm): Always compare
7130 * locate.c, Makefile: Rename 'fastfind' program to 'locate',
7131 following comment in POSIX.2 draft 10 rationale for find.
7133 Wed Jul 25 18:45:03 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7135 * listfile.c (getuser, getgroup): Make uid and gid unsigned
7138 Mon Jul 16 13:40:13 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7140 * defs.h: Don't declare fprintf and printf, in case they have
7141 prototypes in stdio.h (important for functions that use stdarg).
7143 Sun Jul 15 23:39:39 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7145 * parser.c (parse_and): New function, for compatibility.
7147 Wed Jul 4 00:17:57 1990 David J. MacKenzie (djm at apple-gunkies)
7149 * find.c (main): Only enclose expressions that produce no side
7150 effects within `( ... )'.
7152 Tue Jul 3 01:59:39 1990 David J. MacKenzie (djm at apple-gunkies)
7154 * parser.c (strspn): Stop when end of string reached.
7158 * Move version number from Makefile to new file version.c.
7159 * parser.c: Recognize new -version predicate.
7161 * find.c (main): If no predicates that produce output are
7162 given, default to -print if the entire expression is true, not
7163 just the last part of an alternation.
7164 * Print the names of predicates with invalid arguments.
7166 Mon Jul 2 23:48:17 1990 David J. MacKenzie (djm at apple-gunkies)
7168 * pred.c: Don't check for invalid comparison types in numeric
7169 predicate functions.
7171 Thu Jun 28 00:34:57 1990 David J. MacKenzie (djm at apple-gunkies)
7173 * parser.c (parse_regex): Set fastmap and translate before
7176 Mon Jun 25 18:08:59 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7178 * fastfind.c (fastfind): Initialize count to 0.
7180 * lib/updatedb.sh: Only do regex comparison on directories,
7183 * listfile.c (list_file): Truncate user and group name to 8 chars.
7185 Sun Jun 24 13:51:27 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7189 * Makefile [DISTFILES]: Add COPYING.
7191 Fri Jun 22 03:54:27 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7195 Tue Jun 19 03:55:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7197 * lib/updatedb.sh: Prune entries that match PRUNEREGEX.
7198 Split up finding files from computing bigrams.
7199 Use redirection instead of nonportable grep -s to detect sort
7200 failure. Optionally search network filesystems as well as
7203 * pred.c (pred_regex): Match against full pathname instead of
7205 * util.c (basename): Return "/", not "", if given "/".
7207 * find.c (process_path): Fix error in handling "/" directory.
7209 Mon Jun 18 01:49:16 1990 David J. MacKenzie (djm at apple-gunkies)
7211 * parser.c [STRSPN_MISSING] (strspn): New function.
7213 Sun Jun 17 13:54:09 1990 David J. MacKenzie (djm at apple-gunkies)
7215 * listfile.c: New file.
7216 * parser.c (parse_ls): New function.
7217 * pred.c (pred_ls): New function.
7219 * find.c (main): Remove interface to fastfind, to prevent
7220 conflict with POSIX syntax.
7221 * util.c (usage): Remove fastfind syntax from message.
7222 * fastfind.c (main): New function.
7223 * Makefile: Make fastfind a separate program.
7225 * find.c (main): Print correct message if a predicate arg is
7228 * parser.c (insert_exec_ok): Make args that start with a ';' but
7229 contain other characters not terminate the command.
7231 Fri Jun 15 00:33:45 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7233 * fstype.c: If MOUNTED isn't defined but MNT_MNTTAB is, use it
7234 instead. True for HP/UX, at least.
7236 Thu Jun 14 10:10:25 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7238 * savedir.c: New file; now find won't run out of file
7239 descriptors in deep trees.
7240 * find.c (process_path): Use savedir.
7242 Sat Jun 9 03:15:21 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7244 * parser.c (parse_permmask): Allow symbolic mode masks.
7245 (parse_perm): Free 'struct change' when done with it.
7246 (get_oct): Function removed.
7248 * find.c (process_path): Allow arbitrarily-long filenames.
7249 More efficient string copying. Initialize perm_mask to 07777
7252 Thu Jun 7 04:22:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7254 * Makefile, find.c: Use DIRENT to control whether <dirent.h>
7257 Thu May 31 04:46:11 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7259 * parser.c (parse_regex): New function.
7260 * pred.c (pred_regex): New function.
7262 * fstype.c (read_mtab): If mtab entry has a "dev=" option
7263 (like in SunOS 4.1), use it, so there is no need to stat the
7264 special file later on.
7265 (xatoi, strstr): New functions.
7267 Mon May 21 01:04:42 1990 David J. MacKenzie (djm at abyss)
7269 * lib/updatedb.sh: Put BINDIR in PATH.
7271 * fstype.c: Do nothing if MNTENT_MISSING is defined.
7273 * fstype.c: New file.
7274 * parser.c (parse_fstype): New function.
7275 * pred.c (pred_fstype): New function.
7277 * parser.c (parse_newer): Failure to stat -newer file is a
7280 * pred.c (pred_ok): Flush output before reading. Use getchar
7283 * pred.c (pred_prune): Return false if -depth given.
7284 * find.c: Apply the predicates to the dir when -depth and
7287 Sun May 20 19:55:30 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7289 * pred.c (pred_prune): Set new global var `stop_at_current_level'.
7290 * find.c (process_path): Test and reset it.
7292 Fri May 18 01:56:17 1990 David J. MacKenzie (djm at abyss)
7294 * modechange.c, modechange.h: New files.
7295 * parser.c (parse_perm): Use mode_compile and mode_adjust to
7296 parse arg, to allow symbolic mode for POSIX.
7298 Thu May 17 02:07:44 1990 David J. MacKenzie (djm at abyss)
7300 * parser.c (get_oct): Don't consider an empty string a valid number.
7302 * parser.c (parse_perm): If arg starts with '-', set flag bit
7303 for special comparison (POSIX).
7304 * pred.c (pred_perm): If flag bit set, compare s[ug]id &
7305 sticky bits as well, and return true if the given perms are
7306 set, ignoring other bits.
7308 * find.c: New global var `exit_status'. Use it. (POSIX)
7309 * parser.c: Set `exit_status' if lstat on -newer file fails.
7311 * fastfind.c: New file.
7312 * find.c (main): Call fastfind if given only 1 arg.
7313 * util.c (usage): Update message.
7314 * lib/{Makefile,updatedb.sh,bigram.c,code.c}: New files.
7315 * Makefile: Add 'all' and 'install' targets.
7317 Wed May 16 23:23:35 1990 David J. MacKenzie (djm at abyss)
7319 * parser.c (parse_nogroup, parse_nouser): Implement.
7320 * pred.c (pred_nogroup, pred_nouser): Implement.
7322 Mon May 14 00:09:35 1990 David J. MacKenzie (djm at abyss)
7324 * find.c: Add variable `stay_on_filesystem' for -xdev.
7325 (process_path): Take an arg determining whether this call is
7326 the root of a tree. Use lstat instead of stat. If
7327 stay_on_filesystem, don't process a dir on a different
7330 * parser.c (parse_newer): Use lstat instead of stat. Is this right?
7331 (parse_xdev): Set stay_on_filesystem.
7333 * parser.c: Add dummy parse_nogroup, parse_nouser,
7334 parse_prune, and parse_xdev; to be written later.
7335 * pred.c: Add dummy pred_nogroup, pred_nouser, pred_prune.
7337 * find.c: Support System V directory library/headers.
7339 * find.c (process_path): Don't continue with a file that stat
7342 * defs.h, parser.c, pred.c: Change 'u_long' and 'u_short' to
7343 'unsigned long' and 'unsigned short'.
7344 * find.c, defs.h: Remove 'convert_glob' variable.
7345 * parser.c (parse_fullregex): Function removed.
7346 (parse_name): Remove regular expression code.
7347 (parse_type): Recognize sockets.
7348 Add code to check for missing arguments to many parse_* functions.
7349 * pred.c (pred_name): Use glob_match instead of regex.
7351 Sun May 13 17:45:09 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7353 * Replace fprintf, simple_error, and mem_error with error and
7356 * Fix string header includes for USG.
7358 Tue Mar 27 12:40:29 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7360 * defs.h: Change some #defines to enums.
7362 Sun Mar 25 22:08:58 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
7364 * find.c (main): Don't take basename of argv[0].
7366 * util.c (xmalloc): New function.
7367 * find.c, parser.c, utils.c: Use xmalloc instead of malloc.
7369 * pred.c: Remove emulation of regex for BSD and use GNU
7370 library version in regcmp.c instead.
7371 * parser.c: Remove emulation of regcmp for BSD and use GNU
7372 library version in regcmp.c instead.
7373 * Makefile: Link with regex.o and regcmp.o.
7374 Add a DISTFILES macro and dist target.
7376 * Indent source code. Move RCS logs to this file.
7378 Wed Mar 21 09:30:18 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
7380 * xargs.c: Indent. Comment and rename some global variables.
7381 (main): Use getopt to parse options. Open new global var
7382 `tty_stream' to /dev/tty if querying requested.
7383 (print_args): Read response from tty_stream, not stdin.
7384 (xmalloc): New function.
7385 Global: Use xmalloc instead of malloc.
7386 (usage): Revise message.
7388 87/02/22 20:01:20 20:01:20 cire (Eric B. Decker)
7390 * pred.c: added guts to pred_size
7392 87/02/22 00:59:42 00:59:42 cire (Eric B. Decker)
7394 * pred.c: added guts to perm and permmask.
7396 87/02/21 23:02:21 23:02:21 cire (Eric B. Decker)
7398 * pred.c: made pred_name only look at the last component of
7401 87/02/21 22:26:47 22:26:47 cire (Eric B. Decker)
7403 * pred.c: added guts to name. useds regex and regcmp to do
7404 regular expression handling.
7406 87/02/21 00:17:21 00:17:21 cire (Eric B. Decker)
7408 * pred.c: added predicate newer
7410 87/02/20 11:40:07 11:40:07 cire (Eric B. Decker)
7412 * pred.c: added guts to pred_ok
7414 87/02/19 23:52:37 23:52:37 cire (Eric B. Decker)
7416 * pred.c: finished exec.
7418 87/02/22 20:01:09 20:01:09 cire (Eric B. Decker)
7420 * parser.c: added guts to parse_size
7422 87/02/22 00:59:16 00:59:16 cire (Eric B. Decker)
7424 * parser.c: added guts of perm and permmask. added getoct
7425 routine for perm and permmask
7427 87/02/21 23:32:50 23:32:50 cire (Eric B. Decker)
7429 * parser.c: added -fre, -fullregex predicate to turn off
7432 87/02/21 23:01:01 23:01:01 cire (Eric B. Decker)
7434 * parser.c: reworked name so the regexpr pattern includes $ at
7435 the end to force globbing to work correctly. End of the
7436 pattern refers to the end of the filename.
7438 87/02/21 22:25:34 22:25:34 cire (Eric B. Decker)
7440 * parser.c: added guts to name. uses a conversion from
7441 globbing to regexp format. uses regex and regcmp to actually
7444 87/02/21 00:17:11 00:17:11 cire (Eric B. Decker)
7446 * parser.c: added predicate newer
7448 87/02/20 11:39:35 11:39:35 cire (Eric B. Decker)
7450 * parser.c: added ok guts. consolidated exec and ok to using
7453 87/02/19 00:20:54 00:20:54 cire (Eric B. Decker)
7455 * parser.c: minor bug in -fulldays predicate parser. It
7456 should have set the flag full_days to true.
7458 87/02/22 00:58:32 00:58:32 cire (Eric B. Decker)
7460 * find.c: changed where we are setting perm_mask to -1. need
7461 to make sure that this happens before every apply_predicate.
7463 87/02/21 23:32:11 23:32:11 cire (Eric B. Decker)
7465 * find.c: added error checking for no paths. better error
7466 message if illegal ordering.
7468 87/02/21 22:19:58 22:19:58 cire (Eric B. Decker)
7470 * find.c: added global convert_glob
7472 87/02/22 20:00:12 20:00:12 cire (Eric B. Decker)
7474 * defs.h: added definition of BLKSIZE for size
7476 87/02/21 22:19:25 22:19:25 cire (Eric B. Decker)
7478 * defs.h: added global convert_glob for name