1 2007-07-02 James Youngman <jay@gnu.org>
4 * COPYING: Migrate to version 3 of the GNU General Public license.
6 * build-aux/check-testfiles.sh: ditto
7 * build-aux/src-sniff.py: ditto
8 * debian/copyright: ditto
9 * doc/find-maint.texi: ditto
12 * find/finddata.c: ditto
13 * find/fstype.c: ditto
14 * find/ftsfind.c: ditto
15 * find/parser.c: ditto
17 * find/testsuite/config/unix.exp: ditto
20 * import-gnulib.config: ditto
21 * import-gnulib.sh: ditto
22 * lib/buildcmd.c: ditto
23 * lib/buildcmd.h: ditto
24 * lib/dircallback.c: ditto
25 * lib/dircallback.h: ditto
26 * lib/extendbuf.c: ditto
27 * lib/extendbuf.h: ditto
28 * lib/forcefindlib.c: ditto
29 * lib/gnulib-version.h: ditto
30 * lib/listfile.c: ditto
31 * lib/listfile.h: ditto
32 * lib/modetype.h: ditto
33 * lib/nextelem.c: ditto
34 * lib/nextelem.h: ditto
35 * lib/printquoted.c: ditto
36 * lib/printquoted.h: ditto
38 * lib/regexprops.c: ditto
39 * lib/regextype.c: ditto
40 * lib/regextype.h: ditto
41 * lib/savedirinfo.c: ditto
42 * lib/savedirinfo.h: ditto
45 * lib/waitpid.c: ditto
46 * locate/bigram.c: ditto
47 * locate/code.c: ditto
48 * locate/frcode.c: ditto
49 * locate/locate.c: ditto
50 * locate/locatedb.h: ditto
51 * locate/testsuite/config/unix.exp: ditto
52 * locate/updatedb.sh: ditto
53 * locate/word_io.c: ditto
54 * po/fetch-po-files: ditto
55 * xargs/testsuite/config/unix.exp: ditto
56 * xargs/xargs.c: ditto
59 * doc/find.texi (Deleting Files): Fixed a typo.
60 (Deleting Files): Likewise.
62 New worked example for find.
63 * doc/find.texi (Copying A Subset of Files): Added a new worked
66 * doc/find.texi (Updating A Timestamp File): Indicate that %A@ now
67 includes a sub-second part on many systems.
69 2007-06-30 Eric Blake <ebb9@byu.net>
71 * find/pred.c (pred_timewindow): Avoid gcc warnings.
72 (format_date): Likewise.
73 * find/tree.c (calculate_derived_rates): Likewise.
74 * locate/word_io.c (getword): Likewise.
76 2007-06-30 James Youngman <jay@gnu.org>
78 * find/find.1 (EXAMPLES): Added an example of using find and cpio -p
79 to copy a directory tree, with pruning and omitted files.
81 * find/pred.c (format_date): Use verify_true for constant
82 conditions rather than assert.
83 * xargs/xargs.c (main): Ditto.
85 Enhancements to the code smell detector.
86 * Makefile.am (findutils-check-smells): Automate the calling of
87 build-aux/src-sniff.py.
88 * build-aux/src-sniff.py: Rework to use a list of regex-based
89 sniffers, to allow checking types of file other than C. Allow
90 file-based regex sniffers to give an indication of the line number
91 where they think the problem (or part of the problem) exists.
92 Added code smell detectors for a sample Bourne shell problem and
93 for out-of-date FSF addresses.
95 * find/tree.c (get_pred_cost): Eliminate unused variable.
97 Fix Savannah bug #20263 in a more portable way.
98 * find/tree.c (cost_table_comparison): Avoid casting function
99 pointers to poiter-to-object, since this is not portable (or
100 of course conforming). Instead, use memcmp().
102 2007-06-28 Eric Blake <ebb9@byu.net>
104 * import-gnulib.sh (run_gnulib_tool): Speed operation when
105 updating an existing tree.
107 Allow 'make check' to work without prior 'make all'.
108 * find/Makefile.am (SUBDIRS): Build in . before testsuite.
109 * locate/Makefile.am (SUBDIRS): Likewise.
110 * xargs/Makefile.am (SUBDIRS): Likewise.
112 Fix Savannah bug #20273, xargs -E with seekable stdin.
113 * import-gnulib.config (modules): Sort, add closein.
114 * xargs/testsuite/Makefile.am (EXTRA_DIST_EXP, EXTRA_DIST_XO)
115 (EXTRA_DIST_XI): Add new test.
116 * xargs/testsuite/config/unix.exp (xargs_start): Support optional
117 argument to allow test to run a subshell.
118 * xargs/testsuite/inputs/sv-bug-20273.xi: New file.
119 * xargs/testsuite/xargs.posix/sv-bug-20273.xo: Likewise.
120 * xargs/testsuite/xargs.posix/sv-but-20273.exp: Likewise.
121 * xargs/xargs.c (main): Use close_stdin, not close_stdout.
122 * NEWS: Document the fix.
124 2007-06-27 James Youngman <jay@gnu.org>
126 Added a maintenance manual.
127 * doc/find-maint.texi: New file.
128 * doc/Makefile.am (info_TEXINFOS): Added doc/find-main.texi.
129 * doc/find.texi (Introduction): Fixed typo.
131 2007-06-26 Eric Blake <ebb9@byu.net>
133 * import-gnulib.config (modules): Allow ./configure
136 2007-06-26 James Youngman <jay@gnu.org>
138 * build-aux/src-sniff.py: Detect uses of struct stat where the
139 header file was not included.
140 * find/find.c: Fix this, and uses of assert without a following
141 space (the coding standard requires a space, but there are still
142 a number of cases where other functions are called with no
144 * find/fstype.c: Ditto.
145 * find/ftsfind.c: Ditto.
146 * find/parser.c: Ditto.
147 * find/pred.c: Ditto.
148 * find/tree.c: Ditto.
149 * find/util.c: Ditto.
150 * lib/buildcmd.c: Ditto.
151 * lib/buildcmd.h: Ditto.
152 * lib/extendbuf.c: Ditto.
153 * locate/frcode.c: Ditto.
154 * locate/locate.c: Ditto.
155 * locate/word_io.c: Ditto.
156 * xargs/xargs.c: Ditto.
158 * find/tree.c (cost_table_comparison): Avoid < comparison between
159 function pointer types. Instead cast the function pointers to
160 (const void*). Both alternatives are undefined C, but the former
161 actually fails to compile on some systems. This fixes Savannah
163 * NEWS: mention the fix
165 * find/tree.c (calculate_derived_rates): Removed assignment to
166 rate variable following an assert(0) call, which had been added to
167 silence a "used before initialised" warning, and replace it with a
168 call to abort, which (a) correctly halts execution if _NDEBUG is
169 defined and (b) more accurately documents what's happening.
171 * find/parser.c (get_stat_Ytime): Removed redundant call to abort.
173 * find/util.c (debug_stat): For consistency, use assert (0) rather
176 2007-06-26 James Youngman <jay@gnu.org>
178 * README-alpha: Mention the findutils-patches mailng list and the
179 archives for findutils-patches and bug-findutils.
181 2007-06-24 James Youngman <jay@gnu.org>
183 * build-aux/.gitignore, debian/.gitignore, doc/.gitignore,
184 find/.gitignore, find/testsuite/.gitignore, .gitignore,
185 lib/.gitignore, locate/.gitignore, locate/testsuite/.gitignore,
186 m4/.gitignore, po/.gitignore, xargs/.gitignore,
187 xargs/testsuite/.gitignore: New files to make it more painless to
188 track findutils sources with git.
190 * NEWS: Mention the previous change to doc/find.texi.
192 2007-06-23 James Youngman <jay@gnu.org>
194 * doc/find.texi (Introduction): Recommend that people check they
195 are using the latest version before reporting a bug.
197 2007-06-22 James Youngman <jay@gnu.org>
199 Better documentation for the fractional part of seconds fields for
200 -printf and similar actions.
201 * doc/find.texi (Time Components): Point out that the seconds
202 field of the timestamp is often printed out with a fractional part
203 of unspecified length and precision. The '%Tc' field has no
205 (Combined Time Formats): Point out the same thing for '%T@'.
206 * find/find.1 (%A): Point out the same thing.
207 * NEWS: Mention these changes.
209 Fix various lint-type complaints taken from the rules in the
210 coreutils Makefile.maint file (see build-aux/src-sniff.py).
211 * xargs/xargs.c: Removed unnecessary parentheses in "#if defined"
213 (main): Don't cast the return value of xmalloc.
214 (add_proc): Don't cast the return value of xmalloc.
215 * lib/regextype.c: Don't include quotearg.h, we don't need it.
216 * lib/dircallback.c, lib/nextelem.c, lib/prontquoted.c,
217 lib/qmark.c, lib/strspn.c, lib/waitpid.c: Assume config.h is available.
218 * lib/extendbuf.c: Ditto
219 * lib/listfile.c: Ditto. Also removed unnecessary parentheses in
220 "#if defined" checks.
221 (get_link_name): Don't cast the result of xmalloc.
222 * lib/bigram.c: Removed unnecessary parentheses in "#if defined"
224 * lib/savedirinfo.c: Assume config.h is available. Also removed
225 unnecessary parentheses in "#if defined" checks.
226 * lib/buildcmd.c (bc_do_insert): Don'tcast the result of xmalloc().
227 * find/tree.c (build_expression_tree): Don't cast the argument to free().
228 * find/ftsfind.c (set_close_on_exec): Removed unnecessary
229 parentheses in "#if defined" checks. Also changed "filesystem" ->
231 * find/util.c (check_nofollow): Removed unnecessary parentheses in
232 "#if defined" checks.
233 * find/parser.c (estimate_fstype_success_rate): ditto.
234 (insert_regex): Do not cast the result of xmaloc(). Removed unnecessary
235 parentheses in "#if defined" checks. Also changed "filesystem" ->
238 * find/find.c: "the the" -> "the", "filesystem" -> "file system"
239 * find/fstype.c: "filesystem" -> "file system" (in comments and
241 * locate/frcode.c: Removed unnecessary parentheses in "#if
243 * locate/locate.c (search_one_database): Don't cast the return
245 (dolocate): Mark error message for translation.
247 2007-06-21 Eric Blake <ebb9@byu.net>
249 * locate/.cvsignore: Ignore dblocation.texi.
250 * build-aux/.cvsignore: Ignore Makefile.
251 * locate/locate.c (set_max_db_age): Fix typo in error message.
253 2007-06-19 Eric Blake <ebb9@byu.net>
255 Fix compilation on cygwin, Savannah bug #20210.
256 * import-gnulib.config (gnulib_version): Import strcasestr and
257 updated canonicalize-lgpl-tests.
258 * lib/dircallback.c (includes): Track gnulib changes.
260 2007-06-14 James Youngman <jay@gnu.org>
262 * find/parser.c (parse_time): Use the variable comp, which holds
263 the planned comparison type, rather than the structure tval, which
264 has not been initialised yet and contains a random value. This
265 fixes Savannah bug #20139.
266 * NEWS: Mention the bugfix.
268 2007-06-12 James Youngman <jay@gnu.org>
270 * find/find.1 (HISTORY): Document when the find tests -readable,
271 -writable, -executable and the option -regextype were introduced.
273 2007-06-12 Nix <nix@esperi.org.uk> (trivial change)
275 * locate/locate.c (drop_privs): Use groups[0] rather than
276 groups[1], since groups[] is a one-element array. This is a
277 buffer overrun affecting root only. In theory it could affect
278 setuid installations, but I (James Youngman) cannot find an explot
279 mechanism for it. This fixes Savannah bug#20157.
280 * NEWS: Mention this fix.
282 2007-06-12 James Youngman <jay@gnu.org>
284 Make the test suite work when run as root.
285 * find/testsuite/config/unix.exp (fs_superuser): Abstract out the
286 check which discovers if we have superuser privileges on the
287 filesystem (taken from access.exp).
288 * find/testsuite/find.gnu/access.exp: Call fs_superuser.
289 * find/testsuite/find.gnu/fprint-unwritable.exp: Use fs_superuser.
291 2007-06-09 James Youngman <jay@gnu.org>
293 Check that we can correctly read old-format databases which are
294 big-endian or little endian.
295 * locate/testsuite/config/unix.exp (locate_from_db): New function;
296 supports testing locate against a provided database.
297 * locate/testsuite/locate.gnu/bigendian.exp: New test; make sure
298 we can read an old-format big-endian database.
299 * locate/testsuite/locate.gnu/bigendian.xo: Expected output from
301 * locate/testsuite/locate.gnu/littleendian.exp: New test; make sure
302 we can read an old-format little-endian database.
303 * locate/testsuite/locate.gnu/locateddb.old.powerpc.xi: Old format
304 big endian database file, for supporting bigendian.exp.
305 * locate/testsuite/locate.gnu/littleendian.xo: Expected output from
306 littleendian.exp test.
307 * locate/testsuite/locate.gnu/locateddb.old.x86.xi: Old format
308 little endian database file, for supporting littleendian.exp.
309 * locate/testsuite/Makefile.am: Distribute littleendian.exp,
310 bigendian.exp and related .xi and .xo files.
313 * doc/find.texi (Size Directives): Compare %b with %s/512, not
314 %s/1024. This fixes (again) Savannah bug #19596.
315 * NEWS: mention the fix.
317 Avoid using the non-portable function putw().
318 * locate/locatedb.h: Declare putword().
319 * locate/frcode.c: Include <stdbool.h> as locatedb.h now requires
321 * locate/code.c (main): Use putword() rather than putw(), because
322 the latter was removed from SUSv3. This fixes Savannah bug #19980.
323 Also include <stdbool.h> as locatedb.h now requires this.
324 * locate/word_io.c (putword): Define the new function putword.
326 Ensure that <config.h> is included before any system header
327 * find/defs.h: Do not include <config.h> from "defs.h". Instead
328 just complain if it was not already included, since it needs to
329 be included first of all, even before system headers (in case
330 gnulib had replaced a system header). Check
331 ALREADY_INCLUDED_CONFIG_H to determine this.
332 * configure.in: Always define ALREADY_INCLUDED_CONFIG_H in
334 * find/find.c: Include config.h before defs.h.
335 * find/finddata.c: ditto.
336 * find/fstfind.c: ditto.
337 * find/parser.c: ditto.
338 * find/pred.c: ditto.
340 * find/tree.c: ditto (fixing Savannah bug #20128).
342 * m4/noreturn.m4 (jy_AC_ATTRIBUTE_NORETURN): Use AC_LANG_PROGRAM
343 inside AC_COMPILE_IFELSE.
345 * doc/find.texi (Security Considerations for locate): Discuss in
346 detail the buffer overrun when reading old-format locate
347 databases. This is CVE reference CVE-2007-2452.
349 2007-06-05 James Youngman <jay@gnu.org>
351 Guess the byte-order of old-format locate databases.
352 * locate/word_io.c (getword): Make the endian_state_flag parameter
353 an enum rather than an int. If we are in the initial ("don't
354 know") byte-order guessing state and the swapped value is out of
355 range, use this as evidence that the byte order is native.
356 * locate/locatedb.h: Declare getword accordingly.
357 * locate/locate.c (struct process_data): Added endian_state
358 member, which remembers for us what the big/little endian order
359 guessing state is when we read an old-format database.
360 (visit_old_format): Use the procdata.endian_state rather than a
361 local variable, so that the information can persist across calls.
362 (i_am_little_endian): Locate figures out if we needed to byteswap
363 the words in an old-format database, but that is an implementation
364 detail. Therefore we figure out our own byte order so that we can
365 produce a more relevant message for --statistics. The
366 i_am_little_endian() returns nonzero if the current host has
367 little-endian byte order.
368 (search_one_database): Report the byte-order of old-format
371 2007-06-04 James Youngman <jay@gnu.org>
373 * locate/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
374 Added old_prefix.exp and old_prefix.xo, a new test case for long
375 shared rpefixes with the old database format.
377 * locate/locate.c (visit_old_format): Use getword() from word_io.c
378 instead of getw(), because getw() is not in POSIX.
379 * locate/word_io.c: New file, providing replacement for getw().
380 * locate/locatedb.h: Declare getword()
381 * locate/Makefile.am (locate_SOURCES): Added word_io.c
383 * locate/testsuite/config/unix.exp (locate_start): Make the
384 failure messages slightly more explicit; indicate what went wrong
387 2007-06-03 James Youngman <jay@gnu.org>
389 * locate/locate.c (visit_old_format, extend, toolong): Extend the
390 buffer used to build the current pathname when reading an
391 old-format database. The new function extend is called to do
392 this. The new function toolong is called to report a fatal error
393 when the buffer size would otherwise exceed SIZE_MAX. This fixes
394 Savannah bug #20014, which is a security-related problem with the
395 CVE identifier CVE-2007-2452.
397 * configure.in: Determine if the setgroups function is available,
398 and set HAVE_SETGROUPS if so.
399 * locate/locate.c (drop_privs): Call setgroups() only if
400 HAVE_SETGROUPS indicates that it is available. This fixes
403 2007-05-31 James Youngman <jay@gnu.org>
405 * find/parser.c (parse_time): Once we have determined the
406 comparison type, restore the original time argument since
407 get_relative_timestamp() also wants to see it. This fixes
410 2007-05-31 Jakub Bogusz <qboosh@pld-linux.org> (trivial change)
412 * find/parser.c (parse_group): Correct typo in error message.
413 (check_path_safety): same
415 2007-05-27 James Youngman <jay@gnu.org>
417 * import-gnulib.config (modules): Import sys_stat.
418 (gnulib_version): Update to 2007-05-26. This fixes a compilation
419 error in stdlib.h with the DEC C compiler. This fixes Savannah
422 * find/parser.c (safe_atoi): New function, like atoi, but which
423 calls error(1, ...) when the argument is invalid or out of range.
424 (parse_group): Use safe_atoi.
425 (insert_depthspec): Use safe_atoi
426 (parse_user): Use safe_atoi
428 * configure.in: Check for fabs in libm (fixing a compilation error
431 * import-gnulib.config (modules): Import the wcwidth module to
432 provide it on those systems (such as BeOS) which lack it.
434 * find/pred.c (file_sparseness): If st_blocks is not present in
435 struct stat, the file has a sparseness of 1.0.
437 * doc/find.texi (Size Directives): Document the %S format
438 directive for -printf.
440 * find/pred.c (mode_to_filetype): Don't use S_IFSOCK on systems
441 which lack that macro. POSIX systems are allowed to lack
442 sockets (it's an XSI extension).
443 (file_sparseness): If struct stat lacks st_blocks, assume all
444 files have a spearseness of 1.0.
446 * import-gnulib.config (modules): Import fchdir inorder to fix an
447 undefined-symbol error for fchdir on BeOS.
449 2007-05-26 James Youngman <jay@gnu.org>
451 Code refactoring in locate.
452 * locate/locate.c (visit): New function, into which we factor out
453 the traversal of the inspector list.
454 (process_simple): Use visit().
455 (process_or): Use visit().
456 (process_and): Use visit().
458 Speed improvements in locate for unibyte locales.
459 * locate/locate.c (visit_substring_match_nocasefold_wide): Renamed
460 from visit_substring_match_nocasefold.
461 (visit_substring_match_casefold_wide): Renamed from
462 visit_substring_match_casefold.
463 (visit_substring_match_casefold_narrow): Special case of
464 visit_substring_match_casefold_wide which we use for unibyte
465 locales; we use strcasestr() rather than mbscasestr().
466 (visit_substring_match_nocasefold_narrow): Ditto, using strstr()
469 * find/parser.c (parse_gid): Return an explicit boolean constant
470 rather than automatically converting from a pointer, because the
471 gnulib substitute for bool (or _Bool) in c89 environments lacking
472 bool does not support that conversion. One affected system is Sun
473 WorkShop Compilers 5.0 98/12/15 C 5.0 on Solaris 7. This is
474 Savannah bug #19970, reported by Nelson Beebe.
476 (parse_links): Ditto.
478 (check_path_safety): declarations need to go before code, not
479 interspersed. Move declaration of char* s.
481 * xargs/testsuite/xargs.posix/rc-125.exp: Explain Savannah bug
482 #19969. This bug is not yet fixed.
484 * find/defs.h: #include <stdint_.h>, for uintmax_t. This should
485 fix a compilation error on DEC C V5.9-005 on Digital UNIX V4.0F
486 (Rev. 1229). This is Savannah bug #19965, reported by Nelson
489 * find/defs.h: Don't include <errno.h>, since it is not needed in
490 the header file itself. The "extern int errno;" declaration is
492 * find/parser.c: Include <errno.h>
496 2007-05-24 James Youngman <jay@gnu.org>
498 * find/util.c (check_nofollow): If O_NOFOLLOW is defined but 0,
499 act as if it is undefined. This should prevent a runtime
500 assertion failure on IRIX 6.5. This fixes Savannah bug #19948,
501 reported by Nelson Beebe.
503 * m4/noreturn.m4: New file, testing for support of __attribute__
504 ((__noreturn__)). Defines jy_AC_ATTRIBUTE_NORETURN and sets
505 HAVE_ATTRIBUTE_NORETURN.
506 * configure.in: Call jy_AC_ATTRIBUTE_NORETURN.
507 * find/defs.h (ATTRIBUTE_NORETURN): Define to nothing if
508 HAVE_ATTRIBUTE_NORETURN is not set in config.h. This should fix a
509 compilation error with non-GCC compilers. This is Savannah bug
510 #19967, reported by Nelson Beebe.
512 * configure.in (FINDLIBS): Update FINDLIBS to link against -lm for
513 modf. This fixed a link error on HP-UX. This fixes Savannah
514 bug #19966, reported by Nelson Beebe.
515 * find/Makefile.am (LDADD): Use @FINDLIBS@
517 2007-05-21 James Youngman <jay@gnu.org>
519 * build-aux/Makefile.am (EXTRA_DIST): Added man-lint.sh.
521 * locate/locate.c (drop_privs): pass the correct list of groups to
522 setgroups(). Previously, if root invoked locate, their group ID
523 would have been set to a random value. The same bug also caused
524 an array overrun past the end of the local array groups[]. The
525 variable which gets overwritten by the buffer overrun on x86 is
526 'what'. The value of that variable is always changed before it is
527 used, and so I believe that this buffer overrun will not cause a
528 crash. The only effect of the bug therefore would be for locate
529 to change group to a random group ID since groups[0] is
530 uninitialised. On my test system this random group ID is 0
531 anyway. The effect does not depend on any externally-controllable
532 information, so it is unlikely this is exploitable. This bug is
533 detailed as bug# 19923.
535 2007-05-19 James Youngman <jay@gnu.org>
537 * find/find.1: Spurious .R directives (.R is not a directive)
538 should be .B. This fixes Savannah bug #19871.
539 * build-aux/man-lint.sh: New file; verifies that the specified
540 manual pages do not provoke error messages from troff. This is
541 used to detect further occurrences of Savannah bug #19871.
542 * find/Makefile.am (dist-hook): Run findutils-check-manpages,
543 which invokes man-lint.sh.
544 * locate/Makefile.am (dist-hook): ditto
545 * xargs/Makefile.am (dist-hook): ditto
547 * .cvsignore: Ignore ylwrap, which automake-1.10 wants us to have
548 a copy of for some reason
550 * import-gnulib.sh (main): New option -a which just runs the
551 autotools without reimporting gnulib.
553 * Makefile.am (jy-regex-fix): The previous explanatory comment
554 refers to the jy-regex-fix target, not to dist-hook, so it has
557 2007-05-08 James Youngman <jay@gnu.org>
559 * find/defs.h (struct predicate.args): str is now const.
561 * find/parser.c (get_comp_type): get_comp_type now takes a const
564 (get_relative_timestamp): ditto. Also use collect_arg().
565 (collect_arg_stat_info): New function; collects a command-line
566 argument and returns its xstat information, in one go.
567 error(1,...) is called if the stat fails.
568 (parse_anewer): Use collect_arg().
569 (parse_cnewer): ditto
570 (parse_fprint): ditto
571 (parse_fstype): ditto
573 (parse_ilname): ditto
575 (parse_iwholename): ditto
577 (insert_depthspec): ditto
580 (parse_wholename): ditto
582 (parse_regextype): ditto
583 (insert_regex): ditto
584 (parse_samefile): ditto
589 (parse_size): When the size argument is invalid but consists only
590 of a valid suffix char, avoid issuing an error message about a
591 blank argument. Append the suffix letter again.
592 (parse_xdev, parse_ignore_race, parse_noignore_race, parse_warn,
593 parse_xtype): Remove casts to void for some function parameters
594 that were, in fact, used.
596 * find/testsuite/find.gnu/fprint-unwritable.exp: new test
597 * find/testsuite/find.gnu/fprint0_stdout.exp: new test
598 * find/testsuite/find.gnu/fprint0_stdout.xo: new test
599 * find/testsuite/find.gnu/mindepth-arg.exp: new test
600 * find/testsuite/find.gnu/mindepth-arg.xo: new test
601 * find/testsuite/find.gnu/mindepth-badarg.exp: new test
602 * find/testsuite/find.gnu/print_stdout.exp: new test
603 * find/testsuite/find.gnu/print_stdout.xo: new test
604 * find/testsuite/find.gnu/samefile-missing.exp: new test
605 * find/testsuite/find.gnu/samefile-p-brokenlink.exp: new test
606 * find/testsuite/find.gnu/samefile-p-brokenlink.xo: new test
607 * find/testsuite/find.gnu/used-invarg.exp: new test
608 * find/testsuite/find.gnu/used-missing.exp: new test
609 * find/testsuite/find.gnu/user-invalid.exp: new test
610 * find/testsuite/find.posix/group-empty.exp: new test
611 * find/testsuite/find.posix/group-missing.exp: new test
612 * find/testsuite/find.posix/name-missing.exp: new test
613 * find/testsuite/find.posix/size-invalid.exp: new test
614 * find/testsuite/find.posix/size-missing.exp: new test
615 * find/testsuite/find.posix/typearg.exp: new test
616 * find/testsuite/find.posix/user-empty.exp: new test
617 * find/testsuite/find.posix/user-missing.exp: new test
619 2007-05-06 James Youngman <jay@gnu.org>
621 * find/tree.c: (costlookup): Added pred_fls to the optimiser's
622 predicate cost lookup table.
624 * lib/printquoted.c (print_quoted): Change return value from void
625 to int, to allow the caller to detect failures.
626 * lib/printquoted.h (print_quoted): Change declaration
629 * find/defs.h (struct format_val): Incldue a 'filename' member so
630 that we can provide more useful error messages (e.g. when we fail
631 to flush or close an output file).
632 (nonfatal_file_error): declare new function.
634 * find/util.c (traverse_tree): Utility function which calls a
635 callback on every node of the parse tree.
636 (flush_and_close_output_files): Flush all output streams. Close
637 all output files. Report any errors.
638 (cleanup): Use traverse_tree() to invoke
639 complete_pending_execdirs().
640 (report_file_err): refactored error reporting function, extracted
641 from fatal_file_error.
642 (nonfatal_file_error): New function.
644 * find/pred.c (checked_fprintf): New function, which performa an
645 fprinf(), and checkes the result. If the operation resulted in an
646 error, a nonfatal error message is issued.
647 (checked_print_quoted): Ditto, for print_quoted rather than
649 (checked_fwrite): Ditto for fwrite instead of fprintf.
650 (checked_fflush): Ditto for fflush
651 (do_fprintf): Use the checked_*() functions rather than their
652 direct counterparts, to ensure that I/O errors are detected. This
653 fixes Savannah bug #19416.
654 (pred_fls): Use args.printf_vec instead of args.stream, which has
656 (pred_ls): just call pred_fls.
657 (pred_fprint0): use args.printf_vec, instead of the now removed
659 (pred_print0): just call pred_fprint0
661 * find/parser.c: (insert_fprintf): Make the caller collect the
662 format argument from the argument list.
663 (open_output_file): Enhance to set up defaults in
664 our_pred->args.printf_vec as well as opening the output file.
665 Also record the filename for possible later use in an error
667 (collect_arg): Convenience function for collecting an argument
668 from the argument list.
669 (insert_fls): Refactored the body of parse_fls out so that
671 (parse_fls): call insert_fls.
673 (parse_fprint): Instead of setting up our_pred->args.printf_vec
674 manually, call open_output_file() to do it.
675 (parse_print): Same, but by calling open_stdout().
676 (insert_fprint): Make the caller collect the filename argument,
677 and delegate the setup of our_pred->args.printf_vec to either
678 open_output_file() (for parse_fprint and parse_fprint0) or
679 open_stdout (parse_print0).
680 (parse_fprint0): Use collect_arg().
681 (parse_print0): Use insert_fprint(), just like parse_fprint0.
682 (parse_printf): Use collect_arg().
683 (parse_fprintf): Use collect_arg().
685 2007-05-05 James Youngman <jay@gnu.org>
687 * find/parser.c (parse_samefile): Hold a file descriptor open on
688 the reference file in order to prevent pred_samefile getting
689 fooled by inode reuse. Pay attention to race conditions on
690 systems lacking O_NOFOLLOW when the -P option is in force. This
691 fixes Savannah bug #19806.
693 * find/defs.h (struct samefile_file_id): New struct, like dir_id
694 but including a file descriptor on the reference file.
696 * find/pred.c (pred_type): -type should return false if the file
697 has mode 00000, as opposed to having an assertion failure. This
698 fixes Savannah bug #16378.
700 * find/ftsfind.c (consider_visiting): Issue a warning message if
701 none of the mode bits are set for a file (i.e. st_mode==00000).
702 * find/util.c (get_statinfo): ditto
703 * find/util.c (hook_fstatat): Introduced debug code (normally
704 disabled) for testing Savannah bug #16378.
706 2007-05-01 James Youngman <jay@gnu.org>
708 * find/find.c (wd_sanity_check): corrected the type of %ld fprintf
709 arguments in error messages.
710 * find/fstype.c: include "error.h" for the declaratio of error().
711 * find/ftsfind.c: include "error.h" for the declaratio of
712 error(). Include dircallback.h for the correct declararion of
714 * find/parser.c: include getdate.h (for declaration of getdate)
715 and error.h (for the declaration of error).
716 (find_parser): Removed unused variable p.
717 * find/pred.c (pred_timewindow): Removed unused variable delta.
718 (do_fprintf): Removed unused variable cc.
719 * find/tree.c: Include error.h (for the declaration of error()).
720 (build_expression_tree): removed sourious extra arguments in call
722 * find/util.c: include error.h.
723 * lib/buildcmd.h (get_line_max): Comment out unused function.
724 * lib/listfile.c: Include dircallback.h.
725 * locate/code.c: Include errno.h, erorr.h, progname.h and
727 (inerr): New function for reporting read errors.
728 (outerr): New function for reporting output errors.
729 (main): Call inerror when fgets fails. Call outerr when fwrite
730 or putc or putw fails.
731 * locate/frcode.c (put_short): Return boolean value indicating
733 (outerr): New function for reporting write errors.
734 (main): Call outerr if call to putc() or puts() or put_short()
736 * locate/locate.c (search_one_database): diagnose corruption if a
737 traditional-style database is too short to include a complete
740 2007-04-30 James Youngman <jay@gnu.org>
742 * find/defs.h: Change all predicate functions to take a const
743 char* argument as the pathname, not a char*. Modify the parser
744 table definition accordingly.
745 * find/parser.c: Ditto
747 * find/pred.c (do_fprintf): copy the pathname string for the %H
748 and %h cases, since we can no longer modify the string in place.
749 * lib/listfile.c (print_name, list_file,
750 print_name_without_quoting, print_name_with_quoting): Use const
751 char * param for pathname.
752 * lib/listfile.h (list_file): Use const char * param for
755 2007-04-29 James Youngman <jay@gnu.org>
757 * find/defs.h: Declare fatal_file_error(), a function for
758 reporting immediately-fatal file errors, which appropriately
759 quotes the file name. The function does not return. Also define
760 ATTRIBUTE_NORETURN. Record the currently-required quoting style
763 * find/find.c, find/ftsfind.c, find/parser.c, find/pred.c,
764 find/util.c: Call fatal_file_error() for fatal file errors. Use
765 quotearg_n_style() to quote filenames which are used in error
766 message that aren't fatal. Use options.err_quoting_style as the
767 quoting style. This fixes Savannah bug #18203.
768 * locate/locate.c: ditto
769 * xargs/xargs.c: ditto
771 * lib/listfile.c: To use alloca, just #include <alloca.h>. Gnulib
772 handles the rest. Also these days, <stdlib.h> and <string.h> can
773 just be included unconditionally.
774 * lib/qmark.c: Fixed comment on first line describing the module.
776 2007-04-29 Michael Haubenwallner <michael.haubenwallner@salomon.at> (Trivial Change)
778 * find/defs.h (pred_open) Rename to pred_openparen to avoid
779 problems with the macrtos which build the parser tabnles on
780 platforms where 'open' is in fact a macro whcih expands to
781 open64. The problem was that token pasting put pred_open64 into
782 the parser table, but the function was still defined as
783 parse_open. This fixes Savannah bug #19371.
785 * find/parser.c (parse_open, parse_close): ditto. Also change
786 repferences to pred_open and pred_close similarly.
787 * find/parser.c (parse_openparen, parse_closeparen): ditto
789 2007-04-28 James Youngman <jay@gnu.org>
791 * find/testsuite/find.gnu/deletedir.exp,
792 find/testsuite/find.gnu/deletedir.xo: New test.
793 * find/testsuite/find.gnu/deletefile.exp,
794 find/testsuite/find.gnu/deletefile.xo: New test.
795 * find/testsuite/Makefile.am: Distribute the new tests
796 deletefile.exp and deletedir,exp, with their expected-output (.xo)
798 * find/testsuite/config/unix.exp (find_start): Add a new "setup"
799 parameter called just before each time find is invoked. This
800 allows last-minute tasks to be performed. This feature is
801 essential for find commands that modify the filesystem, since
802 otherwise we cannot use our strategy of invoking both binaries at
803 each optimisation level.
805 * find/util.c (optionh_stat, optionp_stat, optionl_stat): Assert
806 that state.cwd_dir_fd is valid.
808 * find/parser.c (parse_delete): Set need_stat to false, since we
809 don't need the stat information in pred_delete.
810 * find/pred.c (pred_delete): If unlinkat() with a zero flags
811 parameter fails with errno==EISDIR, just try again with
812 flags=AT_REMOVEDIR. That way we normally avoid the cost of a
813 stat. If we happen to have the stat information to hand anyway,
814 we make sure we get it right the first time.
816 * lib/buildcmd.c (bc_init_controlinfo): Eliminate confusing extra
817 variable arg_max. Add return value
818 BC_INIT_CANNOT_ACCOMODATE_HEADROOM for the case where the
819 environment itself is not too large, but the required headroom
820 cannot also be accomodated. The caller now passes in the amount
821 of headroom required.
822 (bc_use_sensible_arg_max): Use the environment size consistently;
823 this is accounted for already in posix_arg_size_max, so there is
824 no need to re-measure the size of the environment.
825 * lib/buildcmd.h: Define BC_INIT_CANNOT_ACCOMODATE_HEADROOM and
826 add the headroom parameter to the prototype of bc_init_controlinfo().
827 * xargs/xargs.c (main): Define XARGS_POSIX_HEADROOM as 2048 and
828 use that symbolic value. Pass XARGS_POSIX_HEADROOM to
829 bc_init_controlinfo(). Handle the case where
830 BC_INIT_CANNOT_ACCOMODATE_HEADROOM is returned by
831 bc_init_controlinfo().
832 * find/parser.c (new_insert_exec_ok): Pass the required headroom to
833 bc_init_controlinfo() and handle the error return
834 BC_INIT_CANNOT_ACCOMODATE_HEADROOM.
836 * xargs/xargs.1: Correct the description of the default value and
837 maximum value for the -s option of xargs.
839 * xargs/xargs.c (main): Modify the assertions not to assume that
840 bc_ctl.arg_max is 2KiB less than ARG_MAX, since sysconfig() may
841 have returned a value for _SC_ARG_MAX which is greater. For
842 example, AIX 5.3 can do this. This should fix Savannah bug
845 2007-04-25 James Youngman <jay@gnu.org>
847 * find/tree.c (predlist_dump, predlist_merge_nosort): These
848 functions were unused and commented out. Removed.
849 (mark_stat) No longer used. Removed.
850 (mark_type) No longer used. Removed.
852 * find/parser.c (new_insert_exec_ok): When checking for {} in the
853 arguments to -exec..., use mbsstr() rather than strstr() in order
854 to cope bettwe with multibyte locales.
856 * lib/buildcmd.c: Don't define mbsstr() locally. Instead, call
859 2007-04-24 James Youngman <jay@gnu.org>
861 * lib/buildcmd.c: Added some comments outlining how we might
862 change the implementation to support figuring out the real ARG_MAX
865 2007-04-23 James Youngman <jay@gnu.org>
867 * find/defs.h (struct predicate_performance_info): New data
868 structure for holding perofmance statistics.
869 (struct predicate: include predicate_performance_info
870 (apply_predicate): change from macro to function
871 (pred_is): new macro, for predicate identity testing
872 (enum DebugOption): Added DebugSuccessRates
873 * find/find.1: Document option "-D rates" which turns on
875 * doc/find.texi: ditto
876 * find.c (main): Call show_success_rates() before exiting.
877 (apply_predicate): remove the macro defintion, declare equivalent
879 * find/ftsfind.c (main): Call show_success_rates() before
880 exiting. Use apply_predicate().
881 (show_outstanding_execdirs): use pred_is().
885 2007-04-22 Eric Blake <ebb9@byu.net>
887 * xargs/xargs.c (main): Don't assume LINE_MAX exists (i.e. is
890 * locate/updatedb.sh (PRUNEPATHS): Exclude /proc by default.
892 2007-04-22 James Youngman <jay@gnu.org>
894 * doc/Makefile.am: When cross-compiling, 'make clean' should not
895 delete doc/regexprops.texi, becaue we can't regenerate it. Fixes
898 * locate/Makefile.am (BUILT_SOURCES): Automatically generate
899 dblocation.texi, which records the default database location.
900 * doc/find.texi: Collect the default database location from
901 ../locate/dblocation.texi, and use LOCATE_DB in various places.
902 Document the fact that updatedb can generate slocate-compatible
903 databases. Document the --dbformat option of updatedb.
904 * locate/frcode.c (main): Implemented the -S option which allows the
905 generation of an slocate secure database.
906 * locate/updatedb.sh: New option --dbformat which selects which
907 database format to use.
908 * locate/updatedb.1 (--dbformat): Document the new option.
911 * find/testsuite/find.gnu/access.exp: fixed a typo which prevented
912 the test correctly being skipped when run as root. This re-fixes
913 Savannah bug# 18414, I hope.
915 2007-04-21 James Youngman <jay@gnu.org>
917 * find/locate/locatedb.5: Clarifications to the description of the
918 LOCATE02 format. Organised the material under a number of
919 headings. Documented the slocate database format.
921 2007-04-21 James Youngman <jay@gnu.org>
923 * find/testuite/Makefile.am (EXTRA_DIST_EXP): added
924 find/testsuite/find.posix/sv-bug-19617.exp
926 2007-04-20 Maxim V. Dziumanenko <dziumanenko@gmail.com>
928 * po/uk.po: New Ukranian translation.
929 * configure.in: Added "uk" for Ukranian.
931 2007-04-19 Peter Breitenlohner <peb@mppmu.mpg.de> (Trivial change)
933 * locate/bigram.c (main): Set the initial pathname to the empty
934 string, to avoid decompression problems if the initial pathname
935 begins with a space. This fixes Savannah bug #19484.
936 * locate/code.c (main): ditto
938 2007-04-19 James Youngman <jay@gnu.org>
940 * locate/updatedb.1 (--help): Option name should be bold, not
943 * find/testsuite/find.gnu/execdir-hier.exp: Avoid running
944 -execdir based tests if "." is on $PATH. Fixes Savannah bug
946 * find/testsuite/find.gnu/execdir-in-unreadable.exp: ditto
948 * find/testsuite/config/unix.exp (touch): New procedure touch,
949 replacing "exec touch" for greater efficiency.
950 * find/testsuite/find.posix/depth1.exp: Change "exec touch" to
952 * find/testsuite/find.posix/files-not-expressions1.exp: ditto
953 * find/testsuite/find.posix/files-not-expressions2.exp: ditto
954 * find/testsuite/find.posix/files-not-expressions3.exp: ditto
955 * find/testsuite/find.posix/links.exp: ditto
956 * find/testsuite/find.posix/perm-vanilla.exp: ditto
957 * find/testsuite/find.posix/sv-bug-15235.exp: ditto
958 * /find/testsuite/find.posix/sv-bug-19613.exp: ditto
960 * find/testsuite/find.gnu/access.exp: Fix savannah bug #18414 by
961 skipping the test if the user can read any file (e.g. is root or
962 is an Admin user under Cygwin).
964 2007-04-17 James Youngman <jay@gnu.org>
966 * import-gnulib.config (gnulib_version): Use the 2007-04-17
967 version of gnulib to fix a compilation error on Cygwin. This
968 fixes Savannah bug #19619.
970 * find/testsuite/find.posix/sv-bug-19605.exp: New test, for
972 * find/testsuite/find.posix/sv-bug-19617.exp: New test, for
974 * find/ftsfind.c (consider_visiting): if fts_read() returns
975 enf->fts_info==FTS_NS, check for and diagnose a symbolic link
976 loop. This fixes Savannah bugs #19605 and #19617.
978 * find/find.c (process_path): collect the stat information for
979 directories even if we already have the mode information, because
980 we need to use the members st_nlink and st_rdev in for the leaf
981 optimisation and loop detection, respectively. This fixes
984 * find/ftsfind.c (is_fts_enabled): Return a copy of ftsoptions,
985 not a copy of the (uninitialised) input argument. This fixes
988 * find/ftsfind.c (consider_visiting): If fts_read() returned
989 FTS_NS, then remember that the stat information is not valid, and
990 therefore don't set state.have_type or state.have_stat. This
991 fixes Savannah bug #19613.
993 * find/testsuite/find.posix/sv-bug-91613.exp,
994 * find/testsuite/find.posix/sv-bug-91613.xo: New test for Savannah
995 bug 19613 (assertion failure on symbolic link loop).
997 * find/testsuite/config/unix.exp: Correctly diagnose a test case
998 which fails because find was expected to fail and instead
1000 * find/testsuite/find.gnu/exec-many-rtn-failure.exp: The child
1001 process in this test should return non-zero, not zero. Therefore
1002 run "false" instead of "true".
1004 2007-04-15 James Youngman <jay@gnu.org>
1006 * find/find.1: "-printf %b": blocks are 512 bytes. Fixes
1007 Savannah bug #19596.
1009 * doc/Makefile.am (regexprops.texi): Do not use $(RM) because many
1010 versions od make do not set it, and so it expands to nothing.
1011 This avoids suprious emission of the regexprops.texi file to stdout.
1013 * find/find.c (main, safely_chdir_lstat, safely_chdir_nofollow):
1014 Only use O_LARGEFILE if it is #defined (NetBSD-3.1 does not define
1016 * find/ftsfind.c (main): ditto
1017 * find/pred.c (pred_empty, prep_child_for_exec): ditto
1020 * import-gnulib.config: Update to gnuliv 2007-04-14.
1022 * lib/Makefile.am, import-gnulib.sh: Create lib/gnulib-version.c
1023 in import-gnulib.sh, not in lib/Makefile.
1025 * build-aux/Makefile.am: New file; distribute check-tstfiles.sh.
1027 * locate/Makefile.am: mkinstalldirs is now in build-aux.
1029 * doc/Makefile.am: We also need getdate.texi.
1031 2007-04-14 James Youngman <jay@gnu.org>
1033 * doc/.cvsignore: Ignore getdate.texi
1035 * find/defs.h: #include "buildcmd.h" near the top of the file, not
1038 * all: Pass O_LARGEFILE when opening directories.
1040 * all: Changes to allow us to use the FTS_CWDFD mode of fts().
1041 These are quite extensive changes, and are detailed below.
1043 * find/defs.h (struct exec_val): New member dirfd, the directory
1044 in which the exec should take place.
1045 (is_fts_enabled): Tell the caller which flags are passed to
1047 (get_start_dirfd): New function. Returns value of start_desc.
1048 (get_current_dirfd): New function. Returns the fd of the
1049 directory fts is currently traversing. If this is the current
1050 directory, AT_FDCWD is returned.
1051 (complete_pending_execdirs): takes a new argument, indicating
1052 where the exec is to take place. Ugh.
1053 (get_info): the file name is taken from state.rel_pathname, so
1054 we don't need it as a function argument.
1055 (enum DebugOption): Added DebugExec ("-D exec").
1056 (struct state): Added cwd_dir_fd, the directory we are examining
1057 with fts(). If fts() is not in use, this is AT_FDCWD. Also added
1058 execdirs_outstanding, which is a boolean which tells us if there
1059 are any not-yet-execed -execdir or -okdir actions (with +). This
1060 is not really used yet.
1061 * find/ftsfind.c (set_close_on_exec): New function.
1062 (get_current_dirfd): Return an fd open on the directory that fts()
1063 is currently examining.
1064 (left_dir): Signal that our previous ides of which dirctory fts is
1065 searching is now out of date.
1066 (inside_dir): Indicate which directory fts is now searching.
1067 (complete_execdirs_cb): Callback for run_in_dir() to complete
1068 pending execdirs in this directory.
1069 (show_outstanding_execdirs): Supports "-D exec"
1070 consider_visiting(): Do not allow building-up of pending execdirs,
1071 as a workaround to Savannah bug #18466.
1072 (ftsoptions): Make this a static module variable.
1073 * find/parser.c (insert_exec_ok): New parameter describing which
1074 directory the exec should occur in.
1075 (parse_version): for FTS, add a list of options being used.
1076 * find/pred.c (pred_and, pred_comma): No need to pass the relative
1077 path name to get_info(), it can pull it from state.rel_pathname.
1078 (pred_delete): use unlinkat().
1079 (pred_empty): use openat().
1080 (new_impl_pred_exec): Accept an fd parameter describing where the
1081 exec is to take place.
1082 (pred_executable, pred_writable, pred_readable): Use run_in_dir()
1083 to ensure that access() is called in a working directory which is
1084 suitable for the pathname we pass in.
1085 (prep_child_for_exec): In the child process, change to the
1086 appropriate directory becore the exec().
1087 * find/util.c (debugassoc): Support "-D exec".
1088 (get_info): No longer need to pass the relative path to
1090 (do_complete_pending_execdirs): Refactored body of what used to be
1091 complete_pending_execdirs().
1092 (complete_pending_execdirs): Pull body out into
1093 do_complete_pending_execdirs() and call that only if there is work
1095 (fallback_stat, optionh_stat, optionp_stat, optionl_stat): Use fstatat().
1096 (get_start_dirfd): New access function for starting_desc.
1097 * find/testsuite/find.gnu/execdir-hier.exp: New test
1098 * find/testsuite/find.gnu/execdir-hier.xo: Expected outut for new test
1099 * lib/dircallback.c, lib/dircallback.h: New function,
1100 run_in_dir(), which runs a callback function in a specified
1102 * lib/listfile.c: Use run_in_dir() to call readlink() in the right
1104 (get_link_name_at): Call get_link_name_cb via run_in_dir.
1105 (get_link_name_cb): New callback function, wrappting
1108 * find/testsuite/find.gnu/execdir-pwd.exp: Since we have disabled
1109 thebuilding-up of command lines for -execdir, Savannah bug #18466
1110 has been neutralised (but not fixed - we just don't allow the
1111 problem circumstance to occur).
1113 2007-04-09 James Youngman <jay@gnu.org>
1115 * doc/find.texi: Change fully-specified @node directives to
1116 single-argument @node directives in order to accomodate the
1117 inclusion of getdate.texi.
1119 * doc/find.texi: Document -newerXY.
1121 * doc/find.texi (Security Considerations): updated to describe
1122 differences in the fts-based implementation.
1124 * find/find.1: Indicate that testing the birth time where this is
1125 not supported produces a negative result for files where the birth
1126 time is not known (or a fatal error if the file of interest is a
1129 2007-04-08 James Youngman <jay@gnu.org>
1131 * configure.in: Set @AUXDIR@ (to the location of the build-aux
1133 * build-aux/check-testfiles.sh: New script, which checks that all
1134 the DejaGnu test files have been included in the distribution and
1135 (more helpfully) lists any that are missing.
1136 * Makefile.am (findutils-check-testfiles): Use
1137 build-aux/check-testfiles.sh.
1138 * locate/testsuite/Makefile.am (EXTRA_DIST_EXP): distribute
1139 locate/testsuite/locate.gnu/sv-bug-14535.exp.
1141 * config.rpath, depcomp, missing: Moved into build-aux/.
1142 * configure.in(AC_CONFIG_AUX_DIR): Find aux files in $SRCDIR/build-aux,
1145 2007-03-31 James Youngman <jay@gnu.org>
1147 * find/tree.c (build_expression_tree): Issue more specific error
1148 messages; distinguish the case where the predicate is invalid from
1149 the cases where a required argument is missing, and a supplied
1150 argument is invalid.
1152 * import-gnulib.config (gnulib_version): Update to 2007-03-30
1155 2007-03-28 James Youngman <jay@gnu.org>
1157 * find/defs.h (set_stat_placeholders): utility function for
1158 initialising the sturct stat fields that NetBSD doesn't always set
1159 (like st_birthtime where the file is on a filesystem not
1160 supporting birthtime).
1161 * find/util.c: set_stat_placeholders(): new function
1162 (get_statinfo): Call set_stat_placeholders().
1163 (optionh_stat, optionl_stat, optionp_stat): ditto
1164 * find/find.c (main, wd_sanity_check, safely_chdir_lstat,
1165 process_dir): use set_stat_placeholders().
1166 * find/parser.c (parse_anewer, parse_cnewer, parse_newer,
1167 parse_newerXY): ditto.
1168 (get_stat_Ytime): Support birth time ('B').
1169 (parse_newerXY): Support st_birthtime.
1170 * find/fstype.c (set_fstype_devno): Use set_stat_placeholders().
1171 * find/pred.c (pred_xtype): Use set_stat_placeholders().
1172 (pred_newerXY): Support birth time.
1173 (pred_fprintf, format_date): ditto ("%Bx").
1175 2007-03-25 James Youngman <jay@gnu.org>
1177 * xargs/xargs.c (main): For "xargs --show-limits" where stdin is a
1178 terminal, warn the user that the program specified (or /bin/echo)
1179 will be run at least once, if that is what will happen.
1181 2007-03-24 James Youngman <jay@gnu.org>
1183 * import-gnulib.sh: Added option -d, allowing the user to use a
1184 local version of gnulib, perhaps because they have local changes.
1186 2007-03-13 James Youngman <jay@gnu.org>
1188 * find/parser.c (parse_quit): Estimated success rate of -quit is
1191 2007-03-08 James Youngman <jay@gnu.org>
1193 * find/find.1 (TESTS): Document -newerXY, indicate that reference
1194 files are only examined once.
1195 (HISTORY): Indicate when various features were added
1196 (BUGS): Indicate that -ok ignores LC_COLLATE.
1198 2007-03-07 James Youngman <jay@gnu.org>
1200 * import-gnulib.config: (gnulib_version): Use gnulib version
1202 (modules): Added getdate
1204 * find/Makefile.am (LDADD): Added @LIB_CLOCK_GETTIME@ for
1205 clock_gettime(), if it is available.
1207 * find/defs.h: (enum xval): New enumeration, representing the
1208 value of X used in the -newerXY test. It is stored in the reftime
1209 member of 'union args'.
1210 (struct predicate): reftime is also used by -newerXY.
1211 (enum arg_type): Added ARG_SPECIAL_PARSE for -newerXY, because the
1212 parsing function needs to look at the name of the test.
1213 (struct options): start_time is now a struct timespec, not a
1216 * find/parser.c: (parse_newerXY): New parsing function for
1217 -newerXY, a feature copied from FreeBSD (also present other BSD
1218 implementations too)
1219 (get_stat_Ytime): New function; returns st_atime, st_mtime or
1220 st_ctime from struct stat, as a timespec, as required according to
1221 the value of Y in -newerXY.
1222 (found_parser): Factored the tail out of find_parser.
1223 (find_parser): Moved tail into found_parser. Add special handling
1225 (do_parse_xmin): New argument xv, indicating the value to which
1226 predicate->reftime.xval should be set.
1227 (parse_amin): Pass XVAL_ATIME to do_parse_xmin.
1228 (parse_cmin): Pass XVAL_CTIME to do_parse_xmin.
1229 (parse_mmin): Pass XVAL_MTIME to do_parse_xmin.
1230 (parse_newer): Set args.reftime.xval to XVAL_MTIME.
1232 * find/pred.c (pred_table): added pred_XY.
1233 (pred_fls): options.start_time is now a struct timespec, so just
1234 pass the tv_sec member to list_file.
1236 (pred_newerXY): New function, implementing -newerXY.
1238 * find/tree.c (costlookup): pred_newerXY needs stat information.
1239 (build_expression_tree): For predicates of type ARG_SPECIAL_PARSE,
1240 pass them in the name of the predicate (that is, don't advance
1243 * find/util.c (now): New function for setting options.start_time.
1244 Use nanoseconds where it is available.
1245 (set_option_defaults): Use now() rather than time().
1247 2007-03-03 James Youngman <jay@gnu.org>
1249 * import-gnulib.sh: Pass --with-tests to gnulib-tool so that relevant
1250 gnulib unit tests are built and are run for "make check".
1252 * configure.in (AC_CONFIG_FILES): Add tests/Makefile (the makefile
1253 for the gnulib unit tests).
1255 * Makefile.am: Add 'tests' to SUBDIRS.
1257 * .cvsignore: Add 'tests'.
1259 * import-gnulib.config (modules): Also use Gnulib modules
1260 mbscasestr and mbsstr in order to perform correct string searching
1261 in multibyte strings, in order to fix Savannah bug #14535.
1263 * locate/testsuite/locate.gnu/sv-bug-14535.exp: new test case for
1264 Savannah bug #14535.
1266 * locale/locate.c (visit_substring_match_nocasefold): Use mbsstr
1267 rather than strstr, in order to correctly support multibyte
1269 (visit_substring_match_casefold): Use mbscasestr rather than
1270 strstr in order to correctly support case-folding in a multibyte
1271 environment (e.g. with UTF-8 characters outside the normal ASCII
1272 range). This fixes Savannah bug #14535.
1273 (struct casefolder): No longer needed, removed
1274 (visit_casefold): No longer needed, removed.
1275 (lc_strcpy): No longer needed, removed.
1276 (search_one_database): Removed redundant variable need_fold and
1277 the code which used to set it. It had controlled the adding of
1278 the visitor function visit_casefold, but that function itself is
1279 no longer required. Also there is now no need to pass in a
1280 lower-case argument to visit_substring_match_casefold, so don't
1281 pass that in the context argument.
1283 * locate/locate.c (usage): Fixed typo.
1285 2007-03-01 James Youngman <jay@gnu.org>
1287 * doc/find.texi (Multiple Files): Document the construct
1288 -exec sh -c 'cmd "$@" final-args' {} + - fixing Savannah bug
1291 2007-02-28 James Youngman <jay@gnu.org>
1293 * import-gnulib.config: New file. Specifies which version of
1294 Gnulib we need to check out and build from.
1296 * import-gnulib.sh: Use import-gnulib.config.
1298 * README-CVS: Describe the new method of building from CVS.
1300 * lib/gnulib-version.h, lib/gnulib-version.sh: New files; code for
1301 reporting which version of Gnulib we built findutils from.
1303 * lib/Makefile.am: Build gnulib-version.c out of
1304 ./gnulib-version.config by using lib/gnulib-version.sh.
1306 * Makefile.am: Ship import-gnulib.config and import-gnulib.sh.
1308 * .cvsignore: Ignore gnulib-cvs
1310 * lib/.cvsignore: Ignore gnulib-version.c
1312 * find/parser.c, locate/code.c, locate/locate.c, xargs/xargs.c:
1313 Report which version of Gnulib we were built from.
1315 2007-02-25 James Youngman <jay@gnu.org>
1317 * find/find.c (process_dir): Removed duplicated (shadow)
1318 declaration of did_stat. Assert that we did not use subdirs_left
1319 if subdirs_unreliable is true.
1321 * find/parser.c (parse_size): Removed unused variable rate.
1322 (parse_time): Removed unused variable num_days_approx.
1323 (get_num): Removed unused variables ok and suffixes.
1325 * find/pred.c (do_fprintf): Indicate that the function needs a
1326 return value (referring to Savannah bug #19146).
1328 * find/tree.c (predlist_dump): Commented out unused function
1329 (predlist_merge_nosort): Commented out unused function
1330 (getrate): Returns type is float, so return 1.0f not 1.0.
1331 (calculate_derived_rates): Removed unused variable rate. Use a
1332 switch statement rater than ifs.
1334 * find/util.c (usage): Removed unused variable i.
1336 * lib/buildcmd.c (bc_do_insert): Removed unused variable
1338 (bc_init_controlinfo): annotate a line (with #warning) which is
1341 * locate/locate.c: #include <grp.h> for the benefit of the
1342 setgroups() call in drop_privs.
1343 (slocate_db_pathname): Commented out unused variable.
1344 (set_max_db_age): error command has no format directive, so
1345 remove the unused extra argument.
1346 (looking_at_slocate_db): Removed unused variables magic and
1347 lenwanted. Fix bug where result is indeterminate (due to falling
1348 off the end of the function) if the first character is a nondigit.
1349 (search_one_database): Eliminate (spurious) compiler warning
1350 rlating to possible use before initialisation of slocate_seclevel.
1352 * xargs/xargs.c (get_char_oct_or_hex_escape): Eliminate spurious
1353 compiler warning on variable p.
1354 (main): Removed unused varible env_too_big
1357 2007-02-24 James Youngman <jay@gnu.org>
1359 * find/parser.c (pred_sanity_check): define this function even for
1360 _NDEBUG, but do nothing in that case.
1361 (estimate_timestamp_success_rate): correct (invert) the sense of
1362 the subtraction used to find the file's age.
1364 * import-gnulib.sh (findutils_modules): Import Gnulib modules
1365 xstrtod and timespec.
1367 * find/parser.c (get_comp_type): Refactored out of get_num.
1368 (get_num): call get_comp_type to find the comparison type.
1369 (get_relative_timestamp): new function replacing get_num_days.
1370 (get_num_days): Remove.
1371 (do_parse_xmin): Support fractional arguments and
1372 nanosecond timestamps.
1376 * xargs/xargs.c (read_line): Give a warning message if a NUL is
1377 found in the input (this function is called only when -0 is not in
1380 * xargs/xargs.c (nullwarning_given): New variable indicating if
1381 the NULL character warning had already been issued.
1383 * doc/find.texi (Multiple Files): Describe how trailing blanks are
1384 handled when -L is in effect.
1386 * xargs/xargs.c (read_line): Use an enum rather than
1387 preprocessor macro values for the lexer state.
1389 * lib/savedirinfo.c (free_dirinfo): Fixed memory leak (trivial
1390 patch from Supriya Kannery)
1392 2007-01-22 James Youngman <jay@gnu.org>
1394 * .cvsignore (install-sh): Ignore, since the install-sh file is no
1395 longer held in the findutils CVS repository.
1397 * find/testsuite/config/unix.exp (find_start): allow a test to be
1398 skipped for either the old or the new find executable.
1399 * find/testsuite/find.gnu/execdir-pwd.exp,
1400 find/testsuite/Makefile.am:
1401 New test, covering Savannah bug #18466. This test currently fails
1402 for the ftsfind binary and passes for the oldfind binary. Due to
1403 a limitation in the way that we perform the test, we can't tell
1404 the test suite to expect a failure in the new binary but not the
1405 old. Therefore we skip the test for the old binary.
1407 * lib/regeprops.c (describe_regex_syntax): fixed a typo in the text
1408 * doc/find.texi (Multiple Files): fixed a typo
1410 2007-01-16 James Youngman <jay@gnu.org>
1412 (ctime_format): format the time manually (rather than using ctime)
1413 in order to include the sub-second part of the time.
1414 (weekdays, months): new static variables used by ctime_format.
1415 (format_date): append a the sub-second part of the timestamp to
1416 the seconds part of date/time output.
1418 2007-01-15 James Youngman <jay@gnu.org>
1420 * find/defs.h (time_val): define struct; use timespec to hold time
1421 in the 'reftime' member.
1422 (args): use struct timespec instead of time_t for predicates
1423 -newer, -anewer, -cnewer. * find/parser.c (includes): include
1425 (parse_anewer, parse_cnewer, parse_newer): use struct timespec to
1426 hold timestamps. * find/pred.c (compare_ts): new function for
1427 comparing timestamps in struct timespec.
1428 (pred_anewer, pred_cnewer, pred_newer): use compare_ts() to
1429 compare timestamps (hence takinng acoung of sub-second
1431 * find/ftsfind.c: Various improvements to comments.
1432 (is_fts_enabled): Newline before function name to comply with GNU
1435 2007-01-13 James Youngman <jay@gnu.org>
1437 * lib/regexprops.c (describe_regex_syntax): fixed typo
1439 * xargs/xargs.c (read_line): Fixed Savannah bug# 18714; VT and FF
1440 are not separators, according to POSIX (in the POSIX locale).
1442 * xargs/testsuite/Makefile.am,
1443 xargs/testsuite/input/formfeeds.xi,
1444 xargs/testsuite/input/verticaltabs.xi,
1445 xargs/testsuite/xargs.posix/sv-bug-18714.exp,
1446 xargs/testsuite/xargs.posix/sv-bug-18714.xo,
1447 xargs/testsuite/xargs.posix/sv-bug-18714b.exp,
1448 xargs/testsuite/xargs.posix/sv-bug-18714b.xo: Tests for Savannah
1451 * xargs/xargs.c (usage): Removed suprious "[" in --help output
1452 (fixes Savannah bug #18384).
1454 * locate/locate.c: Implement the option --max-database-age.
1455 (main) Accept the option.
1456 (set_max_db_age): Parse the argument.
1458 * locate/locate.c (dolocate): If the database is more than N days
1459 old, indicate its actual age in the warning message we produce.
1461 * locate/locate.1, docs/find.texi: Document --max-database-age
1463 * THANKS: Thank Dean Gaudet for the idea of -sparse.
1465 * po/findutils.pot: Updated from Translation Project
1467 * po/ga.po, po/pl.po, po/nl.po, po/tr.po, po/hu.po: Updated from
1468 the Translation Project
1470 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1472 * doc/find.texi: Fix some typos. (trivial change)
1474 2007-01-07 James Youngman <jay@gnu.org>
1476 * find/parser.c (parse_perm), find/testsuite/find.gnu/perm000.exp,
1477 find/testsuite/find.gnu/perm000.xo: -perm /000 is now quivalent
1478 to -perm -000, as dscussed in Savannah bug #14748. The warning
1479 message we issue when the user does this now explains that the
1480 defintion changed as we promised it would in 2005.
1482 * xargs/xargs.c (read_line): Correctly handle quoted empty
1483 arguments occurring first or last on a line (by adding an empty
1484 argument to the output). Fixes Savannah bug #18713.
1486 * xargs/testsuite/xargs.sysv/sv-bug-18713.exp,
1487 xargs/testsuite/xargs.sysv/sv-bug-18713.xo,
1488 xargs/testsuite/input/empty.xi: Test case for Savannah bug #18713.
1491 2006-12-29 James Youngman <jay@gnu.org>
1493 * find/testsuite/config/unix.exp:
1494 Verify that find_start is invoked with wither a p (pass) or an f
1497 * lib/listfile.c, lib/listfile.h:
1498 define find_blocksize() and provide a declaration for get_link_name()
1500 * find/testsuite/config/unix.exp: Updated copyright years.
1502 * 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:
1503 Avoid tests using -execdir if $PATH contains a relative directory
1506 Also flag $PATH values containing relative directories as being dangerous.
1508 * find/parser.c, find/defs.h, find/util.c:
1509 Instead of selecting the old or new exec handling code with the NEW_EXEC macro, just use the new code all the time
1511 * locate/testsuite/config/unix.exp:
1512 Fixed Savannah bug #13252, test suite failure caused by the fact that 'file normalize' is not available in Tcl 8.3
1514 * NEWS, find/pred.c:
1515 Fixed Savannah bug #18433, compilation failure with configure --enable-debug
1517 2006-12-28 James Youngman <jay@gnu.org>
1519 * NEWS: Document addition of %S.
1521 * find/defs.h, find/find.1, find/parser.c, find/pred.c:
1522 Implemented %S (sparseness) printf format, and general refactoring and cleanup of printf predicate
1524 2006-12-01 James Youngman <jay@gnu.org>
1526 * NEWS, configure.in: Begin work on findutils 4.2.30
1529 Fix compilation error for oldfind if --enable-debug was passed to configure
1531 * NEWS, configure.in: Prepare for work on findutils-4.3.3
1533 2006-11-25 James Youngman <jay@gnu.org>
1535 * find/testsuite/Makefile.am: Added test case for Savannah bug #17782
1537 * doc/textinfo.tex: Removed; we now use the version supplied
1540 * m4/mkinstalldirs.m4: Added this file. It's an excerpt from an
1541 old version of gnulib's m4/nls.po file. The current version of
1542 gnulib does not expand MKINSTALLDIRS, but gettext-0.14.6's version
1543 of po/Makefile.in.in expects it to be expanded. This m4 file
1546 2006-11-20 James Youngman <jay@gnu.org>
1548 * po/et.po, po/bg.po, po/pl.po, po/nl.po, po/tr.po: Updated
1549 translations for Bulgarian, Estonian, Dutch, Polish and Turkish.
1551 2006-11-08 James Youngman <jay@gnu.org>
1553 * find/testsuite/Makefile.am:
1554 Oops, indicate the right directory for the new test files
1556 * 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:
1557 Savannah bug#18222 - test case
1559 * ChangeLog, lib/buildcmd.c:
1560 Fixed Svannah bug #17782 ('./' prefix added at start of arg while it should be added at the start of the expansion of {})
1562 * find/ftsfind.c (process_all_startpoints): Set
1563 state.starting_path_length for every pathname argument.
1564 This fixes Savannah bug #18222.
1566 * find/pred.c (pred_prune): -prune should have an effect only if we are
1567 currently considering a directory (Savannah bug #15531).
1569 2006-10-15 James Youngman <jay@gnu.org>
1571 * lib/buildcmd.c: Fixed Savannah bug #17782, in which "find
1572 -execdir echo "foo {}" runs 'echo ./foo filename' instead of the
1573 correct command 'echo foo ./filename'.
1575 * po/hu.po, po/sl.po: Updated Hungarian and Slovenian po files
1577 2006-08-21 James Youngman <jay@gnu.org>
1579 * find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.gnu/sv-bug-17490.exp:
1580 Fixed Savannah bug #17490, which was a coiredump when -regex ZZZ was the final test on the command line
1582 2006-08-20 James Youngman <jay@gnu.org>
1584 * find/parser.c: Merged the fix for the trailing % in "find -printf".
1586 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
1588 Port recent fixes for symbolic modes involving X from gnulib,
1589 and clarify the documentation in this area.
1590 * doc/find.texi: Use "file mode bits" when talking about
1591 all the file mode bits (including setuid, setgid, and sticky),
1592 and "permissions" when talking only about permissions bits
1593 (read, write, execute/search). Use "execute/search" to
1594 talk about the x bit, since it means both. You do not need
1595 permission to the linked-to file to follow a symlink for
1596 syscalls like "stat", but you do need search permission for
1597 the directories you traverse. Clarify the explanation of
1598 -perm. Use "that" instead of "which" when "which" isn't
1599 quite correct English.
1600 (Mode Bits): Renamed from Permissions. All uses changed.
1601 * doc/perm.texi: Sync from coreutils 6.0.
1602 * find/defs.h (struct perm_val.val): Now an array of two items,
1603 one for non-directories, and one for directories. This is
1604 to handle symbolic modes like +X correctly.
1605 * find/parser.c (parse_perm): Likewise. Also, adjust to
1606 latest gnulib interface for mode_adjust.
1607 * find/pred.c (pred_perm): Likewise.
1608 * find/testsuite/Makefile.am (EXTRA_DIST_XO): Add find.posix/perm-X.xo.
1609 (EXTRA_DIST_EXP): Add find.posix/perm-X.exp.
1610 * find/testsuite/find.posix/perm-X.exp: New file.
1611 * find/testsuite/find.posix/perm-X.so: New file.
1613 12006-08-19 Paul Eggert <eggert@cs.ucla.edu>
1615 Port to latest gnulib, and simplify the bootstrapping procedure.
1616 * intl: Remove this directory and everything in it.
1617 * depcomp, install-sh, missing, mkinstalldirs, doc/texinfo.tex:
1618 Remove these files from CVS, as they are now gotten from gnulib.
1619 * README-CVS: Don't recommend "autoreconf -i", as it doesn't work
1621 * import-gnulib.sh (findutils_files): New var. Grab this stuff
1623 (findutils_modules): Add fopen-safer; remove stdio-safer. This
1624 adjusts to latest gnulib.
1625 (modules): Remove obsolete reference to intl_modules.
1626 * .cvsignore: Remove stamp-h; add stamp-h1.
1627 * doc/.cvsignore: Add regexprops.texi.
1628 * find/.cvsignore: Add oldfind.
1629 * lib/.cvsignore: Add .deps, regexprops.
1630 * m4/.cvsignore: Add Makefile.
1631 * po/.cvsignore: Add stamp-po.
1633 2006-08-19 James Youngman <jay@gnu.org>
1635 * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/bigprefix1.exp:
1636 Explicit checks for parefixes which are within range of a short, but outside the one-byte range
1638 * locate/testsuite/locate.gnu/bigprefix1.exp, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
1641 * locate/testsuite/Makefile.am, locate/testsuite/locate.gnu/exceedshort.exp, locate/testsuite/locate.gnu/space1st.exp:
1642 Patch from Tavis Ormandy; check frcode handles initial space end encodes paths with more than 2^16 characters in the common prefix (trivial change)
1644 * locate/frcode.c: Changes to avoid overflows
1646 2006-08-11 James Youngman <jay@gnu.org>
1649 Avoid producing an invalid database if the first item begins with a space
1651 2006-08-10 James Youngman <jay@gnu.org>
1653 * find/pred.c, import-gnulib.sh, lib/listfile.c:
1654 Updated callers of the gnnulib filemode module so that they work with the 2006-07-09 version of gnulib
1656 * config.rpath: Updated config.rpath from autotools
1658 2006-08-08 James Youngman <jay@gnu.org>
1660 * locate/locatedb.h:
1661 Automatically verify (at compile time) that the frcode datastream
1662 cannot get desynchronised.
1665 Fixed Savannah bug #10494 (-maxdepth does not yield the same stat savinf in ftsfind as oldfind)
1667 * find/ftsfind.c: display fts_level for find -D search
1669 * find/util.c: Support find -D search
1672 If the user specified -E but the database is an slocate database, do
1673 not produce a list of files they cannot stat. Issue an error message
1674 explaining the problem.
1677 Issue states messages in a way which indicates more clearly what's
1678 happening when the numbers are reduced because not every filename
1679 matched the pattern.
1681 * locate/locate.c: Better error checking in drop_privs().
1683 2006-08-07 James Youngman <jay@gnu.org>
1685 * NEWS, locate/locate.c, locate/locatedb.h:
1686 Added support for slocate database format
1689 Removed unused code (tivial patch from Miloslav Trmac).
1691 * xargs/xargs.c: Removed unused code.
1694 Clarify that the output format for locate -S differs from BSD's.
1696 * NEWS, find/find.1:
1697 Savannah bug #15360: explain global vs. positional options more clearly in the manual page
1699 * NEWS: Typo in subsection header (* should be **).
1701 * NEWS, find/find.1:
1702 Savannah bug #15360: explain global vs. positional options more clearly in the manual page
1704 * doc/find.texi: Fixed some clumsy phrasing
1706 * NEWS, configure.in:
1707 Now diverging again from the released tarball, so change once more to -CVS version number suffixes
1709 2006-08-06 James Youngman <jay@gnu.org>
1711 * locate/locate.c: Fixed a typo in a comment.
1713 * NEWS, configure.in: Moving on towards 4.3.2...
1715 * find/testsuite/config/unix.exp:
1716 Check that we can see the find.o file in the right position relative
1717 to $base_dir to ensure that we are indeed testing the program we just built.
1719 * find/testsuite/config/unix.exp:
1720 Be more paranoid about whether we're really checking the right version
1723 * NEWS, configure.in: Prepare for release of 4.3.1
1725 * doc/find.texi: Document the -O and -D options
1727 * find/defs.h, find/find.1, find/util.c:
1728 'find -D help' now explains the available debugging options
1730 * 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:
1731 Make dist changed all the po files again
1733 2006-08-05 James Youngman <jay@gnu.org>
1735 * NEWS: Described more changes in 4.3.1.
1737 * locate/testsuite/config/unix.exp:
1738 Set the environment variable so that updatedb knows where to find it; it's not in BINDIR yet during 'make check'
1740 * 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:
1741 Make dist changed all the po files again :)
1743 * po/et.po, po/vi.po: UPdated the Estonian and Vietnamese translations
1745 * NEWS, configure.in: Prepare for release of findutils-4.2.28
1747 * 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:
1748 Make dist changed all the po files again :)
1750 * configure.in: Added Bulgarian translation.
1752 * po/bg.po: Include Bulgarian translation
1754 * configure.in: Added Bulgarian translation.
1756 * po/et.po, po/vi.po: Updated Estonian and Vietnamese translations
1758 * NEWS: Removed spurious comma.
1760 * NEWS: Listed the updated translations.
1762 * find/parser.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
1763 Fixed Savannah bug#16738, find does not subtract environment size in find .. -exec {} +
1765 * NEWS: Updated the list of bugfixes etc.
1767 2006-06-15 James Youngman <jay@gnu.org>
1769 * NEWS: Described recent changes
1771 * configure.in: fix to how we invoke the gnulib regex module
1774 Savannah bug #16269: avoid confusion over what type of quotes to use
1777 * find/parser.c: Option -nowarn should not itself produce a warning
1779 * find/defs.h: Remoevd useless declaration of last_pred
1781 2006-06-14 James Youngman <jay@gnu.org>
1783 * 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:
1784 Updated translation files ga pl sv tr nl ca vi bg fr
1786 * locate/updatedb.sh:
1787 Fixed Savannah bug #16579 (su false should be su -c false)
1789 2006-04-01 James Youngman <jay@gnu.org>
1792 Fixed Savannah bug #15800: "Hard link count is wrong" reports wrong
1795 2006-03-31 James Youngman <jay@gnu.org>
1797 * po/hu.po: Updated Hungarian translation
1799 2006-01-04 James Youngman <jay@gnu.org>
1801 * find/testsuite/find.posix/sizetype.exp, find/testsuite/find.posix/sizetype.xo, find/testsuite/find.posix/typesize.exp, find/testsuite/find.posix/typesize.xo:
1802 Additional tests for -type -size and -size -type
1804 * 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:
1805 Initial implementation of a cost-based optimiser
1807 2005-12-23 James Youngman <jay@gnu.org>
1809 * find/parser.c: Refactor of parse_[acm]time
1811 * find/defs.h, find/find.c, find/finddata.c, find/ftsfind.c, find/tree.c, find/util.c:
1812 last_pred can be a static in tree.c rather than a global variable
1814 * find/tree.c, find/finddata.c:
1815 Moved some global data out of finddata.o and into static variables in tree.c
1817 * 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:
1818 Fixed many compilation warnings
1820 * find/find.c, find/ftsfind.c, find/util.c:
1821 Evaluating the predicates can change the contents of the data structure (for example to add another exec item)
1823 * find/defs.h, find/find.c, find/ftsfind.c, find/tree.c, find/util.c:
1824 Re-factored a lot of common expression-handling code out of find.c and ftsfind.c, mainly into tree.c
1826 * find/find.c, find/ftsfind.c, find/tree.c:
1827 Savannah bug #15271: more helpful error messages for cases where there is a missing expression
1829 2005-12-20 James Youngman <jay@gnu.org>
1831 * 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:
1832 Savannah bug #15195: more helpful error messages for 'find . ( )' or 'find . \!'
1834 * ChangeLog: Added entries for recent changes.
1836 * find/defs.h, find/find.c, find/ftsfind.c, find/testsuite/find.posix/bracket-depth.exp, find/util.c:
1837 Further fix to bug# 15235: a leading comma is a filename not an expression
1839 * find/defs.h, find/parser.c, find/testsuite/Makefile.am, find/testsuite/find.posix/empty-parens.exp, find/tree.c:
1840 Accept 'find ( -depth )' but reject 'find ( )'
1842 * 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:
1845 * find/testsuite/find.gnu/delete.exp:
1846 Use the new find program, and the new way of locating it (/ instead of )
1848 * find/testsuite/Makefile.am: Added bracket-depth.exp.
1850 * NEWS, configure.in: We have moved on from 4.3.0
1852 * 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:
1853 Avoid getting confused by filename arguments of which the first
1854 character looks like a predicate, for example ',x' or '!x' or
1855 '(x' (Savannah bug #15235).
1857 2005-12-20 James Youngman <jay@gnu.org>
1859 * find/defs.h, find/find.c, find/ftsfind.c,
1860 find/testsuite/find.posix/bracket-depth.exp, find/util.c: Further
1861 fix to bug# 15235: a leading comma is a filename not an expression
1863 * find/defs.h, find/parser.c, find/testsuite/Makefile.am,
1864 find/testsuite/find.posix/empty-parens.exp, find/tree.c: Accept
1865 'find ( -depth )' but reject 'find ( )'
1867 * find/testsuite/find.gnu/delete.exp: Use the new find program,
1868 and the new way of locating it ($OLDFIND/$FTSFIND instead of $FIND)
1870 * find/testsuite/Makefile.am: Added bracket-depth.exp.
1872 * NEWS, configure.in: We have moved on from 4.3.0
1874 * find/defs.h, find/find.c, find/ftsfind.c,
1875 find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
1876 find/testsuite/find.posix/files-not-expressions1.exp,
1877 find/testsuite/find.posix/files-not-expressions1.xo,
1878 find/testsuite/find.posix/files-not-expressions2.exp,
1879 find/testsuite/find.posix/files-not-expressions2.xo,
1880 find/testsuite/find.posix/files-not-expressions3.exp,
1881 find/testsuite/find.posix/files-not-expressions3.xo, find/util.c:
1882 Avoid getting confused by filename arguments of which the first
1883 character looks like a predicate, for example ',x' or '!x' or '(x'
1884 (Savannah bug #15235).
1886 2005-12-19 James Youngman <jay@gnu.org>
1888 * find/testsuite/config/unix.exp:
1889 Run every test twice, once with the old (non-fts) binary and once with
1890 the new (fts-enabled) binary.
1892 2005-12-19 Eric Blake <ebb9@byu.net>
1894 * find/testsuite/Makefile.am,
1895 find/testsuite/find.posix/sv-bug-15235.xo,
1896 find/testsuite/find.posix/sv-bug-15235.exp: New tests for Savannah
1899 * NEWS, find/find.1, doc/find.texi (Invoking find): Document bug
1900 fix for Savannah bug 15235.
1902 2005-12-16 James Youngman <jay@gnu.org>
1904 * xargs/xargs.1, xargs/xargs.c: Fixed bug# 15211, that xargs
1905 --show-limits is not documented in the manpage or in the usage
1908 2005-12-12 James Youngman <jay@gnu.org>
1910 * find/testsuite/find.gnu/access.exp:
1911 Don't leave junk files lying around the place
1913 * README-CVS: Update the the instructions for getting gnulib; the
1914 CVS arrangements at Savannah have changed.
1916 * ChangeLog, NEWS, doc/find.texi, doc/perm.texi, find/defs.h, find/parser.c:
1917 Merged changes from 4.2.x branch again
1919 * NEWS, doc/find.texi, find/defs.h, find/find.c, find/ftsfind.c,
1920 find/parser.c, find/pred.c, find/util.c, lib/listfile.c,
1921 lib/listfile.h: Initial code to allow control over how -ls quote
1922 (or does not quote) control characters; not enabled yet
1924 2005-12-11 James Youngman <jay@gnu.org>
1926 * ChangeLog, THANKS, xargs/xargs.c:
1927 Fixed spelling errors in Bob Proulx's name. Sorry, Bob.
1929 2005-12-10 James Youngman <jay@gnu.org>
1932 Aaron Hawley: Updated perm.texi from the coreutils distribution
1935 Avoid using entries which have the same name as POSIX library
1936 functions (fprintf, printf, exec) as the implementation is allowed to
1937 #define these. That generates hard-to-grok compilation errors.
1939 2005-12-10 Andreas Metzler <gnu@downhill.at.eu.org>
1941 * ChangeLog, NEWS, configure.in, find/defs.h, find/parser.c:
1942 Applied patch from Andreas Metzler fixing Savannah bug #15181:
1943 implicit declaration of parse_openparen
1945 2005-12-08 James Youngman <jay@gnu.org>
1947 * doc/find.texi: Typo and spelling corrections from Aaron Hawley
1949 2005-12-05 James Youngman <jay@gnu.org>
1951 * Released findutils-4.2.27
1953 2005-12-05 James Youngman <jay@gnu.org>
1955 * doc/find.texi, find/find.1, locate/locate.1, xargs/xargs.1:
1956 Savannah patch #3775 from Aaron Hawley: reconciling man pages
1957 differences; did not apply the patch, but resolved all the
1958 remaining issues manually by updating the documentation (mostly
1959 the Texinfo documentation, which was missing a number of specific
1960 technical statements about the behaviour of various options)
1962 2005-12-04 James Youngman <jay@gnu.org>
1964 * doc/find.texi: Document --show-limits
1967 Correctly display the size of the argument buffer we really allocated.
1969 * doc/find.texi, find/find.1, find/parser.c, find/pred.c, NEWS:
1970 Savannah bug #14748 (which this change does NOT fix): issue
1971 warning of future changes in the behaviour of -perm /000
1973 2005-11-30 James Youngman <jay@gnu.org>
1976 Typo correction from Benno Schulenberg <benno@nietvergeten.nl>
1979 2005-11-29 James Youngman <jay@gnu.org>
1982 Typo "Ilegal"; change to "Invalid" since this is not really illegal!
1983 Bug report by Primoz Peterlin.
1985 * lib/regexprops.c, xargs/xargs.c:
1986 Prefer the word 'Invalid' or the phrase 'not allowed' over
1987 'Illegal', as per the GNU coding standards, and as per the
1988 suggestion from Benno Schulenberg
1990 2005-11-24 James Youngman <jay@gnu.org>
1992 * NEWS, lib/buildcmd.c, lib/buildcmd.h: Merge to trunk from 4.2.x fixes
1995 Deleted inaccurate comment about the default value of ctl->args_per_exec.
1997 * NEWS, lib/buildcmd.c, lib/buildcmd.h:
1998 Be more conservative about the total number of arguments we will
1999 allow (to avoid exec limits on Linux/PPC)
2001 2005-11-23 James Youngman <jay@gnu.org>
2003 * NEWS: Bug #14921 has been fixed.
2006 Savannah bug #14921: when a Linux bind filesystem is in use, find
2007 would expand '-printf %F' to 'none' if a bind mount targetted the same
2008 filesystem as the one containing the file to be described.
2010 * NEWS: Updated to describe recent changes
2012 * doc/find.texi, find/find.1: Documented find -printf %M
2014 * lib/buildcmd.c, xargs/testsuite/Makefile.am,
2015 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2016 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2017 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2018 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo:
2019 Ensure that the test suite still passes even if the current
2020 system's value of ARG_MAX is different from the development/test
2023 * lib/buildcmd.c: reindent and untabify
2025 * configure.in: The CVS code is moving on from the previous release.
2027 2005-11-22 James Youngman <jay@gnu.org>
2029 * ChangeLog: Updated with recent changes.
2031 2005-11-21 James Youngman <jay@gnu.org>
2033 * locate/testsuite/config/unix.exp:
2034 Even if we expect locate to return a nonzero status, the test should
2035 still fail if updatedb fails!
2037 * locate/testsuite/locate.gnu/ignore_case2.exp:
2038 Set the current directory for updatedb. This test case is supposed to
2039 fail because the filename is not matched, not because updatedb fails!
2041 * locate/updatedb.sh:
2042 Check the binaries actually exist in the place we expect.
2044 2005-11-20 James Youngman <jay@gnu.org>
2046 * locate/locate.1, xargs/xargs.1: Escape '-' as '\-' where appropriate.
2049 Escape '-' as '\-' where appropriate. Fixes last part of bug #14556.
2051 2005-11-19 James Youngman <jay@gnu.org>
2053 * doc/find.texi, find/find.1:
2054 Applied edited form of Andreas Metzler's -perm /mode documentation
2055 patch resolving Savannah bug #14619.
2058 In the success case, extendbuf() should preserve the previous value of
2059 errno. Fixes Savannah bug #14842.
2061 * xargs/testsuite/Makefile.am: Added new test files
2064 Correctly indicate the default regular expression syntax (fixes
2065 Savannah bug #14836).
2067 * NEWS, configure.in: Released findutils-4.2.26
2069 * ChangeLog, NEWS, lib/buildcmd.c,
2070 xargs/testsuite/inputs/16383-ys.xi,
2071 xargs/testsuite/inputs/32767-ys.xi,
2072 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2073 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2074 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2075 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: Applied
2076 bugfix from Jim Meyering (tiny change), where many short arguments
2077 would cause xargs (and probably find -exec .. {} +) to fail
2078 because execve() returns E2BIG, which we should avoid
2080 * xargs/testsuite/inputs/16383-ys.xi,
2081 xargs/testsuite/inputs/32767-ys.xi,
2082 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.exp,
2083 xargs/testsuite/xargs.posix/arg_max_32bit_linux_bug.xo,
2084 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.exp,
2085 xargs/testsuite/xargs.posix/arg_max_64bit_linux_bug.xo: New file.
2087 2005-11-18 Jim Meyering <jim@meyering.net> (tiny change)
2089 * lib/buildcmd.c (bc_push_arg): When exec'ing, don't exceed
2090 Linux's limit on the maximum number of command line arguments.
2092 2005-11-11 James Youngman <jay@gnu.org>
2094 * NEWS, find/find.c, find/fstype.c: Savannah bug #14922: if we need the
2095 list of mounted filesystems but it is not available, exit fatally
2096 with a message. If it is not available but we don't need it,
2097 there is no need for an error.
2099 2005-10-31 James Youngman <jay@gnu.org>
2102 Removed redundant additional description of "--regextype".
2104 2005-10-08 James Youngman <jay@gnu.org>
2106 * find/find.c, lib/regextype.c: Fixed Savannah bug #14616, which
2107 was that c99 code had crept in and it didn't compile on c89
2110 * doc/find.texi: Savannah patch #4371 from Andreas Metzler; the
2111 argument of -I is mandatory
2113 2005-09-21 James Youngman <jay@gnu.org>
2115 * xargs/xargs.1, xargs/xargs.c: Clarified the -E option
2117 2005-09-20 James Youngman <jay@gnu.org>
2119 * NEWS, configure.in, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
2120 Documentation clarification: -L and -I take a mandatory argument;
2123 2005-09-17 James Youngman <jay@gnu.org>
2126 Fixed Savannah bug #14550 - if environment is too large to allow
2127 exec() to work, we cannot even use "xargs --help".
2130 Avoid the use of -perm +mode, using -perm /mode instead. From comment
2131 by Andreas Metzler (though I didn't read the patch).
2133 * ChangeLog, doc/find.texi, find/find.1, xargs/xargs.1:
2134 Typo fix from A Costa (tiny change)
2136 * NEWS: Corrections for find manual page - symbolic permissions.
2139 Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
2140 'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
2142 2005-09-17 A Costa <agcosta@gis.net> (tiny change)
2144 docs/find.texi: Fixed typo
2145 find/find.1: Fixed typo
2146 xargs/xargs.1: Fixed typo
2148 2005-09-17 James Youngman <jay@gnu.org>
2150 * NEWS: Corrections for find manual page - symbolic permissions.
2153 Corrected an inaccuracy in the EXAMPLES section - in symbolic modes,
2154 'o' stands for 'others' and 'u' stands for 'user' (i.e. the owner).
2156 2005-09-06 James Youngman <jay@gnu.org>
2158 * xargs/xargs.c: Typo in "IEEE" in a comment.
2160 2005-09-04 James Youngman <jay@gnu.org>
2162 * find/defs.h, find/find.c, find/parser.c, find/pred.c,
2163 Work around compilation failure with GCC 4 and AIX 5.1, in which
2164 open is #defined to open64
2166 2005-09-03 James Youngman <jay@gnu.org>
2168 * find/testsuite/find.gnu/quit.exp: Fixed Savannah bug#14390, by
2169 avoiding an accidental assumption in quit.exp that directory
2170 entries are returned by readir() in any particular order
2172 * NEWS, configure.in, doc/find.texi, xargs/testsuite/Makefile.am,
2173 xargs/testsuite/inputs/helloworld.xi,
2174 xargs/testsuite/xargs.gnu/delim-o.exp,
2175 xargs/testsuite/xargs.gnu/delim-o.xo, xargs/xargs.1,
2176 xargs/xargs.c: Added the --delimiter option to xargs, resolving
2177 Savannah support request sr #102914
2179 * ChangeLog, NEWS, configure.in: Released findutils-4.2.25
2182 2005-09-02 James Youngman <jay@gnu.org>
2184 * doc/find.texi, find/find.1:
2185 Improved documentation in response to Savannah bug #14376
2187 2005-09-01 James Youngman <jay@gnu.org>
2189 * po/ChangeLog, ChangeLog: Updated with recent changes.
2191 * locate/locate.c: Removed unused struct stringbuf.soffs.
2193 * doc/find.texi: Typo fix from Jim Meyering (trivial change)
2195 2005-09-01 Jim Meyering <jim@meyering.net>
2197 * locate/locate.c (struct stringbuf) [soffs]: Remove unused member.
2198 (locate): Remove initialization, too.
2200 2005-09-01 James Youngman <jay@gnu.org>
2202 * doc/find.texi: Typo fix from Jim Meyering (trivial change)
2204 2005-08-30 James Youngman <jay@gnu.org>
2206 * find/defs.h, find/find.c, find/fstype.c, find/pred.c:
2207 Attempted fix for compilation when AFS is #defined
2209 2005-08-13 James Youngman <jay@gnu.org>
2211 * find/find.1: Remind the user to quote the pattern argument to -iname.
2213 2005-08-12 James Youngman <jay@gnu.org>
2215 * NEWS: Corrected typo.
2217 2005-08-09 James Youngman <jay@gnu.org>
2219 * NEWS: Indicate that regexprops.texi is built on Cygin now that
2220 Savannah bug #14025 has been fixed.
2222 * lib/Makefile.am, lib/regexprops.c: Fixed compilation failure on
2223 Cygwin - Savannah Bug #14025 (tiny change, three lines), reported
2224 and fixed by Eric Blake
2226 * find/testsuite/Makefile.am,
2227 find/testsuite/find.posix/sv-bug-14070.exp,
2228 find/testsuite/find.posix/sv-bug-14070.xo: Added new test case for
2229 SourceForge bug #14070
2231 * find/testsuite/find.posix/sv-bug-14070.exp,
2232 find/testsuite/find.posix/sv-bug-14070.xo: New file.
2234 * find/defs.h, find/ftsfind.c, find/pred.c, find/util.c:
2235 Ensure we can still build with --enable-debug
2237 * find/testsuite/config/unix.exp,
2238 find/testsuite/find.gnu/execdir-one.exp,
2239 find/testsuite/find.gnu/execdir-root-only.exp,
2240 find/testsuite/find.gnu/sv-bug-12230.exp: If . is on $PATH,
2241 indicate that the -execdir tests cannot be carried out, as opposed
2242 to indicating that those tests fail
2244 2005-08-07 James Youngman <jay@gnu.org>
2246 * NEWS: Indicated that some test suite files have been renamed.
2248 * xargs/testsuite/Makefile.am, xargs/testsuite/inputs/eof.xi,
2249 xargs/testsuite/inputs/eof1.xi,
2250 xargs/testsuite/xargs.sysv/eof.exp,
2251 xargs/testsuite/xargs.sysv/eof.xo,
2252 xargs/testsuite/xargs.sysv/eof1.exp,
2253 xargs/testsuite/xargs.sysv/eof1.xo,
2254 xargs/testsuite/xargs.posix/lc_l2.exp,
2255 xargs/testsuite/xargs.posix/lc_l2.xo,
2256 xargs/testsuite/xargs.sysv/l2.exp,
2257 xargs/testsuite/xargs.sysv/l2.xo,
2258 xargs/testsuite/xargs.sysv/lc_l2.exp,
2259 xargs/testsuite/xargs.sysv/lc_l2.xo,
2260 xargs/testsuite/xargs.posix/L2.exp,
2261 xargs/testsuite/xargs.posix/l2.exp,
2262 xargs/testsuite/xargs.posix/L2.xo,
2263 xargs/testsuite/xargs.posix/l2.xo,
2264 xargs/testsuite/xargs.posix/uc_L2.exp,
2265 xargs/testsuite/xargs.posix/uc_L2.xo: Work around problems with
2266 CVS clients on case-insentitive operating systems
2268 * debian/Changelog: Removed Changelog file since changelog is the
2269 one we should be using and having both files upsets Cygwin
2270 systems which cannot tell the dirrerence between changelog and
2274 If DEBUG is defined, show the symbolic names fro fts_info values.
2276 * find/ftsfind.c: Added additional diagnostics.
2278 2005-08-01 James Youngman <jay@gnu.org>
2280 * ABOUT-NLS, INSTALL, Makefile.am, configure.in, depcomp,
2281 doc/texinfo.tex, install-sh, missing, mkinstalldirs: By adding the
2282 missing AM_GNU_GETTEXT_VERSION call, allowed autopoint to update
2283 those files of which it has updated copies.
2285 * po/Makevars.template, po/Makefile.in.in, po/findutils.pot:
2286 Using AM_GNU_GETTEXT_VERSION, allowed gettext to update the infrastructure
2288 * po/Rules-quot, po/boldquot.sed, po/en@boldquot.header, po/en@quot.header, po/insert-header.sin, po/quot.sed:
2289 Files added by autopoint now that we are using AM_GNU_GETTEXT_VERSION
2291 * find/testsuite/Makefile.am: Added find.gnu./perm-slash.{exp,xo}.
2293 2005-07-31 James Youngman <jay@gnu.org>
2295 * find/testsuite/excuses.txt: We now have tests for -perm.
2297 * NEWS, configure.in, find/parser.c,
2298 find/testsuite/find.gnu/perm-slash.exp,
2299 find/testsuite/find.gnu/perm-slash.xo: Fixed bug which caused find
2300 -perm /440 to be treated the same as find -perm 440
2302 * find/testsuite/Makefile.am:
2303 Generic tests for -perm -NNN and -perm NNN
2305 * find/testsuite/excuses.txt: New file - list of test cases that
2306 still need to be written, along with excuses why they haven't been
2309 * find/testsuite/find.posix/perm-vanilla.exp,
2310 find/testsuite/find.posix/perm-vanilla.xo: Generic tests for -perm
2313 * find/testsuite/find.gnu/inum.exp:
2314 Ensure that the test would fail if -inum just always returned true
2316 * find/testsuite/Makefile.am, find/testsuite/find.gnu/ilname.exp,
2317 find/testsuite/find.gnu/ilname.xo,
2318 find/testsuite/find.gnu/inum.exp, find/testsuite/find.gnu/inum.xo,
2319 find/testsuite/find.gnu/lname.exp,
2320 find/testsuite/find.gnu/lname.xo,
2321 find/testsuite/find.gnu/xtype.exp,
2322 find/testsuite/find.gnu/xtype.xo,
2323 find/testsuite/find.posix/links.exp,
2324 find/testsuite/find.posix/links.xo: New test cases for -ilname,
2325 -inum, -lname, -xtype
2327 * find/testsuite/Makefile.am, find/testsuite/find.gnu/delete.exp,
2328 find/testsuite/find.gnu/delete.xo,
2329 find/testsuite/find.gnu/iregex1.exp,
2330 find/testsuite/find.gnu/iregex1.xo,
2331 find/testsuite/find.gnu/regex1.exp,
2332 find/testsuite/find.gnu/regex1.xo,
2333 find/testsuite/find.gnu/regex2.exp,
2334 find/testsuite/find.gnu/regex2.xo,
2335 find/testsuite/find.gnu/samefile-copy.exp,
2336 find/testsuite/find.gnu/samefile-copy.xo,
2337 find/testsuite/find.gnu/samefile-link.exp,
2338 find/testsuite/find.gnu/samefile-link.xo,
2339 find/testsuite/find.gnu/samefile-same.exp,
2340 find/testsuite/find.gnu/samefile-same.xo,
2341 find/testsuite/find.gnu/samefile-symlink.exp,
2342 find/testsuite/find.gnu/samefile-symlink.xo: Further test cases
2344 * find/find.1: Indicate that -delete implies -depth (find.texi
2345 already mentioned this).
2347 * find/testsuite/Makefile.am:
2348 Brought the list of .exp and .xo files in Makefile.am into sync with
2349 the actual contents of the CVS repository.
2351 * find/testsuite/Makefile.am, find/testsuite/find.gnu/depth-d.exp,
2352 find/testsuite/find.gnu/depth-d.xo,
2353 find/testsuite/find.gnu/empty.exp,
2354 find/testsuite/find.gnu/empty.xo,
2355 find/testsuite/find.gnu/execdir-one.exp,
2356 find/testsuite/find.gnu/execdir-one.xo,
2357 find/testsuite/find.gnu/false.exp,
2358 find/testsuite/find.gnu/false.xo,
2359 find/testsuite/find.gnu/follow-basic.exp,
2360 find/testsuite/find.gnu/follow-basic.xo,
2361 find/testsuite/find.gnu/gnu-or.exp,
2362 find/testsuite/find.gnu/gnu-or.xo,
2363 find/testsuite/find.gnu/gnuand.exp,
2364 find/testsuite/find.gnu/gnuand.xo,
2365 find/testsuite/find.gnu/gnunot.exp,
2366 find/testsuite/find.gnu/gnunot.xo,
2367 find/testsuite/find.gnu/iname.exp,
2368 find/testsuite/find.gnu/iname.xo,
2369 find/testsuite/find.gnu/ipath.exp,
2370 find/testsuite/find.gnu/ipath.xo,
2371 find/testsuite/find.gnu/iwholename.exp,
2372 find/testsuite/find.gnu/iwholename.xo,
2373 find/testsuite/find.gnu/path.exp, find/testsuite/find.gnu/path.xo,
2374 find/testsuite/find.gnu/print0.exp,
2375 find/testsuite/find.gnu/print0.xo,
2376 find/testsuite/find.gnu/quit.exp, find/testsuite/find.gnu/quit.xo,
2377 find/testsuite/find.gnu/true.exp, find/testsuite/find.gnu/true.xo,
2378 find/testsuite/find.gnu/wholename.exp,
2379 find/testsuite/find.gnu/wholename.xo,
2380 find/testsuite/find.posix/and.exp,
2381 find/testsuite/find.posix/and.xo,
2382 find/testsuite/find.posix/exec-one.exp,
2383 find/testsuite/find.posix/exec-one.xo,
2384 find/testsuite/find.posix/grouping.exp,
2385 find/testsuite/find.posix/grouping.xo,
2386 find/testsuite/find.posix/name.exp,
2387 find/testsuite/find.posix/name.xo,
2388 find/testsuite/find.posix/posixnot.exp,
2389 find/testsuite/find.posix/posixnot.xo,
2390 find/testsuite/find.posix/prune.exp,
2391 find/testsuite/find.posix/prune.xo: Added new test cases for many
2392 of the actions and tests of find
2394 * find/find.c (default_prints):
2395 not a static function, so do not declare it as one.
2397 * m4/withfts.m4: Fixed underquoted definition of FIND_WITH_FTS.
2398 [this change is currently on a branch only]
2400 2005-07-30 James Youngman <jay@gnu.org>
2402 * find/finddata.c, find/ftsfind.c, find/parser.c, find/pred.c,
2403 find/util.c, m4/Makefile.am, m4/withfts.m4: Initial attempt to
2404 convert find to use gnulib's fts()
2405 [this change is currently on a branch only]
2407 * find/finddata.c, find/ftsfind.c, m4/withfts.m4: New file.
2408 [this change is currently on a branch only]
2410 * NEWS, configure.in, find/Makefile.am, find/defs.h, find/find.c,
2411 import-gnulib.sh: Initial attempt to convert find to use gnulib's
2412 fts() [this change is currently on a branch only]
2414 2005-07-29 James Youngman <jay@gnu.org>
2416 * NEWS, configure.in
2417 Prepared for the release of findutils-4.2.24
2419 * ChangeLog: Updated with recent changes.
2421 * NEWS, find/find.1, doc/find.texi:
2422 Indicate that -ok and -okdir redirect stdin from /dev/null.
2424 * NEWS: Explain the directory link count change more throroughly.
2426 * NEWS: Fixed bug #13973.
2428 * find/pred.c (pred_fprintf): Fix Savannah bug #13973: Modify the
2429 handling of -printf %Y so that it no longer modifies stat_buf
2431 * find/testsuite/find.gnu/printf-symlink.exp,
2432 find/testsuite/find.gnu/printf-symlink.xo: Detect Savannah bug
2433 #13973: pollution of stat_buf by the %Y directive (trivial change
2434 from Andreas Metzler)
2436 * INSTALL, depcomp, doc/texinfo.tex, install-sh, missing, mkinstalldirs:
2437 Updated auxilliary files from the automake-1.9 distribution
2440 Introduce new Automake conditional, CROSS_COMPILING, true when we are corss compiling
2443 If we decline to follow a symbolic link due to the safety check, issue a more self-explanatory warning message
2445 * lib/Makefile.am: Don't build regexprops if we are cross compiling
2448 Depend on the regex.h file rather than the 'regexprops' binary,
2449 because the header file will always exist even if we are doing "make
2450 dist". Otherwise "make distcheck" fails because it tries to rebuild
2451 find.info while the source-directory is read-only.
2453 2005-07-28 James Youngman <jay@gnu.org>
2456 Say "other users" rather than "rest of the world" when talking about
2457 Unix permissions. Fixes Savannah bug #4246.
2459 2005-07-27 James Youngman <jay@gnu.org>
2461 * xargs/testsuite/Makefile.am: Added new test case 'childfail.exp'.
2464 Updated the description of the safe-dir-change operation to reflect
2465 what find now does on systems that lack O_NOFOLLOW.
2467 * NEWS, find/parser.c: Indicate in the output of find --version if
2468 the leaf optimisation is enabled or not
2470 * find/find.c: Fixed typo.
2472 * find/find.c: If the link count of a directory starts off less
2473 than two, disable the leaf optimisation for this directory.
2475 2005-07-26 James Youngman <jay@gnu.org>
2477 * lib/regexprops.c: Further small corrections from Karl.
2480 Reordered the sections in the manual to put the "Common Tasks" and
2481 "Worked Examples" chapters together.
2483 * configure.in, find/find.c: Allow the leaf optimisation to be
2484 disabled by default with the configure option
2485 --disable-leaf-optimisation
2487 * find/find.c: Removed old code for antuqie version of savedir().
2489 * lib/regextype.c: Put the syntaxes in alphabetical order.
2491 * lib/regexprops.c: Karl made some more readability suggestions.
2493 2005-07-24 James Youngman <jay@gnu.org>
2495 * doc/Makefile.am: If the regexprops program has changed we should
2496 re-run it, since it will probably now produce different output
2499 Allow the caller to detect if one regex type is identical to another.
2502 Define the preprocessor macro FINDUTILS for that code int he lib/
2503 directory can be slightly more reusable.
2506 Allow the caller to detect if one regex type is identical to another.
2509 Made Texinfo style corrections suggested by Karl Berry.
2511 2005-07-22 James Youngman <jay@gnu.org>
2513 * xargs/testsuite/xargs.posix/childfail.exp, xargs/xargs.c: Fix
2514 Savannah bug #13878, in which xargs deals incorrectly with child
2515 failure, returning 0 when it should return 123
2517 2005-07-17 James Youngman <jay@gnu.org>
2519 * find/find.1: (tiny change) Corrections by Greg Wooledge
2521 2005-07-16 James Youngman <jay@gnu.org>
2523 * doc/find.texi: Updates following comments by Dave Gilbert.
2525 * NEWS: Corrected a typo.
2528 Added in the example about updating an aggregate timestamp file.
2530 2005-07-15 James Youngman <jay@gnu.org>
2532 * po/da.po: Updated Danish translation from translation project
2534 2005-07-14 James Youngman <jay@gnu.org>
2536 * NEWS, doc/Makefile.am, doc/find.texi, lib/Makefile.am,
2537 lib/regexprops.c, lib/regextype.c, lib/regextype.h: Added
2538 --regextype and -regextype options to locate and find
2539 respectively, and documented these
2541 * doc/find.texi: We use GNU Emacs regexps by default now.
2544 We require GNU sort in order for locate to handle newlines correctly,
2547 2005-07-10 James Youngman <jay@gnu.org>
2550 Applied several documentation improvement patches from Aaron Hawley
2552 * ChangeLog, NEWS: Updated with recent changes.
2554 * NEWS: Recent gnulib changed have fixed -iregex
2556 * doc/find.texi, xargs/xargs.1:
2557 Tiny patch from Andreas Metzler: xargs -I is like xargs -i, but the latter is deprecated
2559 2005-07-06 James Youngman <jay@gnu.org>
2561 * find/defs.h, find/find.c, find/parser.c, find/pred.c:
2562 Fixed Savannah bug #13650; programs run by -exec cannot read stdin
2564 2005-07-04 James Youngman <jay@gnu.org>
2566 * NEWS: *** empty log message ***
2569 Added a "Worked Examples" section. It currently only contains a
2570 (long) example about deleting files.
2572 * .cvsignore: Some extra stuff to ignore.
2574 2005-07-03 James Youngman <jay@gnu.org>
2576 * find/Makefile.am: Don't need regexprops.c really...
2578 * lib/regextype.c, lib/regextype.h:
2579 New files for selecting regex type based on a keyword
2581 * locate/locate.1: Documented the fact that we now use Emacs-style
2582 regexps, not POSIX EREs, for compatibility with find -regex.
2584 * lib/Makefile.am, locate/locate.c, doc/find.texi,
2585 find/Makefile.am, find/defs.h, find/find.1, find/find.c,
2586 find/parser.c: Fixed Savannah bug #13495: find now uses
2587 Emacs-style regexps by default
2589 2005-07-02 James Youngman <jay@gnu.org>
2591 * configure.in, find/defs.h, find/fstype.c, find/parser.c,
2592 intl/dcigettext.c, lib/buildcmd.c, lib/listfile.c,
2593 lib/savedirinfo.c, locate/locate.c, xargs/xargs.c: Assume unistd.h
2594 is present - avoid using HAVE_UNISTD_H
2596 2005-07-01 Jim Meyering <jim@meyering.net>
2598 With `-fprint F' or `-fprintf F', don't write diagnostics
2599 to F when stderr is closed.
2601 * find/parser.c: Include "stdio-safer.h".
2602 (open_output_file): Use fopen_safer, not fopen.
2603 * import-gnulib.sh (findutils_modules): Add stdio-safer.
2605 2005-07-01 James Youngman <jay@gnu.org>
2608 Aaron pointed out a potentially-confusing sentence. I fixed it.
2610 * find/defs.h, find/find.1, find/find.c, find/parser.c,
2611 find/pred.c, find/util.c: Allow consistency-checking of the
2612 predicates, checking for example that actions all have side
2615 2005-06-29 James Youngman <jay@gnu.org>
2617 * doc/find.texi: Applied patch from Aaron Hawley (Savannah patch
2618 #3751: Typos and small suggestions to find.texi)
2620 2005-06-27 James Youngman <jay@gnu.org>
2622 * ChangeLog, locate/locate.c: Applied patch from Bas Van Gompel to
2623 move match counting into a (new) visitor function
2625 * NEWS, configure.in: No longer 4.2.23, as we're moving on now
2627 2005-06-24 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
2629 * locate/locate.c (visit_count, visit_limit): New functions.
2630 (locate): Use visit_limit or visit_count. Simplify main loop.
2631 (main) Bail out early when limit is reached.
2633 2005-06-20 James Youngman <jay@gnu.org>
2636 Removed some code which had already been disabled via the preprocessor.
2638 2005-06-19 Dmitry V. Levin <ldv@altlinux.org>
2640 * lib/savedirinfo.c: Fix two compilation warnings (which would
2641 prevent compilation if "-Wall -Werror" is in effect).
2643 2005-06-19 James Youngman <jay@gnu.org>
2645 * ChangeLog: Indicate that we made (are making) a release.
2647 * ChangeLog, NEWS, configure.in: Preparing to release 4.2.23
2649 * doc/find.texi: Fixed Texinfo syntax error in previous change
2651 * doc/find.texi, xargs/xargs.1:
2652 Document the fact that the -i and -L options are currently
2653 incompatible (Savannah bug 13041).
2655 * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
2656 reject trailing slashes in updatedb's --prunepaths, bacsue these
2657 will never be matched
2659 * NEWS: Released findutils-4.2.23.
2661 * doc/find.texi, xargs/xargs.1:
2662 Document the fact that the -i and -L options are currently
2663 incompatible (Savannah bug 13041).
2665 * locate/updatedb.1, locate/updatedb.sh: Fix Savannah bug 13411 -
2666 reject trailing slashes in updatedb's --prunepaths, because these
2667 will never be matched.
2669 2005-06-18 Martin Buchholz (trivial patch applied by James Youngman)
2671 * find/defs.h, find/find.c, find/parser.c, doc/find.texi: Fix
2672 typos/spelling errors (mostly in source code comments).
2674 2005-06-18 Dmitry V. Levin <ldv@altlinux.org>
2676 Additional documentation tweaks for -execdir/-okdir actions.
2677 * find/parser.c (parse_help): Mention -execdir and -ordir options.
2678 * doc/find.texi, find/find.1: Additionally document new options.
2680 2005-06-12 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
2682 * locate/locate.c: Implement --all (-A).
2684 * NEWS, doc/find.texi, locate/locate.1: Document locate --all (-A)
2686 2005-06-12 James Youngman <jay@gnu.org>
2688 * find/find.c, NEWS:
2689 Savannah bug #13381 (Debian bug 313081): if we have O_NOFOLLOW,
2690 safely_chdir() does not need to call stat(). However, process_dir()
2691 used to rely on using that stat information. To work around this
2692 problem, there is now an output parameter in safely_chdir() which
2693 indicates if the stat buffer is valid.
2694 This bug has possible security implications.
2696 * find/find.1, doc/find.texi:
2697 Applied patch from Andreas Metzler, improving the wording for the
2698 documentation of the %k and %b format directives. This patch does
2699 not require a copyright assignment as it consists of several
2700 copies of the same small wording change.
2702 2005-06-11 James Youngman <jay@gnu.org>
2704 * find/find.1: Corrected spelling error 'writeable' to 'writable'.
2706 * find/find.1, locate/locate.1:
2707 Fixed Savannah bug #13363, typos in manpages (trivial change)
2709 2005-06-10 James Youngman <jay@gnu.org>
2711 * find/find.c, lib/savedirinfo.c, lib/savedirinfo.h: Switch to a
2712 new scheme for saving directory entry data which is extensible to
2713 allow additional data to be saved.
2715 2005-06-09 James Youngman <jay@gnu.org>
2717 * locate/testsuite/config/unix.exp:
2718 Use the new normalize_dir procedure throughout.
2720 * locate/testsuite/config/unix.exp: Move the normalisation into a
2721 procedure. Don't rely on the "file normalize" command being
2722 available (it's new in Tcl 8.4).
2724 2005-06-08 James Youngman <jay@gnu.org>
2726 * ChangeLog, NEWS, configure.in: Updated for recent changes
2729 Explain that you should put the argument of -name in quotes.
2732 Added a new "NON-BUGS" section pointing out things that look like bugs
2733 but are caused by mistakes or misunderstandings.
2735 * doc/find.texi, locate/locate.1: Applied Bas van Gompel's patch
2736 which allows the database to be read from stdin.
2739 Read the database in by using the "visitor" pattern. Modified file
2740 header comment to indicate that we no longer use the efficient
2741 algorith described in ;login:. Emit an error message if the
2742 LOCATE_PATH variable implies that we should read stdin twice.
2743 Most of this code is from Bas van Gompel.
2745 * AUTHORS: Credit Bas van Gompel for his work on locate.
2747 * lib/printquoted.h: Appled patch from Bas - fixing compiler warning.
2749 2005-06-07 James Youngman <jay@gnu.org>
2751 * ChangeLog, NEWS, configure.in: Updates prior to release
2753 * config.rpath: Added file required for 'make dist'
2755 * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
2756 po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
2757 po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
2758 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
2759 po/pt.po, po/pt_BR.po, po/ro.po, po/ru.po, po/rw.po, po/sk.po,
2760 po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po, po/zh_CN.po:
2761 updated the po files for release
2763 * xargs/testsuite/Makefile.am:
2764 Added in all the test files from Dmitry V. Levin.
2766 2005-06-08 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
2768 * NEWS, locate/locate.1, doc/find.texi: Document usage of `-'
2769 to refer to stdin in database-path for locate.
2770 * locate/locate.c: Change prototype for visitors and processors
2771 throughout. Move reading the database and generating base_name
2772 into visitors. Allow `-' to refer to stdin in database-path.
2774 * lib/printquoted.h: Include stdio.h.
2776 2005-06-07 James Youngman <jay@gnu.org>
2778 * COPYING, debian/copyright, depcomp, doc/texinfo.tex,
2779 find/defs.h, find/find.c, find/fstype.c, find/parser.c,
2780 find/pred.c, find/testsuite/config/unix.exp, find/tree.c,
2781 find/util.c, import-gnulib.sh, intl/Makefile.in,
2782 intl/bindtextdom.c, intl/config.charset, intl/dcgettext.c,
2783 intl/dcigettext.c, intl/dcngettext.c, intl/dgettext.c,
2784 intl/dngettext.c, intl/explodename.c, intl/finddomain.c,
2785 intl/gettext.c, intl/gettext.h, intl/gettextP.h,
2786 intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
2787 intl/libgettext.h, intl/libgnuintl.h, intl/loadinfo.h,
2788 intl/loadmsgcat.c, intl/localcharset.c, intl/locale.alias,
2789 intl/localealias.c, intl/ngettext.c, intl/plural.c, intl/plural.y,
2790 intl/ref-add.sin, intl/ref-del.sin, intl/textdomain.c,
2791 lib/buildcmd.c, lib/buildcmd.h, lib/extendbuf.c, lib/extendbuf.h,
2792 lib/forcefindlib.c, lib/listfile.c, lib/listfile.h,
2793 lib/modetype.h, lib/nextelem.c, lib/nextelem.h, lib/printquoted.c,
2794 lib/printquoted.h, lib/qmark.c, lib/savedirinfo.c,
2795 lib/savedirinfo.h, lib/strspn.c, lib/wait.h, lib/waitpid.c,
2796 locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c,
2797 locate/locatedb.h, locate/testsuite/config/unix.exp,
2798 locate/updatedb.sh, missing, po/fetch-po-files,
2799 xargs/testsuite/config/unix.exp, xargs/xargs.c:
2800 Updated the FSF's postal address
2802 * ChangeLog: Corrected Bas's email address.
2804 * locate/locate.c: Updated copyright years.
2806 2005-06-07 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
2808 * locate/locate.c: Fold case once, only when needed.
2810 2005-06-07 James Youngman <jay@gnu.org>
2812 * NEWS: Updated with recent changes.
2814 * mdate-sh: Use the mdate-sh from automake
2816 * find/parser.c, find/pred.c, find/tree.c, find/util.c,
2817 lib/Makefile.am, lib/forcefindlib.c, lib/listfile.c,
2818 lib/listfile.h, locate/code.c, locate/locate.c, find/defs.h,
2819 find/find.c: Fix Savannah bug #13324: Fix compiler warnings for
2823 Fixed Savannah bug #13325: Quoting of output filenames in locate
2827 Fixed Savannah bug #13319: C9X-ism in parser.c (declaration after
2830 * find/pred.c, lib/Makefile.am, lib/listfile.c, lib/nextelem.c,
2831 lib/printquoted.c, lib/printquoted.h, lib/qmark.c, NEWS,
2832 doc/find.texi, find/defs.h, find/find.1, find/parser.c: Fixed
2833 Savannah bug #13303, find should filter out non-printable
2834 characters if outputting to tty
2836 2005-05-30 James Youngman <jay@gnu.org>
2838 * locate/locate.c: rename new_locate() to locate() since
2839 old_locate() has gone the way of the dodo.
2841 2005-05-29 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
2843 Add a ``--print'' (``-p'') option. (to cancel side-effects of -c/-S)
2844 Allow ``--statistics'' in combination with non-options.
2845 * doc/find.texi: Add documentation for locate --print (-p), and the
2846 use of non-options with --statistics.
2847 * locate/locate.1: ditto.
2848 * locate/locate.c: Read each database only once.
2850 2005-05-23 Paul Eggert <eggert@cs.ucla.edu>
2852 Adjust to recent gnulib changes.
2853 * import-gnulib.sh: Get config.rpath from gnulib/build-aux,
2855 * find/parser.c (parse_perm): Ignore umask when parsing
2856 symbolic permissions. Adjust to new modechange API.
2858 2005-05-16 James Youngman <jay@gnu.org>
2860 * find/find.c, find/parser.c, find/pred.c, find/tree.c:
2861 Trivial change: don't use i18n support for debug-only messages
2863 * ChangeLog: Added ChangeLog entry crediting Dmitry
2865 2005-05-09 James Youngman <jay@gnu.org>
2868 The previous change fixed Savannah bug #12999. This change doesn't do
2869 anything, it's only intended to be a place to record the Savannah bug
2870 ID we've just fixed.
2873 Oops. Initialise the variable which indicates which regex syntax to
2874 use. We use POSIX basic regular expressions.
2877 Suggestion by Ed Avis: point out that "-name foo/bar" will almost
2878 always evaluate to false. Suggest to the user what alternatives they
2881 2005-05-02 James Youngman <jay@gnu.org>
2884 Added Dimitry (his new test suite contribution required a copyright
2887 2005-05-03 Dmitry V. Levin
2889 * Added xargs test suite tests by Dmitry V. Levin, together with
2890 bugfixes which ensure that the tests pass.
2892 2005-04-18 James Youngman <jay@gnu.org>
2894 * Added test suite tests for Bas van Gompel's changes.
2896 2005-04-18 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
2898 * doc/find.texi: Document locate --non-existing (-E).
2899 * locate/locate.1: Ditto.
2900 * locate/locate.c: Implement --non-existing (-E).
2902 2005-04-04 James Youngman <jay@gnu.org>
2904 * configure.in, import-gnulib.sh:
2905 We no longer need gnulib/m4/Makefile.am
2907 * po/vi.po: Updated Vietnamese translation
2909 * locate/updatedb.sh:
2910 Savannah bug #12491: Only use the "-s" option to "su" if it is
2913 2005-04-01 James Youngman <jay@gnu.org>
2915 * locate/locate.1, locate/updatedb.1, xargs/xargs.1: Trivial
2916 change from A Costa <agcosta@gis.net>, fixing typos in manual
2917 pages for xargs, locate and updatedb; fixes Savannah bug #12500,
2920 2005-03-22 James Youngman <jay@gnu.org>
2922 * import-gnulib.sh: Include the new gnulib module stat-macros
2925 CVS code is (will shortly be) no longer identical to the 4.2.20 release
2927 2005-03-17 James Youngman <jay@gnu.org>
2929 * configure.in: Preprare for release of 4.2.20.
2931 * NEWS: Updated prior to release of 4.2.20.
2933 * ChangeLog: Updated with recent changes.
2935 * THANKS: Thank Bas van Gompel, but only once.
2937 * THANKS: Thank Bas van Gompel and Aaron S. Hawley.
2939 * po/vi.po: Updated Vietnamese PO file
2941 2005-03-10 James Youngman <jay@gnu.org>
2943 * po/nl.po: Updated Dutch PO file
2945 2005-03-08 Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>
2947 * import-gnulib.sh: Re-enable creation of gnulib/m4/Makefile.am.
2949 2005-03-07 James Youngman <jay@gnu.org>
2951 * Released findutils-4.2.19.
2953 * find/testsuite/find.posix/sizes.exp:
2954 Use 2>/dev/null instead of 2>&1, because Tcl understands the former
2957 * find/testsuite/Makefile.am: Also distribute sv-bug-12181.xo.
2959 * find/testsuite/Makefile.am: Distribute sv-bug-12181.
2961 * find/testsuite/Makefile.am: Distribute sv-bug-12230.
2963 * NEWS: Updated with new news.
2965 * ChangeLog: Brought up to date.
2967 * lib/buildcmd.c, find/testsuite/find.gnu/sv-bug-12230.exp: Fixed
2968 Savannah bug #12230, in which '-exec echo == {} +' is always run,
2969 even if there were no matched files.
2971 2005-03-06 James Youngman <jay@gnu.org>
2973 * ChangeLog: Added latest changes.
2975 * po/pt.po, configure.in: Added Portuguese translation
2977 2005-03-04 James Youngman <jay@gnu.org>
2979 * configure.in: Modernized the way we call AC_INIT and
2982 * locate/locate.c, find/pred.c, find/find.c:
2983 Eliminated some compiler warnings
2985 * find/pred.c: Clarified the meaning of a comment.
2987 * find/testsuite/Makefile.am: Added sizes.exp, sizes.xo.
2989 * find/testsuite/find.posix/sizes.xo,
2990 find/testsuite/find.posix/sizes.exp: Added tests for -size
2993 2005-03-03 James Youngman <jay@gnu.org>
2996 safely_chdir_lstat(): if we didn't end up in the right place, and then
2997 fchdir() fails, we can't return to the directory we started in.
2998 Therefore, issue a fatal error message and exit.
3000 2005-03-01 James Youngman <jay@gnu.org>
3002 * find/find.c, find/testsuite/find.posix/sv-bug-12181.exp,
3003 find/testsuite/find.posix/sv-bug-12181.xo: Fixed SourceForge bug
3004 12181 (find -H symlink-to-dir reports 'Too many Symbolic links')
3005 and bug 12044 (find still hangs on dead NFS filesystems on
3008 2005-02-28 James Youngman <jay@gnu.org>
3010 * doc/find.texi: Typo: O_NOFOLLOW, not O_FOLLOW
3013 Suggestion from Martin Buchholz; unset CDPATH to prevent "cd" echoing
3016 2005-02-27 James Youngman <jay@gnu.org>
3018 * README: Indicate how the reader can verify the release.
3020 2005-02-26 James Youngman <jay@gnu.org>
3022 * po/sk.po, po/sl.po, po/sr.po, po/sv.po, po/tr.po, po/vi.po,
3023 po/zh_CN.po, po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po,
3024 po/eo.po, po/es.po, po/et.po, po/fi.po, po/findutils.pot,
3025 po/fr.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
3026 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
3027 po/pt_BR.po, po/ro.po, po/ru.po: Added new Vietnamese translation
3029 * configure.in: Added new Vietnamese translation.
3031 2005-02-25 James Youngman <jay@gnu.org>
3033 * po/ga.po: Updated Irish po file
3035 2005-02-23 James Youngman <jay@gnu.org>
3037 * Makefile.am: Fix Savannah bug #12064 - 'make distclean' deletes
3038 regex.c but should not.
3040 * find/testsuite/Makefile.am,
3041 find/testsuite/find.gnu/printf-h.exp,
3042 find/testsuite/find.gnu/printf-h.xo: Added test case for Savannah
3043 bug #12085 (-printf %h).
3045 * NEWS, doc/find.texi, find/find.1, find/pred.c:
3046 %h now expands to '.' instead of nothing.
3048 2005-02-22 James Youngman <jay@gnu.org>
3051 Fixed Savannah bug #12099 (misinterpretation of system versions
3052 leading to possible incorrect disabling of O_NOFOLLOW). Reported by
3056 For the %h format, don't bail out early as the format might contain
3059 2005-02-21 James Youngman <jay@gnu.org>
3061 * find/find.c: Fixed accidental C99 dependency.
3063 2005-02-20 James Youngman <jay@gnu.org>
3065 * po/be.po, po/ca.po, po/da.po, po/de.po, po/el.po, po/eo.po,
3066 po/es.po, po/et.po, po/fi.po, po/findutils.pot, po/fr.po,
3067 po/ga.po, po/gl.po, po/hr.po, po/hu.po, po/id.po, po/it.po,
3068 po/ja.po, po/ko.po, po/lg.po, po/ms.po, po/nl.po, po/pl.po,
3069 po/pt_BR.po, po/ro.po, po/ru.po, po/sk.po, po/sl.po, po/sr.po,
3070 po/sv.po, po/tr.po, po/zh_CN.po: Updated italian translation
3072 * doc/find.texi: Corrected a typo.
3075 Read the mounted device list afer parsing the command line, so that
3076 for example "find --version" still works (in response to Savannah bug
3079 * configure.in: We've moved on from findutils-4.2.18.
3081 2005-02-19 James Youngman <jay@gnu.org>
3083 * NEWS: Corrected the summary of the "find -depth" bug.
3085 2005-02-16 James Youngman <jay@gnu.org>
3087 * NEWS, configure.in: Prepared for release of 4.2.18.
3089 * ChangeLog: Updated prior to release of 4.2.18.
3091 * find/testsuite/Makefile.am:
3092 Distribute the test cases for the recent "find -depth" bug.
3094 * find/testsuite/find.posix/depth1.exp, find/testsuite/find.posix/depth1.xo:
3095 Added test case for find -depth bug reported by Joseph S. Myers
3098 If -depth is in effect, processing of the subdirectories invalidates
3099 the information in 'state'. Therefore once we get around to
3100 processing the predicates, restore the information that we keep in
3101 'state' and in 'stat_buf'.
3103 2005-02-15 James Youngman <jay@gnu.org>
3105 * ChangeLog: Updated with recent changes
3108 Emphasise that -L causes find to recurse into subdirectories pointed
3109 to by symbolic links.
3112 Patch to find.1 from Aaron Hawley <Aaron.Hawley@uvm.edu>:
3114 * Notes about -H actually apply to -L.
3115 * Said paragraph is duplicated two paragraphs later.
3116 * Typos: nno, ibmue, surrpounding
3118 2005-02-15 Aaron Hawley <Aaron.Hawley@uvm.edu>
3120 * find/find.1: Notes about -H actually apply to -L. Said
3121 paragraph is duplicated two paragraphs later. Also typos: nno,
3124 2005-02-13 James Youngman <jay@gnu.org>
3126 * find/find.1: Miscellaneous small clarifications and improvements.
3128 * doc/find.texi: Added Info nodes and menus under "Changing the
3129 Current Working Directory" so that it doesn't generate such a huge
3132 * find/find.c: Parenthesise #if defined(...).
3134 2005-02-13 Dmitry V. Levin <ldv@altlinux.org>
3136 * find/find.c: remove test code snippet (time(NULL) was used to
3137 place a marker for spotting with strace(), but was not actually
3140 * find/find.c (safely_chdir_nofollow): must not fall back on
3141 safely_chdir_lstat() because that will expose it to race condition
3142 exploits, making it pointless.
3144 * find/find.c (safely_chdir_lstat): Move
3145 complete_pending_execdirs() up into safely_chdir(), because we
3146 need to do that in either case.
3148 2005-02-12 James Youngman <jay@gnu.org>
3150 * configure.in, doc/find.texi, find/defs.h, find/find.c,
3151 find/parser.c: Fix for Savannah bug #11879, that
3152 init_mounted_dev_list() causes find to hang on systems which are
3153 clients to dead NFS servers
3155 2005-02-10 James Youngman <jay@gnu.org>
3157 * doc/find.texi: Talk about the problem where find will not work
3158 if you have a filesystem mounted from an unresponsive NFS server.
3160 2005-02-09 James Youngman <jay@gnu.org>
3162 * find/find.1: Indicate that $TZ affects from printf-format
3163 results, and add extra cross-references in the SEE ALSO section.
3165 2005-02-08 James Youngman <jay@gnu.org>
3167 * xargs/testsuite/Makefile.am: Distribute the .xe files also.
3169 * Makefile.am: Check that we have the right number of .xe files in
3170 the distribution also.
3172 * ChangeLog, NEWS, configure.in
3173 Preparing to release findutils-4.2.17
3175 2005-02-07 James Youngman <jay@gnu.org>
3177 * find/testsuite/config/unix.exp: Re-sort the .xo file using the
3178 calling user's locale, because our 'pre-sorted' .so output file
3179 may not be sorted with the same collating order as 'sort' used to
3180 order the output of "find. Bug spotted by Vin Shelton and Dimitry
3183 * find/testsuite/Makefile.am:
3184 New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
3186 * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
3187 find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
3188 Fix for starting point /foo/bar/baz where bar is a symlink but baz
3189 is not - we should chdir into bar there even if it is a symbolic
3192 2005-02-07 James Youngman <jay@gnu.org>
3194 * find/testsuite/Makefile.am:
3195 New test, find/testsuite/find.gnu/follow-arg-parent-symlink.exp.
3197 * find/testsuite/find.gnu/follow-arg-parent-symlink.exp,
3198 find/testsuite/find.gnu/follow-arg-parent-symlink.xo, find/find.c:
3199 Fix for starting point /foo/bar/baz where bar is a symlink but baz
3200 is not - we should chdir into bar there even if it is a symbolic
3203 2005-02-06 James Youngman <jay@gnu.org>
3206 -size: Clarification - -size gives a result consistent with 'wc -c'
3209 * Makefile.am, find/testsuite/Makefile.am,
3210 find/testsuite/find.gnu/execdir-root-only.exp,
3211 find/testsuite/find.gnu/execdir-root-only.xo,
3212 locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
3213 dist-hook: Ensure that we distribute all the .po files and all the
3216 * po/pl.po: Updated Polish translation from TP website
3218 2005-02-05 Dmitry V. Levin <ldv@altlinux.org>
3220 * find/parser.c, find/pred.c: Additional tweaks for
3221 -execdir/-okdir actions.
3223 * find/parser.c (new_insert_exec_ok): Disable ignore_readdir_race
3224 for -execdir/-okdir.
3226 * find/pred.c (pred_execdir, pred_okdir): Use state.rel_pathname
3227 instead of basename(pathname). Do not add "./" prefix for
3230 * find/find.c (process_top_path): Treat "/" similarly to ".".
3232 * xargs/testsuite/xargs.posix/savannah-11865.exp,
3233 xargs/testsuite/xargs.posix/savannah-11865.xo, xargs/xargs.c:
3234 Fixed Savannah bug #11866 (not resetting number of used chars in
3235 the command buffer) - reported by Dimitry V. Levin
3237 2005-02-05 James Youngman <jay@gnu.org>
3240 Added thanks for Dimitry - has produced many patches, bugfixes and
3244 Fixed Savannah bug #11866: typo in pred_okdir() renders it useless
3247 Savannah bug #11861: undefined symbol 'basename' on IRIX 5.3
3249 * NEWS, configure.in, po/be.po, po/ca.po, po/el.po, po/eo.po,
3250 po/fi.po, po/ga.po, po/hr.po, po/hu.po, po/ja.po, po/lg.po,
3251 po/ms.po, po/ro.po, po/sl.po, po/sr.po, po/zh_CN.po: Added new
3254 * ChangeLog: Updated from CVS prior to release of 4.2.16.
3256 * po/ChangeLog: Updated from CVS.
3258 * NEWS, configure.in: Preparing to release 4.2.16
3260 * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
3261 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
3262 po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sl.po, po/sv.po,
3263 po/tr.po: make update-po prior to 'make distcheck'
3265 * po/fetch-po-files: This is the first version we actually used.
3267 * find/find.c: process_top_path() fixed compilation warning.
3269 * find/find.c: process_top_path(): avoid processing this item if
3270 we can't chdir to the basename of the named file.
3272 * lib/Makefile.am: Always build forcefindlib.c
3274 * locate/locate.c: Say 'base name' rather than 'basename' in comments
3276 * find/pred.c, find/find.c: process_top_path(): Proper bugfix for
3277 correct handling of items at depth 0 (i.e. specified on the
3278 command line) - do an extra chdir to ensure that we're in the
3279 directory containing the item before calling process_path().
3280 Hnece also undo the previous 'quick fix' for the same problem
3283 -execdir no longer has to treat anything as special, even at depth 0.
3285 2005-02-03 James Youngman <jay@gnu.org>
3287 * doc/find.texi, find/pred.c: When state.curdepth is 0, our
3288 working directory is not the directory containing the file we are
3291 2005-02-02 James Youngman <jay@gnu.org>
3294 To allow compilation on cygwin, use base_name(), not basename().
3297 2005-02-01 James Youngman <jay@gnu.org>
3299 * ChangeLog: Updated from CVS log.
3301 2005-01-31 James Youngman <jay@gnu.org>
3303 * find/find.c, lib/nextelem.c, lib/nextelem.h, locate/code.c,
3304 locate/frcode.c, locate/testsuite/config/unix.exp,
3305 xargs/testsuite/config/unix.exp, xargs/xargs.c: Updated/corrected
3306 the email address for David MacKenzie, one of the original authors
3309 * doc/Makefile.am: The HTML version of the manual generated for
3310 the GNU project website has each node in a separate file, not each
3311 chapter in a separate file; adjust filenames accordingly
3313 * find/parser.c, find/pred.c, lib/savedirinfo.c:
3314 Removed some unused variables (patch from Dmitry V. Levin)
3317 Patch from Dmitry V. Levin <ldv@altlinux.org>: Add subfs to the list
3318 of filesystems which are likely to be automounted.
3320 * m4/findlib.m4: Corrected typo (pointed out by Dmitry V. Levin).
3322 * find/testsuite/config/unix.exp,
3323 find/testsuite/find.gnu/name-period.xo,
3324 find/testsuite/find.gnu/posix-dflt.xo,
3325 find/testsuite/find.gnu/posix-h.xo,
3326 find/testsuite/find.gnu/posix-l.xo,
3327 find/testsuite/find.gnu/printf.exp,
3328 find/testsuite/find.gnu/printf.xo: Systems differ in the order in
3329 which filenames are returned by readdir. Hence sort the output of
3330 'find' before comparing against the expected-output file. We
3331 therefore also have the lines in the .xo files ready-sorted.
3333 2005-01-30 James Youngman <jay@gnu.org>
3336 Added rules for extra targets that we buld to update the web site.
3338 2005-01-29 James Youngman <jay@gnu.org>
3340 * configure.in: No longer version 4.2.15 - we've changed the manual.
3343 Clarified the txt about adding extra tests with post-processing via
3344 xargs, and recommend -execdir instead for security reasons.
3346 * doc/find.texi: Patch from Karl Berry:
3347 - more entries for the dir file
3348 - use @copying so the copyright ends up in the HTML etc. output.
3349 (This is the only really important change.)
3350 - put @contents after the title page, for conventional toc location.
3351 - use @ifnottex to wrap the Top node instead of @ifinfo, for the sake of
3354 * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
3355 po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
3356 po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
3357 po/sv.po, po/tr.po: Prepared to release findutils-4.2.15
3359 * ChangeLog: Updated from CVS log.
3361 2005-01-28 James Youngman <jay@gnu.org>
3364 Make --enable-d_type-optimization and --enable-d_type-optimisation
3367 * configure.in: Assume --enable-d_type-optimisation by default
3369 * find/parser.c: Indicate which features are enabled/disabled
3371 * locate/testsuite/config/unix.exp:
3372 Clean up the files left behind by the locate_textonly test
3374 2005-01-27 James Youngman <jay@gnu.org>
3376 * doc/find.texi: Documented --regex.
3378 * NEWS, locate/locate.1, locate/locate.c, locate/testsuite/Makefile.am, locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/regex1.exp:
3379 Implemented locate --regex - but needs documenting in Texinfo manual.
3381 2005-01-25 James Youngman <jay@gnu.org>
3383 * configure.in: Bumped version no.
3386 Document --mmap and --stdio as being synonyms of -m and -s.
3389 Document --mmap and --stdio as synonyms of -m and -s.
3392 Document -m and -s (both no-ops) in the usage message.
3394 * doc/find.texi, locate/locate.1: Document -m and -s as no-ops.
3396 * ChangeLog: Updated for release of findutils-4.2.14.
3398 * 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:
3399 Preparing to release findutils-4.2.14
3401 2005-01-25 James Youngman <jay@gnu.org>
3403 * NEWS, configure.in, po/da.po, po/de.po, po/es.po, po/et.po,
3404 po/findutils.pot, po/fr.po, po/gl.po, po/id.po, po/it.po,
3405 po/ko.po, po/nl.po, po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po,
3406 po/sv.po, po/tr.po: Preparing to release findutils-4.2.14
3408 2005-01-24 James Youngman <jay@gnu.org>
3410 * Makefile.am: Work around the fact that automake-1.7 actually
3411 works, and correctly distributes regex.c; hence dist-hook should
3412 only copy gnulib/lib/regex.c if this has not already been done.
3414 * find/defs.h, find/find.c, find/pred.c,
3415 find/testsuite/Makefile.am,
3416 find/testsuite/find.gnu/printf-symlink.exp,
3417 find/testsuite/find.gnu/printf-symlink.xo,
3418 find/testsuite/find.gnu/xtype-symlink.exp,
3419 find/testsuite/find.gnu/xtype-symlink.xo: Fixes for -xtype and
3420 -printf %Y, which had been the wrong way around.
3422 * NEWS: Avoid including the find.gnu subdirectory in the
3423 distributed file more than once
3426 Move the printing of the statistics into a new function, print_stats()
3428 * find/testsuite/Makefile.am: Avoid including the find.gnu
3429 subdirectory in the distributed file more than once
3432 We need the regex module anyway, to allow compilation on Solaris
3434 2005-01-23 James Youngman <jay@gnu.org>
3437 Invoke gl_INCLUDED_REGEX directly to ensure successful compilation on
3438 systems like Solaris, which lacks those functions in libc (fixes GNU
3439 Savannah bug #11710).
3441 * locate/locate.1: -S is a synonym for --statistics
3443 * doc/find.texi: Documented the new -H, -L and -P options.
3445 * locate/locate.1, locate/locate.c: Implement options -L
3446 (default), -H and -P, which mean the same things as for find,
3447 except for the fact that the default is -L rather than -P
3449 * find/find.1: Corrected definition of the exit status for -quit.
3451 * find/find.c, find/pred.c: If DEBUG_STAT is set, issue a debug
3452 message when we call chdir() so that we can figure out what is
3453 actually being stat()ed
3455 * locate/updatedb.sh:
3456 Removed spurious newline from help message (bug report from Karl
3459 * po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
3460 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
3461 po/pl.po, po/pt_BR.po, po/ru.po, po/sk.po, po/sv.po, po/tr.po,
3462 Makefile.am, NEWS, configure.in, find/defs.h, find/find.c,
3463 find/parser.c, find/pred.c, find/tree.c, find/util.c,
3464 import-gnulib.sh, lib/savedirinfo.c: Merged the d_type
3465 optimisation code; this is disabled by default, and can be enabled
3466 with 'configure --enable-d_type-optimisation'
3469 Updated optimisation NEWS item to indicate the effect on runtime.
3471 2005-01-22 James Youngman <jay@gnu.org>
3473 * NEWS, configure.in: Prepare for release of findutils-4.2.12
3475 * ChangeLog: Brought up to date with recent changes.
3477 * Makefile.am, import-gnulib.sh, po/Makefile.in.in, po/Makevars,
3478 po/da.po, po/de.po, po/es.po, po/et.po, po/findutils.pot,
3479 po/fr.po, po/gl.po, po/id.po, po/it.po, po/ko.po, po/nl.po,
3480 po/pl.po, po/pt_BR.po, po/remove-potcdate.sin, po/ru.po, po/sk.po,
3481 po/sv.po, po/tr.po: Switch to using the gnulib gettext module, to
3482 ensure that 'make distcheck' works with current xgettext,
3485 * find/testsuite/config/unix.exp:
3486 Oops, we do need to clean up after all.
3488 2005-01-21 James Youngman <jay@gnu.org>
3490 * xargs/testsuite/Makefile.am: Added name of missing input file.
3492 * find/testsuite/Makefile.am:
3493 Distribute a few files that we had forgotten about
3495 * xargs/testsuite/Makefile.am: Added some missing files.
3497 * lib/Makefile.am: Also need buildcmd.h.
3499 * xargs/testsuite/Makefile.am: Fixed a typo.
3501 * NEWS: Indicate the d_type performance improvement
3503 2005-01-18 James Youngman <jay@gnu.org>
3505 * lib/savedirinfo.h: Added on d_type_optimisation also
3507 * lib/savedirinfo.c: Added on branch d_type_optimisation also.
3509 * find/pred.c: Added assert that we actually know the file type by
3510 the time pred_type() is called
3512 * find/find.c: Always initialise state.have_stat = false when
3513 starting to work with a new file
3515 2005-01-17 James Youngman <jay@gnu.org>
3517 * ChangeLog: Brought up to date with recent changes.
3519 * NEWS: Documented the changes so far.
3521 * find/testsuite/find.gnu/exec-many-rtn-success.xo:
3522 Expected output for exec-many-rtn-success.exp
3525 Indicate that -quit still ensures that pending commands are invoked
3528 Indicate that -quit still causes partial command lines to be invoked,
3529 but there are some types of fatal error which leave such commands
3532 * find/defs.h, find/find.c, find/pred.c, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
3533 Fixed savannah bug #11625 Wrong return status for -exec ... \; when command fails; also execute any pending commands when doing -quit
3535 * 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:
3536 Various test cases for succeeding and failing forms of -exec \; and -exec {} +
3538 * find/pred.c: "-exec ... {} +" always returns "true".
3540 * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
3541 Implemented d_type optimisation but not working correctly, so currently disabled
3543 * lib/savedirinfo.h, lib/savedirinfo.c:
3544 Initial implementation (temporarily disabled).
3546 * lib/Makefile.am: Resolved merge conflict.
3549 Make sure nextelem.h is included in the list of sources.
3551 * find/parser.c, lib/nextelem.c, lib/nextelem.h, locate/locate.c:
3552 Use prototypes for next_element() to make sure it is called correctly.
3554 2005-01-16 James Youngman <jay@gnu.org>
3556 * find/find.c, find/pred.c:
3557 When completing incomplete multiple execs, use 'eval_tree' not 'predicates'
3560 Oops, initialise state->cmd_initial_argv_chars to zero.
3563 Document the way that -execdir and -okdir will refuse to wqork if ">"
3564 is on $PATH. Also document -okdir in the manpage.
3567 -execdir and -okdir are insecure if $PATH includes the current
3568 directory, and so they refuse to work if the user has done that.
3571 Oops; for -exec ... {} +, pass arguments to bc_push_arg() in the right
3572 order. Problem spotted by Geoff Clare.
3574 * TODO: Removed items which have now been done.
3576 * lib/buildcmd.c: Tidied up formatting of arg list for bc_do_insert
3578 2005-01-15 James Youngman <jay@gnu.org>
3580 * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo:
3581 Added extra tests for more printf formats; patch by Andreas Metzler
3584 Ensure that the new long options have a relevang short option too.
3585 Also bring usage message into line with the options actually
3586 supported. Thanks to Bas van Gompel for noticing this defect.
3589 Escape "-" in SYNOPSIS. Thanks to Bas van Gompel for noticing this
3592 * ChangeLog: Fixed typos.
3595 Documented -execdir, and the "+" variants of -exec and -execdir.
3597 * find/find.1: Documented -execdir.
3600 Updated to bring into line with bc_*() interface changes
3602 * ChangeLog: Updated with recent changes.
3604 * find/defs.h, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h:
3605 Implemented -execdir and -okdir
3607 * find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
3608 First working version of -exec ...+
3610 2005-01-09 James Youngman <jay@gnu.org>
3612 * find/defs.h, find/find.c, find/parser.c, find/pred.c, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
3613 Initial implementation of -exec ..{} +, but currently disabled since not yet working
3615 2005-01-08 James Youngman <jay@gnu.org>
3617 * find/find.c: Fixed typo in comment.
3619 * find/defs.h, find/find.c, find/parser.c, find/pred.c:
3620 We now understand but do not implement -execdir (a *BSD invention, and a very useful security enhancement) and -okdir (the obvious companion to it)
3622 * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
3623 The GNU coding standard requires a space between the function name and
3624 its parenthesised argument list.
3627 Understand the -exec ... {} \+ construction (for multiple
3628 replacement). No support yet.
3631 Indicate that empty elements in the dbpath are treated as synonyms for
3632 the default database.
3635 Support empty elements in the dbpath as synonyms for the default
3636 database. These colons can be leading, trailing or in the middle of
3637 the string. We no longer com,plain if the user does this.
3640 If curdir_ok is 0 and an element is empty, return "" instead of NULL
3641 so that the caller knows to keep calling us.
3643 * find/find.c, find/pred.c, import-gnulib.sh, locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c:
3644 Savannah bug 11517: find, xargs, locate, etc. should not hide write failures; patch from Jim Meyering
3646 * 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:
3647 changed .pot creation date
3649 * THANKS, AUTHORS: Take into account the FSF copyright-assignments list
3652 If -quit is used, the exit value can be nonzero if errors have occurred.
3655 Removed incorrect comment about -H, -P and -follow in HISTORY.
3657 2005-01-07 James Youngman <jay@gnu.org>
3659 * lib/Makefile.am, lib/buildcmd.c, lib/buildcmd.h, xargs/xargs.c:
3660 Refactored xargs to use an external library function from the new file buildcmd.c
3662 * configure.in: no longer the same as the released 4.2.11 version
3664 2005-01-06 James Youngman <jay@gnu.org>
3666 * xargs/testsuite/inputs/lines.xi, xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/Makefile.am:
3667 Tests for the -L option
3669 * xargs/testsuite/config/unix.exp: When a test fails, show the diffs
3671 * xargs/testsuite/xargs.posix/l2.exp, xargs/testsuite/xargs.posix/l2.xo:
3672 tests for the -l option
3674 * xargs/testsuite/Makefile.am: Added extra test files
3676 * xargs/testsuite/xargs.sysv/trace.exp, xargs/testsuite/xargs.sysv/trace.xe, xargs/testsuite/xargs.sysv/trace.xo:
3677 Added tests for the -t option
3679 * 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:
3680 Use a blanks-only input file for cases where there is supposed to be no output
3682 * xargs/testsuite/inputs/blank.xi: Initial version.
3685 Corrected a typo; also indicate that it's impossible to use xargs
3686 securely due to the race condition.
3688 2005-01-05 James Youngman <jay@gnu.org>
3691 Fixed Savannah bug 11495: fallthrough from -printf format processing
3692 from 'n' case to 'd' case.
3694 2005-01-03 James Youngman <jay@gnu.org>
3697 Oops. Had duplicated an entire section. Fortunately this was after
3698 @bye, so there was no adverse effect.
3702 * doc/find.texi, locate/locate.1: document locate -S
3704 * configure.in, doc/find.texi, locate/locate.1, locate/locate.c:
3705 Support locate -b as a synonym for locate --basename
3707 * 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:
3710 * find/testsuite/config/unix.exp:
3711 Clean up (delete) find.out at at the end of the test.
3713 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c, find/pred.c:
3714 Implemented the -samefile test for find
3716 2005-01-02 James Youngman <jay@gnu.org>
3718 * ChangeLog: Updated with recent changes.
3721 Bas van Gompel: two-line patch to locate.c to make locate's -i and -w
3722 options work if -e is in use.
3724 * THANKS: Added Bas van Gompel.
3727 Bas van Gompel: (visit_exists) when testing for the existence of the
3728 file, check the real filename [printname], not the case-converted
3729 filename [testname]. Really these argument names are badly chosen.
3731 * find/find.1, doc/find.texi:
3732 Improved the documentation for -perm, with plenty of examples,
3733 following a comment by Dan Jacobson that the comment "Symbolic modes
3734 use mode 0 as a point of departure" is baffling and unhelpful.
3737 Suggestion and patch from Bas van Gompel: (new_locate): Fix display of
3738 negative compression ratios.
3740 2004-12-31 James Youngman <jay@gnu.org>
3742 * NEWS: Brought up to date with recent changes
3745 Don't need to nest the "race conditions with..." sections so deeply.
3747 * doc/find.texi: Corrected some spelling errors.
3749 * doc/find.texi: Added new "Security Considerations" chapter.
3751 2004-12-23 James Youngman <jay@gnu.org>
3754 Applied bugfixes from Bas van Gompel <patch-findutils.buzz@bavag.tmfweb.nl>.
3755 (lc_strcpy): Zero-terminate result.
3756 (add_visitor): Update lastinspector.
3757 (visit_substring_match_casefold): fix off-by-one error.
3758 (new_locate): Move visit_exists down to improve performance.
3759 (new_locate): Don't fold case when getting stats.
3761 2004-12-19 James Youngman <jay@gnu.org>
3764 Indicate that "cd /; find tmp -wholename /tmp" will never match anything.
3766 * doc/find.texi: Documented locate --statistics.
3768 * locate/locate.1: Documented the --statistics option.
3770 * locate/locate.c: Added support for the -S option.
3772 2004-12-12 James Youngman <jay@gnu.org>
3774 * NEWS: Added a summary of the changes so far.
3776 * find/tree.c: Made some of the error messages more self-explanatory
3778 * find/pred.c: Print pointers with %p, not %x.
3780 * find/find.c: Moved option data into struct options.
3782 * find/find.1: clarifications
3784 * find/testsuite/find.gnu/comma.exp:
3785 Limit the amount of searching with maxdepth.
3787 * doc/find.texi: clearer description of how -prune works
3789 * ChangeLog: Removed duplicate entry.
3791 * configure.in, find/defs.h, find/find.c, find/fstype.c, find/parser.c, find/pred.c, find/tree.c, find/util.c:
3792 Separated ariables representing current state from variable representing option information
3794 2004-12-11 James Youngman <jay@gnu.org>
3796 * find/parser.c: Readability improvement to the usage message.
3798 * find/find.c: Oops. Fixed unmatched #endif.
3800 * find/testsuite/find.gnu/printf.exp, find/testsuite/find.gnu/printf.xo, THANKS, configure.in, find/testsuite/Makefile.am, find/testsuite/config/unix.exp:
3801 Fixed Savannah bug #11280
3804 Remember to set path_length and curdepth in process_top_path().
3806 2004-12-07 James Youngman <jay@gnu.org>
3808 * find/fstype.c: Use xstat() not stat() to examine things.
3810 * find/find.c: Explain why #ifdef EOVERFLOW.
3812 * find/find.c: EOVERFLOW is not defined on UNICOS.
3814 * NEWS: Corrected typo.
3816 2004-12-06 James Youngman <jay@gnu.org>
3818 * ChangeLog: Brought up to date.
3820 * NEWS, configure.in: releasing 4.2.10
3822 * 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:
3825 * ChangeLog: Updated prior to release of finsutils-4.2.10.
3827 * import-gnulib.sh, find/fstype.c:
3828 Use gnulib's mountlist module instead of grokking it ourselves.
3831 Removed all the out-of-date cruft for grokking getmntent().
3834 Added the -I and -L options; also -E takes an argument which is not optional.
3836 2004-12-05 James Youngman <jay@gnu.org>
3838 * README, configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, find/tree.c:
3839 Allow debug output to be turned on or off by saying --enable-debug on the configure command line
3842 Removed disparaging (it is now, it probably wasn't then) comment about
3843 the production-readiness of Automake.
3845 * README: Qualify remarks about POSIX compliance.
3847 * NEWS, configure.in: Preparation for release 4.2.9
3849 * 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:
3852 * ChangeLog: Brought up to date.
3855 Avoid duplicate error message when we cannot chdir() into a subdirectory.
3857 * THANKS: Added recent thankees.
3860 Brought up to date with respect to the current set of fixed bugs.
3862 * NEWS, xargs/xargs.1, xargs/xargs.c:
3863 Implemented POSIX options -L, -I and -E
3865 2004-12-03 James Youngman <jay@gnu.org>
3868 -xdev is an option, not a test. Fixes Savannah bug 11192.
3870 * find/find.1, xargs/xargs.1:
3871 Escape dashes with a backslash (for fix Savannah bug 11189).
3873 2004-11-27 James Youngman <jay@gnu.org>
3876 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.
3878 * find/find.1: "necessary" only has one "C".
3881 If stat() fails with ELOOP, we issue a diagnostic message.
3883 2004-11-26 James Youngman <jay@gnu.org>
3885 * find/find.c: Removed some unused code.
3887 * Makefile.am: Don't do anything in the 'intl' subdirectory
3890 Enhanced safely_chdir() to the point where the test suite passes, and report infinite loops in the directory hierarchy
3893 belt and braces; ensure that SYMLINK_NEVER_DEREF has value zero
3896 Describe our strategy for detecting and reporting infinite loops
3898 2004-11-24 James Youngman <jay@gnu.org>
3901 Updated the discussion of th error messages for findutils-4.2.8.
3903 * configure.in: Next version will be 4.2.9...
3906 Don't issue a warning if we notice the mounting of a filesystem that's
3907 likely just to be an automounter.
3909 * doc/find.texi, find/find.1:
3910 Explain how rounding is performed for -atime and friends.
3913 Once we collect enough arguments (for the value specified by the -n
3914 option) to do an exec(), do it immediaely instead of waiting for the
3915 next one to arrive. This fixes Savannah bug #7340.
3917 * ChangeLog, configure.in, NEWS: Prepare to release 4.2.8.
3919 * NEWS: Updates for 4.2.8.
3921 * configure.in: check for sys/types.h
3924 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.
3927 Declarations of xmalloc() and friends belong in xalloc.h, not in defs.h
3929 * find/parser.c: avoid signed/unsigned warning, and #include xalloc.h
3932 Changed to alloc get_mounted_devices() to compile on Solaris
3935 Automake requires GNU m4, so point out that the reader needs that.
3937 * find/defs.h, find/find.c, find/fstype.c:
3938 When wd_sanity_check() fails, enumerate the mounted devices, rather than the mounted filesystem names
3940 * NEWS: prepare for 4.2.8
3943 Look for some Solaris headers which are used by get_mounted_devices()
3945 * lib/Makefile.am: don't build savedirtypes yet
3947 * 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:
3951 Avoid suprious output of the test data when the tests fail.
3953 2004-11-21 James Youngman <jay@gnu.org>
3955 * 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:
3956 Messages changed again
3958 * ChangeLog, configure.in: Preparing to release 4.2.7.
3960 * NEWS: Updated for release of 4.2.7.
3962 * import-gnulib.sh: Also need canonicalize module.
3965 When checking to see if a filesystem has changed state, use an
3969 No need to pause to allow James to view his handiwork, it (allegedly)
3973 Oops. Check for setlocale() to re-enable the i18n support which was
3974 accidentally disabled in 4.2.5.
3977 Check to see if the new directory is a transitioned mount point by
3978 using its ABSOLUTE name, if we can figure it out.
3981 Added guidance on some of the error messages. Not the most common
3982 ones, but the ones where the user might most benefit from some handy
3983 hints or an explanation of what is going on.
3986 Actually emit an error message if we fail to stat a symlink (for
3987 reasons other than nonexistence of the link and infinite loop).
3989 * doc/texinfo.tex: Updated texinfo.tex
3991 * NEWS, configure.in, find/find.c, find/fstype.c:
3992 Enable the 'Warning: filesystem XXX has recently been mounted' check on Solaris, which prevents it exiting fatally when traversing an automount mount point
3994 * 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:
3995 messages changed again
3997 * NEWS: Implemented xargs --arg-file.
3999 * doc/find.texi, xargs/xargs.1, xargs/xargs.c, NEWS:
4000 Implemented xargs --arg-file
4003 Where a filesystem was recently (un)mounted, try togive its full name
4006 Try to avoid requesting -lsun if we don't seem to need it (e.g. on
4007 UNICOS where it is not present and trying to link against it produces
4010 * find/defs.h, lib/modetype.h: Guard against multiple inclusion
4013 We now need <mntent.h> even if we are not using getmntent() to figure
4014 out the type of a filesystem, because wd_sanity_check() needs to
4015 enumerate the system mount points.
4017 * configure.in: Next release will be 4.2.7.
4020 get_mounted_filesystems() should use getmntent() if that function is
4021 present, rather than just if configure didn't find anything better for
4022 filesystem_type_uncached() to use than that.
4025 If -delete is the only action on a file, don't assume the default
4028 * 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:
4029 Preparation to release findutils-4.2.6.
4031 * find/Makefile.am, xargs/Makefile.am:
4032 Enable checking of support for --version and --help
4034 * locate/Makefile.am:
4035 Con't check command-line options for frcode, code or bigram
4037 * locate/code.c: Support --version and --help.
4039 * ChangeLog: *** empty log message ***
4041 * find/defs.h, find/find.c, find/fstype.c, lib/Makefile.am, lib/extendbuf.c, lib/extendbuf.h, NEWS:
4042 Avoid fatal error if automount mounts a filesystem on a directory because we chdir()ed into it
4044 * configure.in: Next release will be 4.2.6.
4047 Indicate that the '-' flag does work for most fields. Also provide
4048 an example of using the comma operator to traverse the filesystem just
4049 once but search for more than one thing.
4051 * doc/find.texi: Indicate that the '-' flag does work for most fields.
4053 2004-11-19 James Youngman <jay@gnu.org>
4055 * configure.in: releaseing findutils-4.2.5
4057 * find/testsuite/Makefile.am, locate/testsuite/Makefile.am, xargs/testsuite/Makefile.am:
4058 If a directory has no Makefile.am, omit it from the parent's DIST_SUBDIRS - automake-1.9 requires this
4060 * 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:
4061 updated by make distcheck
4063 * ChangeLog, NEWS: Updated for release 4.2.5.
4065 * find/find.1, doc/find.texi:
4066 Tell the reader that format flags may not work as they expect.
4069 Use the correct name for the macro gl_AC_TYPE_LONG_LONG (not
4070 jm_AC_TYPE_LONG_LONG).
4072 2004-11-15 James Youngman <jay@gnu.org>
4075 Avoid test -e because not all systems are POSIX-compliant (bug
4076 #11005). Also don't need regex module any more if we're not building
4079 * Makefile.am, configure.in:
4080 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
4083 Use @ref not @xref for a reference at the beginning of a sentence.
4086 Make sure gnulib.lib is on the #include path (Savannah bug #11002)
4089 Use base_name instead of basename - fixes Savannah bug 11003.
4091 * configure.in, find/defs.h, find/find.c, find/parser.c, find/pred.c, locate/bigram.c, locate/locate.c:
4092 Don't need banner to emphasise the location of the call to jy_SORTZ
4094 2004-11-12 James Youngman <jay@gnu.org>
4096 * 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:
4097 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]
4099 2004-11-11 James Youngman <jay@gnu.org>
4101 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/find.c, find/parser.c:
4102 Implemented -H and -L options.
4104 * find/util.c: Added in the -H and -L options on the usage message.
4106 2004-11-10 James Youngman <jay@gnu.org>
4108 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4109 Implemented %M and %A+ format specifiers
4111 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4112 Documented the fact that only %d and %m format specifiers honour the various formatting flags
4115 Get the right number of bytes in a Kilobyte (hint: it's not 1048; that
4116 was a typo, honest :)
4118 * po/pl.po: Applied Polish translations
4120 2004-11-08 James Youngman <jay@gnu.org>
4122 * 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:
4123 distcheck changed the po files again
4125 * locate/Makefile.am:
4126 Make install-data-hook honour the setting of DESTDIR so that "make
4127 DESTDIR=/tmp/foo install" works and puts localstater in the right
4130 * configure.in: We're now working on findutils-4.2.5.
4132 * doc/find.texi, xargs/xargs.1:
4133 Point out that xargs -i only splits input items at newlines
4135 * ChangeLog: Indicate that we released 4.2.4.
4137 * ChangeLog: Updated for release 4.2.4
4139 * NEWS, configure.in: Prepare for release of 4.2.4.
4141 * NEWS: Brought up to date with latest changes.
4143 * 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:
4144 Turn warning messages off by default if stdin is not a tty; allow these to be controlled explicitly by options -warn and -nowarn
4146 * po/et.po, po/it.po: Updated translation files
4148 * po/sk.po: New translation file
4150 * po/fr.po, po/nl.po, po/tr.po: Updated translation files
4152 * configure.in: Added Slovak (sk) language.
4155 Enforcing a lower limit on the value specified by -s makes the test
4156 suite fail. Removed that lower limit.
4158 * locate/Makefile.am: Oops, multilocate doesn't exist yet.
4160 * NEWS: *** empty log message ***
4162 * doc/find.texi, locate/updatedb.1, locate/updatedb.sh:
4163 Added option --findoptions to updatedb
4165 * locate/Makefile.am, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
4166 Fixed section numbers in manpage titles and cross-references
4168 * NEWS, doc/find.texi, xargs/xargs.1, xargs/xargs.c:
4169 Increased the default argument length and improved POSIX compliance of the handling of out-of-range values for the -s option
4171 2004-11-07 James Youngman <jay@gnu.org>
4174 Added in the extra files we need to distribute, nullsort.m4
4175 order-bad.bin order-good.bin
4177 * doc/find.texi: Documented locate's --limit option
4179 * locate/locate.1, locate/locate.c:
4180 Implmented --limit and corrected the implementation of the -i option.
4182 2004-11-06 James Youngman <jay@gnu.org>
4184 * NEWS, doc/find.texi, locate/locate.1:
4185 Documented --wholename and --basename and updated the NEWS file
4188 Give the autogen commands in a form that you can usefully cut and paste into a shell
4190 * NEWS: Options --null and --count) for locate
4193 Don't return '.' for an empty path element, because the path we are splitting may not be intended to contain directories
4195 * configure.in: we're working on findutils-4.2.4 now
4197 * locate/Makefile.am: Substitute @SORT_SUPPORTS_Z@
4200 Documented new locate option --null and newline handling
4202 * locate/locate.1, locate/locate.c:
4203 New locate options --null, --wholename, --basename, --count
4205 * locate/frcode.c, locate/updatedb.1, locate/updatedb.sh:
4206 correctly handle newlines in the file names
4208 * configure.in: Determine if sort -z works
4210 * m4/nullsort.m4, m4/order-bad.bin, m4/order-good.bin:
4211 jy_SORTZ: a macro to determine if the system has a sort command with a working -z option
4213 2004-11-01 James Youngman <jay@gnu.org>
4215 * NEWS: Fixed "find -printf '%H\n'".
4218 Avoid segfault if -printf %H is used where the matched file was the default, unspecified starting point, the current directory
4220 2004-10-31 James Youngman <jay@gnu.org>
4222 * find/find.1, find/parser.c: NetBSD also supports -d.
4224 * find/find.1, doc/find.texi:
4225 Documented the behaviour of -daystart and -follow in more detail
4227 * find/parser.c: Corrected the usage message.
4230 When deciding whether to issue a warning about options following
4231 non-options, ignore any options whose position affects the tests
4232 (i.e. -daystart and -follow).
4234 * find/parser.c: -daystart is a positional option like -follow.
4237 Issue a warning message if an option is specified after a test or an
4238 action (because the user might have believed that the behaviour of the
4239 option is in some way conditional on the preceding tests).
4241 * locate/updatedb.sh:
4242 Oops; removed some test code that I shouldn't have checked in.
4244 * locate/updatedb.sh:
4245 Indicate that the old locate database format will shortly be unsupported.
4248 Use @direntry instead of hard-coding START-INFO-DIR-ENTRY inside @ifinfo.
4250 * locate/updatedb.1: Updated default location of locatedb file.
4253 Updated to give correct FTP location and to not talk about "test"
4254 versions of automake, which are no longer required.
4256 * locate/updatedb.sh:
4257 Incorporated the default list of filesystems to avoid from the Debian
4258 package. Also added /afs and /sfs to the default pruned paths.
4260 * configure.in: Released findutils 4.2.3
4262 * 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:
4263 did make distcheck, which updates these files
4265 * find/defs.h, find/fstype.c:
4266 Use const qualifier in arguments to filesystem_type() to allow callers with const variables to use them
4268 * ChangeLog: Updated.
4270 * NEWS: Added new news.
4273 Extra diagnositcs for the case where we have the error "%s changed
4274 during execution of %s" - that is when we chdir back to the parent
4275 directory only to find that it has changed.
4277 2004-10-30 James Youngman <jay@gnu.org>
4279 * .cvsignore, NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
4280 Implemented the -quit action
4282 * NEWS, doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4283 Refactored time handling routines in preparation for support of absolute timestamp comparison predicates
4286 Applied Savannah patch #2952 ("getline off-by-one bugfix").
4288 * NEWS, doc/find.texi, find/defs.h, find/find.1, find/parser.c, find/pred.c:
4289 Added -delete action (Savannah patch #3454 with additions)
4292 Applied Savannah patch #2692 (allowing get_short to process negative integers).
4295 If we are iossuing an error message because $FIND_BLOCK_SIZE is set,
4296 ignore the setting of errno.
4298 * find/parser.c: More fixes for pedantic compiler warnings
4300 * NEWS, find/parser.c, find/tree.c: Eliminated some compiler warnings
4302 * find/find.c, find/parser.c, find/pred.c:
4303 Various fixes for compiler warninga sbout unreachable code or unused function arguments
4305 * intl/plural.y: Silence compiler warning about unused argument.
4307 * locate/testsuite/Makefile.am:
4308 Subdirectory "inputs" does not exist, so remove it from DIST_SUBDIRS.
4311 Corrected the explanation of why we have to use no parentheses around
4312 the String argument to the N_ macro in its expansion.
4314 * configure.in: Nextr release is 4.2.3.
4316 * configure.in: IOndicate this is no longer the pristine release.
4319 Oops, comments for release 4.2.0 should have said 20480 bytes, not 2480.
4322 The -ls predicate should not truncate usernames. Fixes Savannah bug #10800.
4324 * find/fstype.c, locate/locate.c:
4325 Fixes for Savannah bug #3727 (Intel icc compilation errors).
4327 2004-10-25 James Youngman <jay@gnu.org>
4329 * doc/find.texi, find/find.1, find/parser.c, find/pred.c:
4330 Support -printf %D, which prints the device number of the containing filesystem
4332 * locate/updatedb.sh:
4333 Avoid confusion between James Woods and James Youngman, by using the
4334 disambiguating surname.
4336 * find/parser.c: Use RE_ICASE instead of re->translate.
4338 * configure.in, find/parser.c, find/pred.c, xargs/xargs.c:
4339 No need to #define _GNU_SOURCE if we use gl_INIT.
4341 2004-10-24 James Youngman <jay@gnu.org>
4343 * ChangeLog: Prepared to release findutils-4.2.2.
4345 * 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:
4346 Updates prior to release of 4.2.2
4348 * NEWS: Updated with news for findutils-4.2.2.
4350 * 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:
4351 Corrected typo in the address of the FSF office
4353 * lib/strspn.c: Updated FSF address.
4355 * m4/.cvsignore: 'cvs status' should ignore Makefile.in
4357 * 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:
4358 Use gnulib-tool --import to import the gnulib code, rather than the odd way we were doing it before
4360 * 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:
4361 Work round an apparent compiler bug in HP-UX 11.23 for
4365 Work around what appears to be a C compiler bug in HP-UX 11.23 for
4368 * INSTALL, depcomp, install-sh, missing, mkinstalldirs:
4369 Updated from automake
4371 * locate/bigram.c, locate/code.c, locate/frcode.c, locate/locate.c, xargs/xargs.c, find/find.c:
4372 Avoid use of exit() within main, to silence warnings about unreachable code
4374 2004-10-22 James Youngman <jay@gnu.org>
4376 * doc/find.texi: Syntax corrections.
4378 * doc/find.texi: Indicate that "-exec {}+" is not yet supported.
4380 * find/find.1: Indicate that "{}+" is not yet supported.
4382 * find/testsuite/find.gnu/name-period.xo, find/testsuite/find.gnu/name-period.exp, find/find.1, doc/find.texi:
4383 The -name predicate must allow '*' to match '.foo' as demanded by IEEE
4384 Std 1003.2-1992 Interpretation #126.
4387 Remove use of FNM_PERIOD for -name as demanded by IEEE Std 1003.2-1992
4390 * find/parser.c: Fix for compilation (on AIX 4.3) with GCC 2.x.
4393 Changed the erorr message issued when there is an unmatched quote to
4394 point out that the user might have wanted to use the -0 option instead.
4396 2004-10-17 James Youngman <jay@gnu.org>
4399 Define intmax_t if it is not already defined - allows parser.c to compile on AIX 4.3
4402 Adjust version number to indicate that this s/w has moved on since the
4405 * configure.in: preparing to release 4.2.1
4407 * ChangeLog: updated with current changes
4409 * README-CVS: Updated to go with newer version of gnulib.
4411 * 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:
4412 preparation for release
4414 * NEWS: Mention the changes to "trap".
4416 * NEWS: Brought up to date.
4419 Use xalloc-die module from gnulib, since that has now been split out
4422 Check fnmatch() when other predicates that rely on fnmatch() are used.
4424 * find/parser.c: bug #10701: find needs fnmatch sanitycheck on startup
4426 2004-10-16 James Youngman <jay@gnu.org>
4429 Switch to requirement for GNU fnmatch because it supports FNM_CASEFOLD.
4431 * locate/updatedb.sh:
4432 Bug #9465: use of signal numbers for 'trap' is deprecated. Should use
4434 http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html,
4435 which indicates that support for signal numbers is optional, while
4436 support for signal names is mandatory.
4439 Indicate that this is the CVS version (once again) now that findutils
4440 4.2.0 has been released.
4442 * 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:
4443 findutils 4.1.20 check-in for tagging
4445 2004-10-02 James Youngman <jay@gnu.org>
4447 * po/Makefile.in.in:
4448 Search in $(top_srcdir) for mkinstalldirs, since that's where we keep it.
4450 * NEWS: Brought up to date, organised more clearly, and tidied up.
4452 * NEWS: brought up to date with recent changes
4454 * locate/testsuite/config/unix.exp, locate/testsuite/locate.gnu/ignore_case1.exp, locate/testsuite/locate.gnu/ignore_case3.exp, locate/updatedb.sh:
4455 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
4458 Fixed usage of human_readable() in '%k' format specifier to fix a bug
4459 reported by Dmitry V. Levin (arguments to human_readable() were
4460 specified in the wrong order, which resulted in a floating-point
4463 2004-08-08 James Youngman <jay@gnu.org>
4465 * locate/updatedb.sh:
4466 cd to / to avoid inability to examine the current directory if we're
4467 invoked via cron (and hence in root's home directory for example).
4469 * doc/find.texi, find/find.1:
4470 Deprecate -path and -ipath in favour of -wholename and -iwholename
4473 As per RMS's suggestion, deprecate -path and -ipath in favour of
4474 -wholename and -iwholename.
4477 Fixed Savannah bug #9923, in which get_short() returns large positive
4478 ints when it should be returning negative shorts.
4481 Applied documentation improvements suggested by Dan Jacobson
4482 <jidanni@jidanni.org>.
4485 Don't check size_of_environment against arg_max since that causes the
4488 * xargs/xargs.1, xargs/xargs.c: Better documentation for the -i option
4490 2004-05-03 James Youngman <jay@gnu.org>
4493 document the various suffixes for -size and also the new
4494 option -ignore_readdir_race
4497 Fixes Savannah bug #8623 (failure to check consistency of data
4498 read from locate database)
4500 * locate/updatedb.sh:
4501 Resolves Savannah bug 4380, that updatedb generates an empty
4502 database if one of the commands fails
4504 * NEWS: Talk about -ignore_readdir_race
4507 Documented -ignore_readdir_race and -noignore_readdir_race
4510 -ignore_readdir_race should have no effect if the reason for the
4511 failure of stat(2) was anything other than ENOENT.
4513 * find/defs.h, find/find.c, find/parser.c:
4514 Fixed Savannah bug 4391 (readdir race condition leading to
4515 spurious error messages)
4517 2004-04-24 James Youngman <jay@gnu.org>
4519 * README-CVS: Corrected the instructions for getting gnulib via CVS.
4521 2004-04-13 James Youngman <jay@gnu.org>
4524 Actioned Savannah bug #8558 (find complains when it tries to recurse
4525 into directories that it had removed).
4527 2004-03-13 James Youngman <jay@gnu.org>
4529 * ChangeLog: Updated from checkin comments.
4532 Oops, there is no access to the predicate name table if DEBUG is
4536 Detect arithmetic overflow (poorly) in insert_time(), which diagnoses
4537 the failure to handle large arguments to -mtime. The existing code
4538 does careful computation and then bungs the value into a time_t, which
4539 ruins all our careful effort. The new code is not a great
4540 improvement. We just check the result to detect overflow, rather than
4541 actually avoiding the overflow.
4544 Fixed Debian bug #185202 by checking for any trailing predicates after
4545 the top-level invocation of get_expr() has done its work.
4547 * locate/locate.1, xargs/xargs.1:
4548 Fixed Debian bug 175372, inappropriate 'L' suffixes on manual
4549 page section indicators
4552 Removed "L" suffixes from manual page section indicators, to fix
4555 * debian/updatedb.conf:
4556 Updated with list of filesystems from current Debian release. This
4557 includes devfs, for example.
4560 Modified documentation of "-s" option to take into account the fix for
4564 Fixed Debian bug #176201, "xargs enviroment size limited to 20k", by
4565 reading a patch offered by Bob Proulx and implementing something
4566 substantially similar myself.
4568 2004-01-03 James Youngman <jay@gnu.org>
4571 Indicate that prep_child_for_exec() fixes Savannah bug #3992.
4574 Attach the stdin of xargs' child process to /dev/null so that if it
4575 tries to read from its stdin it doesn't consume any of the list of
4576 files that xargs is trying to use.
4579 Documented that the -regex option follows Gnulib's re_match()
4582 * NEWS, locate/locate.c: Applied Savannah patch 2108
4584 * xargs/xargs.c: Applied Savannah patch 1500
4586 * find/find.1, doc/find.texi:
4587 Improved the documentation for the %k and %b format specifiers to
4588 -printf (Savannah bug #5034). Also pointed out that this handling is
4589 different to that used by the "b" and "k" suffixes with "-size".
4591 * find/find.1: Improved the documentation for %k (Savannah bug #5034).
4594 Improved the documentation for -print0 in the manpage, fixing Debian
4597 * README-CVS, find/pred.c, lib/listfile.c:
4598 Brought up-to-date with change in gnulib's human.c - we no longer
4599 use human_readable_inexact(), because it is no longer provided.
4601 2003-08-08 James Youngman <jay@gnu.org>
4604 Documented the fact that -printf also supports the '\0' escape code.
4605 Added "STANDARDS CONFORMANCE" section.
4607 2003-08-02 James Youngman <jay@gnu.org>
4610 Explain that braces are not special when performing filename matching
4614 added example of the use of -exec to the EXAMPLES section
4616 * find/fstype.c, locate/locate.c:
4617 Savannah bug #4295 - implicit declarations of ctype.h functions
4620 Savannah bug #4279 - missing newline on locate help message
4622 * find/find.1, xargs/xargs.1:
4623 Improved discussion of the -print0 option of find and the -0 option of xargs
4625 2003-06-26 James Youngman <jay@gnu.org>
4628 Remove reference to nonexistent module "basename" ("dirname" exists
4629 and we already use that).
4631 2003-06-21 James Youngman <jay@gnu.org>
4634 Indicate that xargs stops immediately if a command exits with status 255
4637 Document the fact that xargs exits immediately with an error message
4638 if the command it executes exits with a status of 255.
4640 2003-06-18 James Youngman <jay@gnu.org>
4643 Indicate that -fls and friends always create their output file
4645 2003-06-16 James Youngman <jay@gnu.org>
4647 * ChangeLog, find/find.1, locate/locate.1, locate/locatedb.5, locate/updatedb.1, xargs/xargs.1:
4648 Added BUGS section to manual pages. This section includes information about known bugs and how to report new bugs.
4650 * AUTHORS: Identify the current maintainer.
4652 * TODO: Removed the TODO items which have now been done.
4654 * THANKS: Added Bruno Haible and Bob Proulx.
4656 * xargs/xargs.c: xargs/xargs.c (DO_MULTIBYTE): New macro.
4657 (mbstrstr): New function.
4658 (do_insert): Use it instead of strstr.
4660 * config.guess, config.sub:
4661 Use config.guess and config.sub from automake
4664 Bruno Haible: (fstype_to_string) Don't define this function if
4665 HAVE_F_FSTYPENAME_IN_STATFS is defined.
4668 Bruno Haible: Prefer the 4.4BSD API (if present) to the 4.3BSD API,
4669 because some 4.4BSD systems have <mntent.h> but no /etc/mtab file.
4671 * doc/find.texi, find/find.1:
4672 Applied patch 1498 (documenting the backslash escape sequence)
4674 * locate/updatedb.sh: Applied (my own version of) Savannah patch 1601.
4677 Applied Savannah patch #1547 (document the fact that printf
4678 field-width specifiers are supported).
4681 Applied Savannah patch #1499 (adds final newline to usage message).
4683 2003-06-14 James Youngman <jay@gnu.org>
4685 * NEWS, configure.in:
4686 Updated version number to 4.2.0-CVS [not ready for release yet]
4688 * 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
4689 also need stpcpy (e.g. for Solaris)
4691 * intl/dcigettext.c:
4692 plural_lookup: don't use a variable called "index", because we may
4693 have done "#define strchr index", in which case using a variable
4694 called index will prevent us calling strchr(p, ch) in the same scope.
4696 * 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:
4697 Updated copyright years and the address of the FSF
4699 * aclocal.m4, config.h.in, configure:
4700 Removed files that are generated from other files (e.g. configure)
4702 * NEWS: Updated NEWS file for 4.1.20.
4704 * 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:
4705 Updates to the i18n files to ensure that 'make dist' succeeds
4707 * lib/posix/.cvsignore, lib/posix/Makefile.am,
4708 lib/posix/Makefile.in, lib/posix/regex.h, lib/strftime.c,
4709 lib/strncasecmp.c, lib/strspn.c, lib/strstr.c, lib/strtol.c,
4710 lib/strtoul.c, lib/strtoull.c, lib/strtoumax.c, lib/wait.h,
4711 lib/waitpid.c, lib/xalloc.h, lib/xgetcwd.c, lib/xmalloc.c,
4712 lib/xstat.in, lib/xstrdup.c, lib/xstrtol.c, lib/xstrtol.h,
4713 lib/xstrtoul.c, lib/xstrtoul.h, lib/xstrtoumax.c, lib/yesno.c,
4714 locate/Makefile.am, locate/Makefile.in, locate/locate.c,
4715 locate/testsuite/Makefile.in, m4/.cvsignore, m4/ChangeLog,
4716 m4/Makefile.am, m4/Makefile.am.in, m4/Makefile.in, m4/README,
4717 m4/afs.m4, m4/assert.m4, m4/c-bs-a.m4, m4/check-decl.m4,
4718 m4/codeset.m4, m4/d-ino.m4, m4/d-type.m4, m4/error.m4,
4719 m4/fnmatch.m4, m4/fnmatchcase.m4, m4/fstypename.m4, m4/getline.m4,
4720 m4/gettext.m4, m4/glibc.m4, m4/glibc21.m4, m4/iconv.m4,
4721 m4/inttypes_h.m4, m4/isc-posix.m4, m4/jm-glibc-io.m4,
4722 m4/jm-macros.m4, m4/jm-mktime.m4, m4/lcmessage.m4, m4/libintl.m4,
4723 m4/link-follow.m4, m4/ls-mntd-fs.m4, m4/lstat-slash.m4,
4724 m4/lstat.m4, m4/malloc.m4, m4/mbstate_t.m4, m4/memcmp.m4,
4725 m4/prereq.m4, m4/progtest.m4, m4/readdir.m4, m4/realloc.m4,
4726 m4/regex.m4, m4/st_dm_mode.m4, m4/st_mtim.m4, m4/stat.m4,
4727 m4/strerror_r.m4, m4/strftime.m4, m4/timespec.m4, m4/uintmax_t.m4,
4728 m4/ulonglong.m4, m4/xstrtoumax.m4, xargs/Makefile.am,
4729 xargs/Makefile.in, xargs/testsuite/Makefile.in,
4730 find/testsuite/Makefile.in, lib/.cvsignore, lib/Makefile.am,
4731 lib/Makefile.in, lib/alloca.c, lib/ansi2knr.1, lib/ansi2knr.c,
4732 lib/argmatch.c, lib/argmatch.h, lib/basename.c, lib/basename.h,
4733 lib/dirname.c, lib/dirname.h, lib/error.c, lib/error.h,
4734 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/fnmatch.c,
4735 lib/fnmatch.h, lib/getline.c, lib/getline.h, lib/getopt.c,
4736 lib/getopt.h, lib/getopt1.c, lib/human.c, lib/human.h,
4737 lib/idcache.c, lib/malloc.c, lib/memcmp.c, lib/memcpy.c,
4738 lib/memset.c, lib/mktime.c, lib/modechange.c, lib/modechange.h,
4739 lib/pathmax.h, lib/quotearg.c, lib/quotearg.h, lib/realloc.c,
4740 lib/regex.c, lib/regex.h, lib/rpmatch.c, lib/savedir.c,
4741 lib/savedir.h, lib/stpcpy.c, lib/strcasecmp.c, lib/strdup.c,
4742 find/Makefile.am, find/Makefile.in, find/find.c, find/pred.c:
4743 Updated to work with current version of gnulib
4745 * import-gnulib.sh: New file.
4747 * config.h.in, configure, configure.in, doc/Makefile.in, import-gnulib.sh:
4748 Updated to work with current version of gnulib
4750 * README-CVS: New file.
4752 * Makefile.am, Makefile.in, README-CVS, aclocal.m4:
4753 Updated to work with current version of gnulib
4755 2001-06-09 Kevin Dalley <kevin@seti.org>
4758 Changes the location of bison.simple after running bison on local
4761 * ChangeLog: *** empty log message ***
4763 * Makefile.in, aclocal.m4, config.h.in, configure,
4764 doc/Makefile.in, find/Makefile.in, find/testsuite/Makefile.in,
4765 lib/Makefile.in, lib/posix/Makefile.in, locate/Makefile.in,
4766 locate/testsuite/Makefile.in, m4/Makefile.in, xargs/Makefile.in,
4767 xargs/testsuite/Makefile.in: Updates mostly from gettext-0.10.38
4769 * ABOUT-NLS: * ABOUT-NLS: updated from gettext-0.10.38.
4771 * configure.in: * configure.in: add tr to ALL_LINGUAS.
4773 * intl/config.charset, intl/dcigettext.c, intl/dcngettext.c,
4774 intl/dngettext.c, intl/libgnuintl.h, intl/localcharset.c,
4775 intl/locale.alias, intl/ngettext.c, intl/plural.y,
4776 intl/ref-add.sin, intl/ref-del.sin: updated from gettext-0.10.38
4778 * intl/cat-compat.c, intl/linux-msg.sed, intl/po2tbl.sed.in,
4779 intl/xopen-msg.sed, m4/ChangeLog: *** empty log message ***
4782 * jm-macros.m4 (jm_MACROS): remove jm_ICONV, which is replaced by
4783 AM_ICONV, which is imported from gettext-0.10.38. removed
4784 jm_GLIBC21, which is required in AM_GNU_GETTEXT, which is
4785 imported from gettext-0.10.38.
4787 * po/stamp-cat-id: * stamp-cat-id: Remove file.
4789 * po/Makefile.in.in: * Makefile.in.in: Upgrade to gettext-0.10.38.
4791 * po/ChangeLog: * cat-id-tbl.c: Remove file.
4793 * po/de.po, po/es.po, po/et.po, po/fr.po:
4794 * fr.po, et.po, es.po, de.po: updated translations to
4797 * po/tr.po: * tr.po: New Turkish translation.
4799 * m4/ChangeLog: *** empty log message ***
4801 * intl/dgettext.c, intl/explodename.c, intl/finddomain.c,
4802 intl/gettext.c, intl/gettext.h, intl/gettextP.h,
4803 intl/hash-string.h, intl/intl-compat.c, intl/l10nflist.c,
4804 intl/libgettext.h, intl/loadinfo.h, intl/loadmsgcat.c,
4805 intl/localealias.c, intl/plural.c, intl/textdomain.c,
4806 intl/ChangeLog, intl/Makefile.in, intl/VERSION,
4807 intl/bindtextdom.c, intl/dcgettext.c: Updated from gettext-0.10.38
4810 reflects addition of codeset.m4 from gettext-0.10.38, automatically
4813 * m4/codeset.m4, m4/gettext.m4, m4/glibc21.m4, m4/iconv.m4,
4814 m4/isc-posix.m4, m4/lcmessage.m4, m4/progtest.m4: *
4815 progtest.m4, lcmessage.m4, isc-posix.m4, iconv.m4,
4816 glibc21.m4, gettext.m4, codeset.m4: updated from
4819 * ChangeLog: *** empty log message ***
4821 * THANKS: added "Gerrit P. Haase" <gerrit.haase@t-online.de>
4823 * m4/ChangeLog, locate/testsuite/.cvsignore,
4824 xargs/testsuite/.cvsignore, config.h.in, configure, aclocal.m4,
4825 doc/.cvsignore: *** empty log message ***
4827 * m4/jm-macros.m4: * jm-macros.m4 (jm_MACROS): add jm_FSTYPENAME
4829 * doc/Makefile.in: *** empty log message ***
4832 * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
4833 created by dvips. This should be taken care of by automake, but
4834 the code is commented out.
4836 2001-06-09 Kevin Dalley <kevin@seti.org>
4838 * ABOUT-NLS: updated from gettext-0.10.38.
4840 * configure.in: add tr to ALL_LINGUAS.
4842 * doc/Makefile.am (MOSTLYCLEANFILES): add find.cps, which is
4843 created by dvips. This should be taken care of by automake, but
4844 the code is commented out.
4846 2001-06-05 Kevin Dalley <kevin@seti.org>
4848 * locate/updatedb.sh: replace "whoami" with "id -u" when testing
4851 2001-06-04 Kevin Dalley <kevin@seti.org>
4853 * locate/testsuite/Makefile.am (DIST_SUBDIRS): remove second
4854 instance of DIST_SUBDIRS.
4856 * locate/Makefile.am (install-data-hook): changed install target
4857 to install-data-hook, which still installs other files.
4859 * doc/Makefile.am (MOSTLYCLEANFILES): added find.cps, which should
4860 probably be handled by automake.
4862 * doc/mdate-sh: removed file in doc directory. It now exists only
4863 in top_srcdir, but this changed required a patch to automake.
4865 2001-05-20 Kevin Dalley <kevin@seti.org>
4869 * lib/Makefile.am (EXTRA_DIST): add strcasecmp.c
4871 * find/testsuite/Makefile.am (EXTRA_DIST): new tests:
4872 find.gnu/name-opt.exp find.gnu/perm.exp find.gnu/perm.xo
4873 find.gnu/prune-default-print.exp find.gnu/prune-default-print.xo
4875 * configure.in: update to 4.1.7
4877 * config.sub, config.guess: upgraded to recent versions of
4878 config.sub and config.guess.
4880 * locate/updatedb.sh: Add space to "#! /bin/sh"
4882 * configure.in: Add id to ALL_LINGUAS
4884 * lib/Makefile.am (EXTRA_DIST): getline.[ch] added
4885 (libfind_a_SOURCES): getline.[ch] removed since getline.c is not
4888 2001-05-20 Lionel CONS <lionel.cons@cern.ch>
4890 * find/find.c: Fixed security holes. 1. There is a race
4891 condition between the lstat() to detect a symbolic link and the
4892 actual chdir(). 2. An attacker can move directories while find
4893 is _inside_ so that chdir(..) goes out of the intended file tree.
4895 * lib/modetype.h: support for Solaris door files is added.
4897 * lib/filemode.c: S_ISDOOR is undef'ed if STAT_MACROS_BROKEN
4899 * find/pred.c (pred_type): -D option (for Solaris door files) is
4902 * find/parser.c (insert_type): -D option (for Solaris door files)
4905 * find/find.1: -D option (for Solaris door files) is documented
4907 * doc/find.texi (Type): -D option (for Solaris door files) is
4910 2001-05-02 Kevin Dalley <kevin@seti.org>
4912 * configure.in: Change AC_CHECK_MEMBERS to conform to new
4913 autoconf. Add Danish.
4915 2001-01-20 Kevin Dalley <kevin@seti.org>
4917 * doc/find.texi (Adding Tests): Place space in "#! /bin/sh".
4919 * find/testsuite/find.gnu/prune-default-print.xo,
4920 find/testsuite/find.gnu/prune-default-print.exp: test for "find
4921 . -prune" which passes after changes. Also see name-opt.exp.
4923 * find/util.c (get_new_pred):
4924 * find/tree.c (set_new_parent):
4925 * find/parser.c (various parse functions):
4926 * find/find.c (main):
4927 (default_prints): new function
4928 * find/defs.h (struct predicate): added no_default_print
4929 side_effects are no separated from no_default_print. predicates
4930 which cause side effects should not be reordered (optimized).
4931 predicates which cause printing should have printing turned off.
4932 Printing statements also cause side effects.
4934 2000-10-29 Bruno Haible <haible@ilog.fr>
4936 * locate/code.c (main), doc/find.texi: improve handling of
4937 non-ASCII characters used old format.
4939 2000-10-21 Paul Eggert <eggert@twinsun.com>
4941 If open + fchdir fails, fall back on xgetcwd + chdir.
4942 The old code tested for this at compile-time,
4943 but SunOS 4.1.4 fchdir can fail at run-time.
4945 * find/defs.h (fchdir): Define to -1 if not available.
4946 * find/defs.h (starting_dir, starting_desc):
4947 Always declare. starting_dir now points to const.
4948 * find/find.c (starting_dir, starting_desc): Likewise.
4949 * find/find.c (starting_dir):
4950 Now "." if starting_desc is nonnegative, for benefit of diagnostics.
4951 (main, process_top_path, process_dir):
4952 If open + fchdir fails, fall back on xgetcwd + chdir.
4953 * find/pred.c (launch): Likewise.
4955 2000-10-20 Kevin Dalley <kevin@seti.org>
4957 * xargs/xargs.c, locate/updatedb.sh, locate/locate.c (usage),
4958 find/parser.c (parse_help): add bug reporting address to help
4960 2000-10-13 Kevin Dalley <kevin@seti.org>
4962 * depcomp, lib/depcomp: depcomp moved from lib to .
4964 2000-10-11 Kevin Dalley <kevind@rahul.net>
4968 * locate/testsuite/config/unix.exp: set PRUNEFS to "" for the
4971 2000-10-10 Bruno Haible <haible@ilog.fr>
4973 * lib/Makefile.am (libfind_a_SOURCES): added yesno.c
4975 * lib/yesno.c, lib/rpmatch.c: new files.
4977 * find/pred.c: use function yesno().
4979 2000-10-10 Kevin Dalley <kevind@rahul.net>
4981 * locate/testsuite/Makefile.am: Added missing \ at end of
4984 * locate/testsuite/locate.gnu/ignore_case3.xo,
4985 locate/testsuite/locate.gnu/ignore_case3.exp,
4986 locate/testsuite/locate.gnu/ignore_case2.exp,
4987 locate/testsuite/locate.gnu/ignore_case1.xo,
4988 locate/testsuite/locate.gnu/ignore_case1.exp: place locatedb
4989 inside tmp directory, add subdir directory under tmp.
4991 * locate/testsuite/config/unix.exp: clean up tmp after test is
4994 2000-10-10 Kevin Dalley <kevind@rahul.net>
4996 * locate/testsuite/config/unix.exp (Repository):
4998 2000-10-09 Kevin Dalley <kevind@rahul.net>
5000 * lib/fnmatch.c, lib/fnmatch.h: reverted to older version of
5001 fnmatch which works with Solaris.
5003 * locate/testsuite/config/unix.exp: dejagnu unix.exp
5005 * xargs/testsuite/config/unix.exp: remove temporary file
5007 * xargs/xargs.c: spelling correction
5009 * m4/prereq.m4: updated and changed some macros
5011 * m4/jm-macros.m4: replaced jm_FUNC_FNMATCH with
5012 kd_FUNC_FNMATCH_CASE_REPL
5014 * m4/timespec.m4, m4/strerror_r.m4, m4/mbstate_t.m4,
5015 m4/largefile.m4, m4/gettext.m4, m4/fnmatchcase.m4, m4/d-type.m4,
5016 m4/d-ino.m4, m4/c-bs-a.m4: new m4 macros.
5018 * m4/Makefile.am: add fnmatchcase.m4 and mbstate_t.m4
5020 * locate/testsuite/locate.gnu/ignore_case3.xo,
5021 locate/testsuite/locate.gnu/ignore_case3.exp,
5022 locate/testsuite/locate.gnu/ignore_case2.xo,
5023 locate/testsuite/locate.gnu/ignore_case2.exp,
5024 locate/testsuite/locate.gnu/ignore_case1.xo,
5025 locate/testsuite/locate.gnu/ignore_case1.exp,
5026 locate/testsuite/config/unix.exp: tests related to "--ignore-case"
5029 * locate/testsuite/locate.gnu: testsuite directory
5031 * locate/testsuite/Makefile.am (Repository):
5033 * locate/testsuite: add directory for locate testsuite
5035 * po/findutils.pot: updated file
5037 * po/sv.po, po/ru.po, po/pt_BR.po, po/pl.po, po/nl.po, po/ko.po,
5038 po/it.po, po/gl.po, po/fr.po, po/et.po, po/es.po, po/de.po:
5039 updated various po files.
5041 * locate/updatedb.sh: export TMPDIR, which is used by child
5044 * locate/locate.1, locate/locate.c: add "--ignore-case" option.
5046 * locate/Makefile.am: add testsuite subdirectory
5048 * find/testsuite/find.gnu/perm.xo,
5049 find/testsuite/find.gnu/perm.exp,
5050 find/testsuite/find.gnu/name-opt.xo,
5051 find/testsuite/find.gnu/name-opt.exp: added test suites
5053 * configure.in: add locate/testsuite/Makefile
5055 * doc/find.info*: removed from repository
5057 * doc/find.texi: add documentation for "-i" option.
5059 * aclocal.m4: removed from repository, as it is generated.
5061 * find/pred.c: fixes problem with "find -perm -0100".
5063 * lib/lstat.c, lib/stat.c: removed from repository. These files
5064 are generated from lib/xstat.in.
5066 2000-08-24 Kevin Dalley <kevind@rahul.net>
5068 * doc/find.texi (Invoking xargs): changed @var{-s} to @samp{-s}.
5070 2000-05-13 Kevin Dalley <kevind@rahul.net>
5072 * find/tree.c (opt_expr): move iname and ipath to the front of the
5075 * doc/find.texi (Directories): changed wording for "-prune".
5077 * find/parser.c (parse_prune): set side_effects to true, to
5078 prevent prune from being moved in opt_expr.
5080 2000-04-12 Kevin Dalley <kevind@rahul.net>
5082 * doc/find.texi, doc/permi.texi: fix spellings, add LocalWords.
5084 * lib/Makefile.am: put getline.c back into libfind_a_SOURCES,
5085 since getstr is needed.
5089 * po/POTFILES.in: updated list of files, updated po files.
5092 2000-04-02 Paul Eggert <eggert@twinsun.com>
5094 Add support for large files, and port to Solaris 8 and earlier
5097 * lib/human.c (getenv): Depend on NEED_GETENV_DECL, not
5100 * lib/strftime.c (my_strftime): Make sure we call the system
5101 strftime, not ourselves, when invoking the underlying strftime.
5103 * m4/check-decl.m4 (jm_CHECK_DECLS): Remove memchr, nanosleep.
5105 * m4/jm-macros.m4 (jm_MACROS): Don't check for utime.h. Do not
5106 require jm_BISON, jm_CHECK_TYPE_STRUCT_UTIMBUF, jm_FUNC_LCHOWN,
5107 jm_FUNC_CHOWN, jm_FUNC_NANOSLEEP, jm_FUNC_GROUP_MEMBER,
5108 jm_FUNC_PUTENV, jm_FUNC_GETGROUPS, AM_FUNC_GETLOADAVG,
5109 jm_SYS_PROC_UPTIME, jm_FUNC_FTRUNCATE, jm_FUNC_UTIME. Do not
5110 replace strcasecmp, dup2, gethostname, getusershell, stime,
5111 strcspn, strpbrk, euidaccess, mkdir, rmdir, rpmatch, strndup,
5112 strverscmp, memchr, memmove. Do not check for declaration of
5113 lchown. Remove invocations of AM_FUNC_OBSTACK, AM_FUNC_STRTOD,
5114 POW_LIBM, jm_LANGINFO_CODESET, jm_ICONV. Remove df tests.
5115 (jm_CHECK_ALL_TYPES): Include <sys/stat.h> when checking for
5116 struct stat.st_blksize.
5118 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set environment variable
5119 in shell rather than using putenv, which isn't portable.
5121 * COPYING, lib/alloca.c, lib/dirname.c, lib/error.c,
5122 lib/savedir.c, lib/strstr.c, m4/check-decl.m4, m4/d-ino.m4,
5123 m4/d-type.m4, m4/getline.m4, m4/jm-glibc-io.m4, m4/jm-macros.m4,
5124 m4/jm-mktime.m4, m4/ls-mntd-fs.m4, m4/memcmp.m4, m4/prereq.m4,
5125 m4/readdir.m4, m4/regex.m4, m4/strftime.m4, m4/uintmax_t.m4: Sync
5126 to latest version from sh-utils-2.0g.
5128 * config.guess, config.sub, lib/argmatch.c, lib/argmatch.h,
5129 lib/human.c, lib/human.h, lib/memcpy.c, lib/quotearg.c,
5130 lib/quotearg.h, lib/strtoull.c, lib/strtoumax.c,
5131 lib/xstrtoumax.c, m4/c-bs-a.m4, m4/gettext.m4,
5132 m4/largefile.m4, m4/lcmessage.m4, m4/link-follow.m4,
5133 m4/progtest.m4, m4/strerror_r.m4, m4/timespec.m4,
5134 m4/xstrtoumax.m4: New files, taken from sh-utils-2.0g.
5136 * lib/ansi2knr.1, lib/ansi2knr.c, lib/basename.c, lib/getopt.h,
5137 lib/fnmatch.c, lib/fnmatch.h, lib/modechange.c: Sync to latest
5138 unreleased version of GNU tar (between 1.13.17 and 1.13.18).
5140 * lib/basename.h, lib/waitpid.c: New files, taken from same
5143 * lib/regex.c, lib/regex.h: Sync to GNU grep 2.4.2.
5145 * lib/posix/Makefile.am, lib/posix/regex.h: New files, taken from
5148 * lib/strftime.c: Sync to textutils 2.0e.
5150 * acconfig.h, depcomp, lib/strcasecmp.c, m4/check-type.m4,
5151 m4/const.m4, m4/decl.m4, m4/lfs.m4, m4/mktime.m4, m4/perl.m4,
5152 m4/putenv.m4, m4/uptime.m4, m4/utimbuf.m4, m4/utime.m4,
5153 m4/utimes.m4: Remove these files; no longer needed.
5155 * configure.in (AC_CANONICAL_HOST, AC_SYS_LARGEFILE,
5156 jm_AC_TYPE_UINTMAX_T): Add.
5157 (CACHE_IDS, FSTYPE_STATVFS, FSTYPE_USG_STATFS, FSTYPE_AIX_STATFS,
5158 FSTYPE_MNTENT, FSTYPE_STATFS, FSTYPE_GETMNT): Add comment, so that
5159 we don't need acconfig.h.
5160 (AC_CHECK_TYPE): Add ssize_t.
5161 (AC_REPLACE_FUNCS): Add waitpid.
5162 (AC_CHECK_FUNCS): Remove basename.
5163 (AC_FUNC_MKTIME): Remove.
5164 (LIBOBJS): Add no-ops to work around automake 1.4 bug.
5165 (AC_OUTPUT): Add lib/posix/Makefile.
5167 * find/defs.h: Include <config.h>, <sys/types.h>, <sys/stat.h>,
5168 <stdio.h>, <limits.h>, <inttypes.h>. All includers changed to not
5169 include these files, and to include "defs.h" first (since config.h
5170 must be included first).
5171 (CHAR_BIT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
5172 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, MOD_WXUSR,
5173 MODE_R, MODE_RW, MODE_RWX, MODE_ALL): New macros.
5174 (enum permissions_type): New enum.
5175 (struct long_val.negative): New member.
5176 (struct long_val.l_val): Now uintmax_t, not unsigned long.
5177 (struct size_val.size): Likewise.
5178 (struct perm_val): New type.
5179 (struct predicate.perm): Now struct perm_val, not unsigned long.
5180 (struct predicate.type): Now mode_t, not unsigned long.
5181 (list_file): New parameters current_time, output_block_size.
5182 All callers changed.
5183 (savedir, basename): Remove decls.
5184 (output_block_size, start_time): New extern vars.
5186 * find/find.c: Include <human.h>, <savedir.h>.
5187 (output_block_size, start_time): New vars.
5188 (main): Initialize them. No need to check for negative st_size,
5189 since savedir now does it for us.
5191 * find/fstype.c: Include "dirname.h".
5193 (filesystem_type_uncached): Use xstrtoumax instead of xatoi.
5195 * find/parser.c: Include "xstrtol.h".
5196 (get_num_days, get_num, parse_amin, parse_cmin, parse_mmin,
5197 parse_size, parse_used, insert_time, insert_num): Compute using
5198 uintmax_t, not unsigned long.
5199 (parse_amin, parse_cmin, parse_mmin, parse_used, insert_time):
5200 Keep track of whether time was negative before converting it to an
5202 (parse_daystart): Don't assume that localtime succeeds; e.g. it
5203 can fail with 64-bit time_t and 32-bit tm_year.
5204 (parse_perm, insert_type): Compute using mode_t, not unsigned
5206 (insert_type): Use symbolic constants like MODE_ALL instead of
5207 traditional ones like 07777. Set new kind member to indicate
5208 permissions type, instead of using unportable magic numbers.
5209 (make_segment): We will use human_readable to convert most numeric
5210 values, so simplify the cases.
5211 (get_num_days): Write in terms of get_num, to avoid duplicated
5213 (insert_time, insert_num): When debugging, convert large values to
5214 uintmax_t and output with %ju.
5215 (get_num): Use xstrtoumax to do the real work.
5217 * find/pred.c: Include "basename.h", "human.h".
5218 (DEV_BSIZE, ST_BLKSIZE, ST_NBLOCKSIZE): New macros, taken from
5220 (ST_NBLOCKS): Replace with fileutils defn.
5222 (ctime_format): New function.
5223 (pred_fprintf, format_date): Use human_readable to output large
5225 (pred_fprintf): Use ctime_format to output ctime-style dates. Use
5226 base_name to compute the base name of a path. With %m, output the
5227 mode portably using traditional numbers, even if the host uses
5228 some other numbering scheme.
5229 (pred_iname, pred_name): basename -> base_name.
5230 (pred_perm): Use new kind member to deduce permissions type,
5231 instead of relying on magic numbers.
5232 (pred_size): Compute using uintmax_t, not unsigned long. Avoid
5233 overflow if file size is near the maximum.
5234 (pred_type): Compute using mode_t, not unsigned long.
5235 (launch): Use waitpid, not wait. Check for EINTR.
5236 (format_date): Don't assume that localtime succeeds.
5238 * find/util.c (basename): Remove; we now use base_name.
5240 * lib/Makefile.am (SUBDIRS): New macro.
5241 (libfind_a_SOURCES): Add argmatch.h, argmatch.c, basename.h,
5242 basename.c, human.c, human.h, quotearg.c, quotearg.h, xstrtoumax.c.
5243 Remove error.h, error.c, getline.c.
5244 (EXTRA_DIST): Add mktime.c, regex.c.
5246 * lib/listfile.c: Include "human.h".
5247 (alloca): Declare, or include appropriate files to declare.
5248 (DEV_BSIZE, ST_NBLKSIZE, ST_NBLOCKS, ST_NBLOCKSIZE): New macros.
5249 (convert_blocks): Remove.
5250 (list_file): New current_time and output_block_size args.
5251 Revamp quite a bit, to handle large numbers correctly
5252 and to match GNU ls behavior more closely.
5254 * m4/Makefile.am (EXTRA_DIST): Add c-bs-a.m4, gettext.m4,
5255 largefile.m4, lcmessage.m4, link-follow.m4, progtest.m4,
5256 strerror_r.m4, xstrtoumax.m4. Remove check-type.m4, const.m4,
5257 decl.m4, lfs.m4, mktime.m4, perl.m4, putenv.m4, timespec.m4,
5258 uptime.m4, utimbuf.m4, utime.m4, utimes.m4.
5260 * xargs/xargs.c (wait_for_proc): Retry wait if it fails with
5263 2000-04-05 Kevin Dalley <kevind@rahul.net>
5265 * xargs/Makefile.am: add ansi2knr
5267 * xargs/xargs.c: add macros PARAMS rather than P_. Add
5270 * po/POTFILES: new file listing all POFILES.
5272 * m4/gl.po, m4/et.po: new files
5274 * m4/Makefile.am.in: updated file
5276 * m4: update directory
5278 * locate/Makefile.am: create updatedb from updatedb.sh
5280 * locate/updatedb.sh, locate/updatedb.in: removed file. Replaced
5283 * locate/frcode.c, locate/code.c, locate/bigram.c: add macros
5284 PARAMS rather than P_. Add prototypes.
5286 * lib/xstat.in: new file
5288 * lib/Makefile.am: update to latest versions of library files.
5290 * find/testsuite/Makefile.am: add CLEANFILES
5292 * find/util.c: remove definition of basename
5294 * find/util.c, find/tree.c, find/pred.c, find/parser.c,
5295 find/fstype.c, find/find.c, find/defs.h: add macros PARAMS rather
5296 than P_, for consistency, change to prototypes
5298 * find/Makefile.am: Add prototypes and ansi2knr
5300 * configure.in: add Galition and Estonian languages.
5301 Miscellaneous other fixes.
5304 2000-03-11 Kevin Dalley <kevind@rahul.net>
5306 * lib/basename.c: Add file from libit.
5307 * lib/Makefile.am (libfind_a_SOURCES): add basename.c since it is
5308 no longer replaceable.
5310 * find/util.c: Remove definition of basename, which is now in
5311 lib/basename.c (as base_name).
5312 * find/pred.c: Use base_name, not basename.
5313 * find/defs.h: Likewise.
5315 * configure.in : Don't replace basename. Now we use only
5318 2000-02-26 Kevin Dalley <kevind@rahul.net>
5322 * lib/strtoul.c: added to distribution
5324 * configure.in: added strtoul to AC_REPLACE_FUNCS
5326 * configure.in: added jm_CHECK_ALL_TYPE
5328 2000-02-23 Kevin Dalley <kevind@rahul.net>
5330 * po/ChangeLog: removed, merged with top-level ChangeLog.
5332 * po/de.po: new version of German file.
5334 * po/gl.po, po/et.po: new languages, Estonian and Galician.
5336 * locate/updatedb.sh (PRUNEFS): enclose paths in quotes
5338 2000-02-17 Kevin Dalley <kevind@rahul.net>
5340 * po/it.po: new version of Italian file.
5342 * locate/updatedb.sh (prunefs_exp): have sed statement use '*'
5343 rather than the often unsupported '+'.
5345 2000-02-13 Kevin Dalley <kevind@rahul.net>
5347 * configure.in: removed AC_ARG_PROGRAM, which is already in
5350 * locate/Makefile.am (updatedb), locate/updatedb.sh: add
5351 transforms of find, frcode, bigram, and code back into
5352 updatedb.sh, which were accidentally removed.
5354 2000-02-12 Kevin Dalley <kevind@rahul.net>
5356 * lib/wait.h: updated address.
5358 2000-01-26 Kevin Dalley <kevind@rahul.net>
5362 * acconfig.h: added internationalization.
5364 * intl/*: copied from tar-1.13.17.
5366 * locate/Makefile.am, locate/locate.c, locate/code.c:
5367 internationalized file.
5369 * locate/frcode.c, locate/bigram.c: include headers from ../lib
5372 * xargs/Makefile.am, xargs/xargs.c: internationalized directory.
5374 2000-01-26 Kevin Dalley <kevind@rahul.net>
5376 * POTFILES.in: added list of files with translatable strings.
5378 * de.po, es.po, fr.po, it.po, ko.po, nl.po, pl.po, pt_BR.po,
5379 ru.po, sv.po: New, slightly out of date, files imported from the
5380 Translation Project: http://www.iro.umontreal.ca/contrib/po/HTML/,
5381 German, Spanish, French, Italian, Korean, Dutch, Polish, Brazilian
5385 2000-01-24 Kevin Dalley <kevind@rahul.net>
5387 * lib/xmalloc.c, lib/regex.c, lib/getopt.c: internationalization
5388 works with current version of gettext.
5390 * lib/getline.h : added declaration of getstr.
5391 * lib/Makefile.am (libfind_a_SOURCES): added getline.[ch] to
5392 standard compilation. Added internationalization.
5393 * find/Makefile.am (INCLUDES): corrected -I options for building
5394 in other directories.
5395 (LDADD): changes for internationalization.
5397 * configure.in (ALL_LINGUAS): added internationalization.
5398 getline.c is always compiled and linked, because of getstr.
5402 (DISTCLEANFILES): added intl/libintl.h
5403 (AUTOMAKE_OPTIONS): added gnits to AUTOMAKE_OPTIONS
5404 (SUBDIRS): added intl and po
5406 * acconfig.h: added internationalization values
5408 * THANKS: added thanks file for gnits compatibility.
5410 2000-01-22 Kevin Dalley <kevind@rahul.net>
5412 * added intl directory.
5414 * Added internationalization, only with slightly out of date po
5415 files for many locales.
5417 2000-01-18 Kevin Dalley <kevind@rahul.net>
5421 * locate/Makefile.am: remove creation of updatedb, since it is now
5424 * configure.in: updatedb is now created by configure.
5426 * xargs/Makefile.am: added testsuite to xargs directory
5428 * locate/updatedb.in: updatedb is now created by configure
5430 * locate/frcode.c, locate/code.c, locate/bigram.c: change return
5431 from main to int. Replace getstr with getline, where possible.
5433 * locate/Makefile.am: place frcode, code, bigram in
5436 * lib/xstrdup.c, lib/xmalloc.c, lib/xgetcwd.c, lib/xalloc.h,
5437 lib/strtol.c, lib/strstr.c, lib/strftime.c, lib/strdup.c,
5438 lib/stpcpy.c, lib/stat.c, lib/savedir.h, lib/savedir.c,
5439 lib/regex.h, lib/regex.c, lib/realloc.c, lib/pathmax.h,
5440 lib/modechange.h, lib/modechange.c, lib/mktime.c, lib/memset.c,
5441 lib/memcmp.c, lib/malloc.c, lib/lstat.c, lib/idcache.c,
5442 lib/getopt1.c, lib/getopt.c, lib/getopt.h, lib/getline.c,
5443 lib/getline.h, lib/fnmatch.c, lib/fnmatch.h, lib/filemode.c,
5444 lib/filemode.h, lib/fileblocks.c, lib/error.c, lib/error.h,
5445 lib/dirname.c, lib/alloca.c: updated to newer version of file from
5448 * find/version.c: version number is now automatically generated by
5451 * find/fstype.c (filesystem_type_uncached): fixes bug described as
5452 follows: When 'find' looks for a fstype, it parses the /etc/mtab
5453 until it finds the good line. But, if there is, before the good
5454 line, a line whose mountpoint is unreachable, it fails.
5456 * doc/texinfo.tex: updated to newer version
5458 * doc/find.texi: added version.texi, fixed a few documentation bugs.
5460 * configure.in: new m4 features.
5462 * Makefile.am: moved testsuite to below corresponding directories
5465 * acconfig.h: updated to match new m4 files.
5467 * m4: added m4 directory, largely borrowed from Jim Meyering's
5470 2000-01-17 Kevin Dalley <kevind@rahul.net>
5472 * doc/find.texi (Multiple Files): placed missing xargs in examples
5474 * find/testsuite/find.gnu/depth.exp: added find tests to test
5477 * doc/find.texi: include version.texi for automatic determination
5478 of version number, update bug report email address to
5479 bug-findutils@gnu.org.
5480 (Combining Primaries With Operators): add indices for " ,", "()",
5483 2000-01-17 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5485 * find/tree.c (opt_expr): Never rearrange the arguments of the
5486 comma operator, since it is not commutative. Remove useless
5489 2000-01-17 Jonathan R. Ferro <jferro@corwin.ece.cmu.edu>
5491 * find/find.c (process_path): fix problem with "-depth" which is
5492 tested in depth.exp test.
5494 1999-08-15 Kevin Dalley <Kevin Dalley <kevin@seti.org>>
5496 * find/fstype.c (filesystem_type_uncached): a stat failure with
5497 EACCESS will ignore this file system keep on looking. Patch
5498 suggested by Vincent Danjean <vdanjean@ens-lyon.fr>.
5500 1999-08-15 Mark Kettenis <kettenis@gnu.org>
5502 * xargs/xargs.c (LONG_MAX): Define if necessary.
5503 (main): If ARG_MAX is -1 (that is sysconf
5504 (_SC_ARG_MAX) returns -1) the system does not impose a limit. In
5505 that case, use LONG_MAX as the limit.
5507 1999-08-15 Kevin Dalley <Kevin Dalley <kevind@rahul.net>
5509 * find/version.c: version string is now set by config.h
5511 1999-08-08 Kevin Dalley <kevin@seti.org>
5515 * README-alpha: added alpha README file
5517 * find/defs.h: move lstat declarations into defs.h
5519 * xargs/Makefile.am, testsuite/Makefile.am, locate/Makefile.am,
5520 lib/Makefile.am, find/Makefile.am, doc/Makefile.am, configure.in,
5521 Makefile.am: update for automake-1.4
5523 1999-08-02 Kevin Dalley <kevind@rahul.net>
5525 * AUTHORS: added file listing AUTHORS
5527 * lib/Makefile.am: modified code for EXTRA sources
5529 1999-01-30 Kevin Dalley <kevind@rahul.net>
5531 * added const to declaration of basename, which should satisfy
5532 Linux as well as Hurd (fixes bug #31325).
5534 1998-12-04 Kevin Dalley <kevind@rahul.net>
5536 * lib/nextelem.c: removed declaration of strdup and free, which
5537 meets GNU coding standards and allows compilation on more
5540 * find.texi: corrected explanation of -amin option which described
5541 hours instead of minutes
5543 1998-09-26 Kevin Dalley <kevind@rahul.net>
5545 * lib/getline.c: fix getstr so that it correctly handles long file
5548 1998-09-20 Kevin Dalley <kevind@rahul.net>
5550 * removed more function declarations to meet GNU coding standards
5552 1998-08-30 Kevin Dalley <kevind@rahul.net>
5554 * lib/nextelem.c: removed declaration of strdup and free, which
5555 meets GNU coding standards and allow compilation on sparc
5557 * corrected explanation of -amin option which described hours
5560 1998-02-27 Kevin Dalley <kevind@rahul.net>
5562 * locate/locate.c: add --existing option to locate, which only
5563 prints the names of files which still exist
5565 1998-02-08 Kevin Dalley <kevind@rahul.net>
5567 * locate/locate.c: corrected get_short so that it correctly
5568 returns negative numbers.
5570 * remove declarations of various string functions. Removing the
5571 declarations almost matches the GNU Coding Standards.
5573 1997-03-03 Kevin Dalley <kevind@rahul.net>
5575 * xargs/xargs.c: xargs fixed to prevent occasional core dumping.
5577 1997-01-11 Kevin Dalley <kevind@rahul.net>
5579 * locate/updatedb.sh: add --localuser option to updatedb, which
5580 allows find to be run as nobody, while allowing database file to
5581 be created as root, change suggested by
5582 <Bernd_Eckenfels@Wittumstrasse13.76646Bruchsal.de>
5584 1996-12-28 Kevin Dalley <kevind@rahul.net>
5585 * added PRUNEFS as variable in updatedb and --prunefs as option to
5588 1996-05-27 Kevin Dalley <kevind@rahul.net>
5590 * updatedb.sh: when NETPATHS is used, only su to NETUSER if whoami
5592 1996-04-27 Kevin Dalley <kevind@rahul.net>
5594 * lib/getline.c (getstr): verify that nchars_avail is *really*
5595 greater than 0; set *n to a large enough number, stops some core
5598 Thu Nov 3 09:23:33 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
5602 * locate/Makefile.am: Move updatedb from LIBSCRIPTS to SCRIPTS.
5604 * Makefile.am (distname): Change distribution name from find to
5607 * testsuite/config/unix.exp: Don't abuse xfail; simulate it correctly.
5609 * locate/Makefile.am (CLEANFILES): Fix typo.
5611 Wed Nov 2 15:11:52 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
5615 * lib/listfile.c find/defs.h (list_file): Take a stream arg.
5616 * find/pred.c (pred_ls): pass it.
5617 * find/parser.c pred.c defs.h (parse_fls, pred_fls): New functions.
5619 Tue Oct 25 16:09:04 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
5621 * find/pred.c (pred_fprintf): Flush output after \c. From Chapman
5624 * find/parser.c (insert_fprintf): Warn about unrecognized \ and %
5627 Tue Oct 18 00:03:10 1994 David J. MacKenzie <djm@duality.gnu.ai.mit.edu>
5629 * find/defs.h parser.c pred.c tree.c util.c: Globally change
5630 "victim" to "primary".
5632 * find/parser.c (insert_fprintf): For 'c' format, don't lose the
5633 need_stat information. From Chapman Flack.
5635 * doc/find.texi perm.texi: New files.
5636 * configure.in: Configure the doc directory.
5638 * find/pred.c (pred_regex): Check that the regex matched the whole
5641 Wed Oct 12 17:13:47 1994 David J. MacKenzie (djm@duality.gnu.ai.mit.edu)
5643 * find/find.c (main): Tell what the invalid arg is.
5646 Fri Oct 7 12:33:24 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5648 * find/parser.c: Add -mount as an alias for -xdev.
5649 From Klaus.Steinberger@physik.uni-muenchen.de (Klaus Steinberger).
5651 * lib/modechange.c: Make umask_value unsigned short.
5653 * xargs/xargs.c: Use symbolic constants in longopts.
5656 Wed Oct 5 11:23:09 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5658 * xargs/xargs.c (main, read_line, read_string, do_exec): Pass
5659 along the lengths of the args.
5660 (main): Calculate length of replace_pat.
5661 (push_arg, do_insert): Use those lengths instead of calculating
5664 Tue Oct 4 10:02:05 1994 David MacKenzie <djm@churchy.gnu.ai.mit.edu>
5666 * locate/updatedb.sh Makefile.in: Add substitutions to get
5667 the transformed program names.
5669 * xargs/xargs.c: Put back the global variables for now.
5670 Rename some variables. Increase default args_per_exec.
5671 Use boolean where applicable.
5672 (main): Reduce default arg_max by 2048 for POSIX.2.
5673 (read_string): Don't check EOF string.
5674 (read_line, read_string): Take initial args size into account.
5676 Sat Oct 1 17:43:13 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5678 * find/pred.c (launch): Use pid_t.
5680 * xargs/xargs.c (EOF_STR): Define and use.
5681 [__STDC__]: Declare xrealloc and xmalloc using void *.
5682 * find/defs.h: Likewise.
5684 * find/defs.h: Only declare stpcpy if !HAVE_STPCPY.
5686 * xargs/xargs.c: Replace most global variables with structure
5687 pointers passed as arguments. Use pid_t.
5688 * lib/wait.h: Include sys/wait.h if HAVE_SYS_WAIT_H.
5689 * configure.in: Call AC_TYPE_MODE_T and AC_HEADER_SYS_WAIT.
5691 * xargs/xargs.c: Improve paging performance and memory
5692 fragmentation by building command arguments in a pre-allocated
5693 buffer and re-implementing the child pid list as an expandable
5694 array. From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
5696 Thu Sep 29 11:38:07 1994 David J. MacKenzie (djm@geech.gnu.ai.mit.edu)
5698 * xargs/xargs.c [__STDC__]: Prototype declarations.
5700 Wed Sep 28 11:25:53 1994 David J. MacKenzie (djm@duality.gnu.ai.mit.edu)
5702 * find/fstype.c [AFS, __STDC__]: Fix definition of _VICEIOCTL.
5704 Tue Sep 27 08:14:27 1994 David MacKenzie <djm@churchy.gnu.ai.mit.edu>
5706 * find/fstype.c (fstype_to_string): Add more cases. Use
5707 INITMOUNTNAMES if defined.
5708 * find/defs.h: Change boolean typedef from char to int.
5709 * configure.in: Check for mktime.
5711 Tue Sep 27 01:20:28 1994 Kaveh R. Ghazi (ghazi@noc.rutgers.edu)
5713 * configure.in: Add AC_HEADER_STAT.
5714 * lib/listfile.c, lib/modetype.h: Add STAT_MACROS_BROKEN.
5716 * find/pred.c: Move the inclusion of defs.h ahead of the first
5717 test of _POSIX_VERSION.
5719 * lib/xgetcwd.c: Remove _POSIX_VERSION, rely only on HAVE_GETCWD.
5721 Mon Sep 26 16:43:01 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5723 * configure.in: Add AC_CONFIG_HEADER.
5724 * find/*.c locate/*.c xargs/*.c: Include config.h.
5725 * locate/updatedb.sh: Add --version; --old -> --old-format.
5727 Sun Sep 25 23:43:37 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5729 * find/* [__STDC__]: Prototype declarations.
5731 * locate/updatedb.sh: Account for renaming code and frcode.
5733 * find/find.c (process_path): Store dev and ino of directories in
5734 current branch to avoid symlink loops. From DJ Delorie
5736 (process_dir): If following symlinks, don't cd to ..; instead,
5737 cd to the starting directory and then to the parent directory.
5738 (main) [HAVE_FCHDIR]: Save the dev, ino of the starting directory.
5739 (process_top_path) [HAVE_FCHDIR]: Use it.
5740 * find/pred.c (launch) [HAVE_FCHDIR]: Likewise.
5741 * defs.h [HAVE_FCHDIR]: Declare starting_desc instead of starting_dir.
5742 * configure.in: Check for dev_t, ino_t, fchdir, fcntl.h.
5744 Fri Sep 23 11:55:38 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5746 * lib/listfile.c: Change #ifdef S_IFLNK to #ifdef S_ISLNK.
5747 From Andreas Luik <luik@isa.de>.
5749 Thu Sep 22 11:42:40 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5751 * locate/locate.c (last_literal_end): Dynamically allocate enough
5752 memory for the subpattern.
5754 Wed Sep 21 06:12:56 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5756 * locate/locate.c (locate): Warn if database is >8 days old.
5757 From Ian Lance Taylor.
5759 * xargs/xargs.c (do_exec), find/pred.c (launch): Set SIGCHLD to
5760 default. From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
5761 * find/find.c pred.c util.c lib/listfile.c: Remove fflush(stdout)
5762 calls before error. error does it, and doesn't trash errno.
5763 From tsi@gpu.srv.ualberta.ca (Marc Aurele La France).
5765 * find/fstype.c (filesystem_type_uncached): Don't trust mtab dev
5766 number on HPUX. From Andreas Luik <luik@isa.de>.
5767 (filesystem_type_uncached): Don't cache unknown file system
5768 types. From casper@fwi.uva.nl (Casper Dik).
5770 * locate/updatedb.sh: Collect results in temp file and rename it
5771 atomically. From Andreas Luik <luik@isa.de>.
5773 * xargs/xargs.c (parse_num): Print a long using %ld. From Jim
5776 * find/defs.h find.c parser.c pred.c util.c, lib/nextelem.c:
5777 Emulate strchr and strrchr with index and rindex, not vice versa.
5779 Remove man directory; move man pages to the directories of the
5780 programs they document.
5782 * locate/frcode.c: Renamed from code.c.
5783 * locate/frcode.c (put_short): Renamed from puthalfword.
5784 * locate/locate.c (get_short): Renamed from gethalfword.
5785 (last_literal_end): Renamed from patprep.
5786 (locate): Recognize old-format databases too.
5787 * locate/locatedb.h: Add defines for old-format databases.
5788 * locate/bigram.c locate/code.c: Put back programs to create
5789 old-format databases.
5790 * locate/updatedb.sh: Take --old option to use them.
5792 Tue Sep 20 15:41:11 1994 David MacKenzie <djm@geech.gnu.ai.mit.edu>
5794 * configure.in: Update for Autoconf v2.
5795 * find/pred.c lib/savedir.c: Use new symbols for dir header.
5796 * locate/updatedb.sh: Add --help option.
5798 Sun Feb 13 11:21:58 1994 Jim Meyering (meyering@comco.com)
5800 * man/Makefile.in [man1ext, man5ext]: Set man5ext (not man1ext) to 5.
5802 Sun Aug 1 22:30:55 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
5804 * bigram.c: File removed.
5805 * getline.c, memcmp.c, locatedb.h, updatedb.1, locatedb.5: New files.
5806 * updatedb.sh: Take command line options.
5807 Don't do bigram compression.
5808 * code.c, locate.c: Don't do bigram compression.
5809 Write and read counts in network byte order.
5810 Handle arbitrarily long paths.
5811 Use a magic number at the start of the databases.
5813 Thu Jul 29 20:44:53 1993 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
5815 * Makefile.in (config.status): Run config.status --recheck, not
5816 configure, to get the right args passed.
5818 Thu Jul 22 12:53:12 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
5820 * listfile.c (list_file): Print inode as a long.
5822 Wed Jul 14 14:14:45 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
5824 * fstype.c [STDC_HEADERS]: Include stdlib.h.
5826 * Move unistd.h include from parser.c and pred.c to defs.h.
5828 Wed Jun 30 14:14:47 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
5830 * updatedb.sh: Construct PRUNEREGEX from PRUNEPATHS with sed.
5831 Prune /afs. Change NFSUSER to NETUSER and NFSPATHS to NETPATHS.
5833 Tue Jun 29 12:19:58 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
5835 * pred.c (pred_fprintf): Abort in switch if `c' is not A, C, or T.
5837 Mon Jun 28 00:18:52 1993 David J. MacKenzie (djm@wookumz.gnu.ai.mit.edu)
5839 * fstype.c (in_afs) [AFS]: New function, derived from code by
5840 Sanjay Ramamurthy <ramams@rpi.edu>.
5841 (filesystem_type_uncached) [AFS]: Call it if the fs type is
5844 * parser.c (parse_size): Recognize b and w suffixes for dd
5847 * code.c (puthalfword): New function.
5849 * locate.c (gethalfword): New function.
5851 From ifado!wb@germany.eu.net (Wilhelm B. Kloke).
5853 * listfile.c: Include pathmax.h.
5854 (get_link_name): Always allocate PATH_MAX + 1 bytes for
5856 * pred.c (pred_fprintf, insert_lname): Call get_link_name.
5858 * fstype.c (filesystem_type, filesystem_type_uncached),
5859 listfile.c (list_file): Take an arg for the path to access.
5860 * pred.c (pred_ls, pred_fstype, pred_fprintf): Pass it.
5862 * find.c (process_dir): Renamed from scan_directory.
5864 Changes from jrs@world.std.com (Rick Sladkey) to chdir into
5865 subdirectories instead of using string concatenation, for speed:
5866 * find.c (process_top_path): New function.
5867 (main): Call it, and xgetcwd.
5868 (process_path, scan_directory): Take new arg, the pathname
5869 relative to ".". Use it and pass it on.
5870 * pred.c (pred_and, pred_comma, pred_negate, pred_or,
5871 pred_xtype, pred_fprintf, pred_empty, insert_lname):
5872 access rel_pathname instead of pathname.
5873 (launch): chdir to starting_dir.
5874 * defs.h: Declare rel_pathname and starting_dir.
5875 * find.c: Define them.
5877 * xgetcwd.c: New file.
5879 * updatedb.sh: Recognize -fstype NFS as well as nfs.
5880 * locate.c (patprep): Skip trailing character classes correctly.
5881 From luik@pharao.stgt.sub.org (Andreas Luik).
5883 * parser.c (parse_group): Make gid a gid_t, not short or int.
5884 (parse_nogroup): Cast gid to unsigned when using it as an array index.
5885 (parse_user, parse_nouser): Similar changes for uid.
5886 * defs.h: Use uid_t and gid_t.
5888 * parser.c (parse_help): New function.
5889 (parse_table): Add --version, -help, and --help options.
5890 Rename struct parser_table_t to struct parser_table.
5891 (parse_version): Exit after printing message, on
5894 * xargs.c, locate.c (main, usage): Add --version and --help
5897 Wed Mar 31 22:39:57 1993 Jim Meyering (meyering@comco.com)
5899 * parser.c: Define isascii macro to be 1 also if STDC_HEADERS.
5902 Wed Mar 31 16:04:07 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
5904 * pred.c (pred_fprintf): If curdepth is 0, don't nuke
5905 segment->text; nuke cp.
5907 Mon Mar 29 15:57:20 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
5911 Fri Mar 26 16:36:59 1993 David J. MacKenzie (djm@hal.gnu.ai.mit.edu)
5913 * pred.c (pred_ilname, pred_iname, pred_ipath): New functions.
5914 (pred_table): Add them.
5915 (insert_lname): New function.
5916 (pred_lname): Call it.
5917 * parser.c (parse_ilname, parse_iname, parse_ipath,
5918 parse_iregex): New functions.
5919 (parse_table): Add them.
5920 (insert_regex): New function.
5921 (parse_regex): Call it.
5923 * fstype.c (filesystem_type): Cache previous result.
5924 (filesystem_type_uncached): New function.
5925 pred.c (pred_fstype, pred_fprintf): Adjust callers to not cache.
5927 * parser.c: Don't define const.
5929 * fstype.c [FSTYPE_STATFS] (fstype_to_string): #ifdef
5930 MOUNT_PC for 386bsd.
5932 Thu Mar 25 18:32:24 1993 David J. MacKenzie (djm@goldman.gnu.ai.mit.edu)
5934 * parser.c (parse_regex): If ignore_case, set up a translate
5935 table for the regex.
5937 * defs.h: Include string.h or strings.h.
5938 * find.c fstype.c parser.c pred.c util.c: Don't.
5940 * nextelem.c [index]: Don't redefine.
5942 Wed Mar 24 17:47:10 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
5944 * xargs.c (wait_for_proc): Exit with a nonrunnable command's exit
5945 status, not the wait status value. From
5946 Andreas Schwab <schwab@lamothe.informatik.uni-dortmund.de>.
5948 * parser.c (make_segment, insert_fprintf), pred.c
5949 (pred_fprintf): Add '%F' to print filesystem type.
5951 * parser.c (parse_fprintf): Check if second arg is missing.
5953 Tue Mar 23 13:18:08 1993 David J. MacKenzie (djm@kropotkin.gnu.ai.mit.edu)
5955 * pred.c (pred_fprintf): For %P, don't move past an assumed
5956 slash if the ARGV element ends with one, because in that case
5959 * parser.c (parse_printf): Check for missing arg.
5960 From smj@cats.com (Steve James).
5962 * parser.c: Add #ifdef around atol decl for Linux.
5964 Fri Dec 11 08:17:07 1992 Jim Meyering (meyering@comco.com)
5966 * defs.h: Remove dcl of process_path.
5967 * find.c: Put dcl of p
5969 * pred.c (pred_fprintf): Don't print "\n" unless it's in the
5972 Mon Oct 21 22:30:35 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
5974 * defs.h, parser.c, pred.c: Rename some types that conflict
5975 with reserved POSIX.1 namespace (ended in _t).
5979 Thu Oct 17 22:39:06 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
5981 * xargs.c: Don't determine memory.h based on POSIX, which
5984 Sat Oct 5 16:11:05 1991 Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
5986 * parser.c (parse_perm): Parse new `-perm +mode' notation.
5987 * pred.c (pred_perm): Interpret same.
5989 Fri Sep 13 14:58:27 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu)
5991 * xargs.c [POSIX]: Always use sysconf to get ARG_MAX.
5993 Thu Sep 5 23:57:06 1991 David J. MacKenzie (djm at apple-gunkies)
5995 * bigram.c, code.c (main): Make path_max int, not unsigned.
5996 * locate.c (main): Check for pathconf failure.
5998 Thu Sep 5 11:54:44 1991 Jim Meyering (meyering at churchy.gnu.ai.mit.edu)
6000 * parser.c (insert_fprintf): Add `\\' escape and fixed `%%'
6002 * pred.c (pred_fprintf): fixed off-by-one indexing problem
6003 when handling [gGuU] printf formats.
6005 Wed Aug 28 20:53:57 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6009 Mon Aug 26 18:57:32 1991 David J. MacKenzie (djm at pogo.gnu.ai.mit.edu)
6011 * bigram.c, code.c: Fix handling of PATH_MAX.
6012 Check for anomalous input line lengths.
6015 Fri Aug 23 11:00:18 1991 David J. MacKenzie (djm at apple-gunkies)
6017 * pred.c (pred_fprintf): Round block number up to get K.
6019 Thu Aug 22 10:46:30 1991 David J. MacKenzie (djm at apple-gunkies)
6021 * pred.c (pred_fprintf, pred_lname) [_AIX]: Allocate PATH_MAX
6022 byte for link object since st_size is wrong.
6024 * listfile.c (list_file): Don't convert blocks to kilobytes if
6025 env. var POSIX_ME_HARDER is defined.
6027 * fstype.c [FS_AIX_STATFS]: New case.
6029 * configure: Make sure the sys/mount.h is the 4.4BSD version
6030 with grep instead of just testing whether it exists.
6032 * listfile.c (list_file): Add 1 to number of 512-byte blocks
6033 before dividing to get 1K blocks (so we round up, not down).
6035 Wed Aug 21 13:02:46 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6039 * parser.c (parse_fprintf), pred.c (pred_fprintf): Add %k
6040 conversion to print 1K blocks.
6042 * listfile.c: Print counts of 1K blocks, for consistency with
6043 new fileutils release. Bad timing, there.
6047 * pred.c [VOID_CLOSEDIR]: Fake a return value for closedir,
6048 which returns void on some systems, like Sequents.
6049 * configure: Check sys/dir.h for 'void closedir'.
6051 Thu Aug 15 16:07:46 1991 David J. MacKenzie (djm at frob)
6053 * modetype.h: Define POSIX.1 stat stuff if missing.
6054 * pred.c, parser.c, find.c, fstype.c: Don't define it.
6055 * updatedb.sh: Use a variable substitution method like configure's.
6056 * Makefile.in: Add datadir variable to separate programs from
6059 * parser.c, pred.c: Rename -fulldays to -daystart.
6061 * defs.h, find.c, parser.c, pred.c: Add many new predicates
6062 from Jay Plett (jay@princeton.edu).
6064 Wed Aug 14 14:37:06 1991 David J. MacKenzie (djm at bleen)
6066 * parser.c (parse_size), pred.c (pred_size), defs.h (struct
6067 size_t): Allow `k' to follow number to measure size in Kbytes.
6068 * parser.c (parse_size, get_num, insert_num), defs.h (struct
6069 size_t): Use enum comparison_type instead of short.
6071 Fri Aug 9 00:49:32 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6073 * xargs.c (read_line): Use isblank, to support POSIX locales.
6075 * fstype [FS_STATVFS]: New code for SVR4, from slootman@dri.nl
6077 * configure: Figure out when to use it.
6079 * configure: Check for st_blocks in struct stat.
6080 * listfile.c (ST_NBLOCKS): New macro.
6081 (list_file): Print file's block count.
6082 Use S_ISLNK instead of S_IFLNK.
6083 * fileblocks.c: New file, from fileutils.
6085 Thu Aug 8 17:20:19 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
6087 * parser.c, pred.c [CACHE_IDS]: Optional code to turn uid and
6088 gid lookups into table lookups.
6090 Wed Aug 7 00:22:29 1991 David J. MacKenzie (djm at wheat-chex)
6092 * configure, Makefile.in's: Support +srcdir option via VPATH.
6093 Clean up clean targets.
6095 Sat Jul 20 01:11:51 1991 David J. MacKenzie (djm at apple-gunkies)
6097 * configure: Filter /etc and /usr/etc from path.
6099 * xargs.c (wait_for_proc): Fix handling of child exit status.
6100 (main): Exit with a nonzero status if any child did.
6102 * pred.c (launch): Flush stdout and stderr before forking.
6104 * fstype.c (filesystem_type) [FS_MNTENT]: Skip entries of
6107 Fri Jul 19 22:53:42 1991 David J. MacKenzie (djm at bleen)
6109 * pred.c, locate.c: Use fnmatch instead of glob_match.
6110 * fnmatch.c, fnmatch.h: New files.
6112 * Many files: Use string.h if STDC_HEADERS, as well as if USG.
6114 * locate.c, code.c, bigram.c: Possibly use pathconf to get
6115 PATH_MAX. Use malloc to allocate path arrays.
6117 * xargs.c: Possibly use sysconf to get ARG_MAX.
6118 (env_size): Make definition unconditional.
6119 (main): Do arg_max adjustment that can't be done with
6120 preprocessor now that ARG_MAX might be a function call.
6121 (do_exec): Exit with status 126 or 127 after failed exec, for
6124 * xargs.c, pred.c, listfile.c: Use POSIX, not UNISTD_MISSING.
6125 * wait.h: Use POSIX, not WAIT_MACROS_MISSING.
6127 * COPYING: Use version 2. Update all files.
6129 * Replace Makefile and lib/Makefile with Makefile.in,
6130 lib/Makefile.in and configure. Update README.
6132 Fri Apr 5 12:49:09 1991 David J. MacKenzie (djm at apple-gunkies)
6136 Fri Mar 15 20:44:45 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
6138 * xargs.c (main): Always run the command if some args are left over.
6139 Rename some variables.
6141 Fri Jan 18 03:35:57 1991 David J. MacKenzie (djm at geech.ai.mit.edu)
6143 * bigram.c, code.c, locate.c: Use LIMITS_MISSING, not
6144 _POSIX_SOURCE, to decide whether to include limits.h.
6146 * parser.c, pred.c, listfile.c: Use POSIX, not _POSIX_SOURCE,
6147 to decide whether to declare getpwuid and getgrgid.
6149 * xargs.c: Use POSIX, not _POSIX_SOURCE, to determine whether
6150 to include memory.h.
6152 Sat Jan 12 04:12:34 1991 David J. MacKenzie (djm at wookumz.ai.mit.edu)
6154 * defs.h, find.c, parser.c, pred.c: Remove -permmask option.
6156 Thu Jan 10 04:32:52 1991 David J. MacKenzie (djm at albert.ai.mit.edu)
6158 * wait.h: Include sys/types.h to get pid_t.
6160 * xargs.c [USG && !STDC_HEADERS]: Only include memory.h if not
6163 Tue Jan 1 23:53:32 1991 David J. MacKenzie (djm at albert.ai.mit.edu)
6167 Wed Dec 26 03:25:51 1990 David J. MacKenzie (djm at apple-gunkies)
6169 * locate.c, bigram.c, code.c: Attempt to get max. path length
6170 on more kinds of systems, incl. POSIX.
6172 * pred.c, listfile.c, xargs.c: Get some decls from unistd.h,
6175 * find.c, defs.h: Make `cur_day_start' a time_t, not long.
6177 Fri Dec 21 01:49:12 1990 David J. MacKenzie (djm at egypt)
6179 * defs.h, parser.c: Remove unused field from `struct exec_t'.
6181 * xargs.c: Add +no-run-if-empty option to cause the command to
6182 not be run if the input is empty.
6184 * defs.h (struct exec_t): Change the array of offsets into an
6185 array of `struct path_arg'.
6186 * parser.c (insert_exec_ok): Fill in new fields, to allow "{}"
6187 to be substituted (multiple times) anywhere in an arg to -exec
6189 * pred.c (pred_exec): Add code to substitute "{}" within args.
6190 (pred_ok): After prompting, just run pred_exec.
6192 Thu Dec 20 02:32:09 1990 David J. MacKenzie (djm at egypt)
6194 * fstype.c (filesystem_type) [FS_MNTENT]: Allow for optional
6195 "0x" at front of "dev=" mount option, which amd puts there but
6196 Sun automounter doesn't.
6198 Sat Dec 15 19:01:12 1990 David J. MacKenzie (djm at egypt)
6200 * find.c (main), util.c (usage): Make directory args optional,
6203 Sat Dec 15 18:36:29 1990 David J. MacKenzie (djm at apple-gunkies)
6205 * listfile.c: Define major and minor if not defined (as in POSIX).
6207 Mon Dec 3 01:04:35 1990 David J. MacKenzie (djm at alborz)
6209 * find.c, fstype.c, parser.c, pred.c, util.c: Flush stdout before
6210 writing to stderr, in case they have been redirected to the
6211 same file descriptor.
6213 * pred.c (launch): Use POSIX wait macros from wait.h.
6215 * xargs.c (print_xargs): Read from tty_stream, not stdin.
6217 Tue Nov 20 16:48:24 1990 David J. MacKenzie (djm at apple-gunkies)
6221 * fstype.c [FS_USG_STATFS]: New code.
6222 [FS_STATFS]: For symlinks, statfs the directory the link is in
6223 instead of the link.
6224 * Various files: Conditionalize some declarations on
6225 STDC_HEADERS or _POSIX_SOURCE.
6227 Fri Nov 16 12:24:43 1990 David J. MacKenzie (djm at egypt)
6229 * modetype.h: New file.
6230 parser.c, pred.c: Use it.
6232 Thu Nov 15 18:05:54 1990 David J. MacKenzie (djm at apple-gunkies)
6234 * xmalloc.c: New file from fileutils.
6236 * fstype.c (fstype_to_string): Add case for MFS.
6237 (filesystem_type): Take a pathname as a second arg.
6238 [FS_STATFS] return "unknown" instead of exiting if statfs
6239 fails because of ENOENT.
6240 * pred.c (pred_fstype): Pass the pathname. Set current_dev.
6241 * find.c (process_path): Make root_dev local again.
6243 Mon Nov 12 02:54:00 1990 David J. MacKenzie (djm at apple-gunkies)
6245 * pred.c (pred_fstype): Free old fs type.
6247 * fstype.c, pred.c (pred_fstype), parser.c (parse_fstype):
6248 Reread the file system type info. every time a filesystem
6249 mount point is crossed, to allow for automounting.
6251 * xstrdup.c: New file from fileutils.
6253 * find.c (process_path): Rename root_dev to current_dev and
6254 make it global, for -fstype.
6256 * wait.h: New file taken from xargs.c.
6258 * xargs.c: Make limits.h vs. sys/param.h conditional on
6259 LIMITS_MISSING instead of USG, to accomodate SVR2.
6261 Thu Nov 8 11:52:22 1990 David J. MacKenzie (djm at apple-gunkies)
6263 * parser.c, pred.c, listfile.c: If not _POSIX_SOURCE, declare
6264 getpwuid and getgrgid. Use them.
6266 * listfile.c: If not _POSIX_SOURCE, define S_ISDIR and
6269 * find.c: Use S_ISDIR instead of S_IFDIR, and define if not
6272 * Makefile: Define AR and RANLIB and pass to child makes.
6273 lib/Makefile: Use them.
6275 * xargs.c (WIFSIGNALED): Redefine so it works.
6277 Mon Nov 5 00:02:01 1990 David J. MacKenzie (djm at apple-gunkies)
6279 * find.c (process_path): For -xdev, process filesystem
6280 mountpoints (but don't descend them), instead of skipping them
6283 * find.c, parser.c, defs.h: Add -follow predicate.
6285 * xargs.c: Change ifdefs to support STDC POSIX systems.
6287 Sat Nov 3 20:18:05 1990 David J. MacKenzie (djm at apple-gunkies)
6289 * xargs.c (do_exec): Child process exits with status 255, not
6290 127, if command can't be run.
6292 Fri Nov 2 02:11:42 1990 David J. MacKenzie (djm at apple-gunkies)
6294 * xargs.c: Exit with status 127 if running commmand fails, as
6297 * fstype.c: Support -fstype for Ultrix (-DFS_GETMNT).
6298 Sun/BSD code is now -DFS_MNTENT.
6300 Thu Nov 1 13:06:01 1990 David J. MacKenzie (djm at egypt)
6302 * Reorganize into subdirectories and add xargs. Rewrite Makefiles.
6304 * find.c (process_path, main): Allow a maxdepth of 0, meaning
6305 only process command line args.
6307 * parser.c, pred.c: Add -print0 predicate.
6309 * xargs.c: Add -0 option and long options. Move standard
6310 library functions into separate files. Use error instead of
6311 fatal and fprintf/perror. Use POSIX macros for examining exit
6313 (read_string): New function.
6315 Fri Sep 21 10:21:09 1990 David J. MacKenzie (djm at apple-gunkies)
6317 * find.c (process_path): Take DEPTH as an arg instead of ROOT,
6320 Thu Sep 20 23:58:47 1990 David J. MacKenzie (djm at apple-gunkies)
6322 * parser.c (parse_maxdepth): New function.
6323 * find.c (process_path): If -maxdepth was given, don't go
6324 more than that many levels deep.
6325 * defs.h: Declare maxdepth.
6327 Wed Sep 12 02:12:31 1990 David J. MacKenzie (djm at apple-gunkies)
6329 * parser.c: Add -not as synonym for !.
6331 Sun Aug 26 06:16:08 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
6333 * Makefile (TAGS): New target.
6335 Sun Aug 12 00:32:01 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6337 * xargs.c (main): Tell getopt to not permute.
6339 Sat Aug 4 21:43:45 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
6341 * parser.c (parse_perm), pred.c (pred_perm): Always compare
6344 * locate.c, Makefile: Rename 'fastfind' program to 'locate',
6345 following comment in POSIX.2 draft 10 rationale for find.
6347 Wed Jul 25 18:45:03 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6349 * listfile.c (getuser, getgroup): Make uid and gid unsigned
6352 Mon Jul 16 13:40:13 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6354 * defs.h: Don't declare fprintf and printf, in case they have
6355 prototypes in stdio.h (important for functions that use stdarg).
6357 Sun Jul 15 23:39:39 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6359 * parser.c (parse_and): New function, for compatibility.
6361 Wed Jul 4 00:17:57 1990 David J. MacKenzie (djm at apple-gunkies)
6363 * find.c (main): Only enclose expressions that produce no side
6364 effects within `( ... )'.
6366 Tue Jul 3 01:59:39 1990 David J. MacKenzie (djm at apple-gunkies)
6368 * parser.c (strspn): Stop when end of string reached.
6372 * Move version number from Makefile to new file version.c.
6373 * parser.c: Recognize new -version predicate.
6375 * find.c (main): If no predicates that produce output are
6376 given, default to -print if the entire expression is true, not
6377 just the last part of an alternation.
6378 * Print the names of predicates with invalid arguments.
6380 Mon Jul 2 23:48:17 1990 David J. MacKenzie (djm at apple-gunkies)
6382 * pred.c: Don't check for invalid comparison types in numeric
6383 predicate functions.
6385 Thu Jun 28 00:34:57 1990 David J. MacKenzie (djm at apple-gunkies)
6387 * parser.c (parse_regex): Set fastmap and translate before
6390 Mon Jun 25 18:08:59 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6392 * fastfind.c (fastfind): Initialize count to 0.
6394 * lib/updatedb.sh: Only do regex comparison on directories,
6397 * listfile.c (list_file): Truncate user and group name to 8 chars.
6399 Sun Jun 24 13:51:27 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6403 * Makefile [DISTFILES]: Add COPYING.
6405 Fri Jun 22 03:54:27 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6409 Tue Jun 19 03:55:28 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6411 * lib/updatedb.sh: Prune entries that match PRUNEREGEX.
6412 Split up finding files from computing bigrams.
6413 Use redirection instead of nonportable grep -s to detect sort
6414 failure. Optionally search network filesystems as well as
6417 * pred.c (pred_regex): Match against full pathname instead of
6419 * util.c (basename): Return "/", not "", if given "/".
6421 * find.c (process_path): Fix error in handling "/" directory.
6423 Mon Jun 18 01:49:16 1990 David J. MacKenzie (djm at apple-gunkies)
6425 * parser.c [STRSPN_MISSING] (strspn): New function.
6427 Sun Jun 17 13:54:09 1990 David J. MacKenzie (djm at apple-gunkies)
6429 * listfile.c: New file.
6430 * parser.c (parse_ls): New function.
6431 * pred.c (pred_ls): New function.
6433 * find.c (main): Remove interface to fastfind, to prevent
6434 conflict with POSIX syntax.
6435 * util.c (usage): Remove fastfind syntax from message.
6436 * fastfind.c (main): New function.
6437 * Makefile: Make fastfind a separate program.
6439 * find.c (main): Print correct message if a predicate arg is
6442 * parser.c (insert_exec_ok): Make args that start with a ';' but
6443 contain other characters not terminate the command.
6445 Fri Jun 15 00:33:45 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6447 * fstype.c: If MOUNTED isn't defined but MNT_MNTTAB is, use it
6448 instead. True for HP/UX, at least.
6450 Thu Jun 14 10:10:25 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6452 * savedir.c: New file; now find won't run out of file
6453 descriptors in deep trees.
6454 * find.c (process_path): Use savedir.
6456 Sat Jun 9 03:15:21 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6458 * parser.c (parse_permmask): Allow symbolic mode masks.
6459 (parse_perm): Free 'struct change' when done with it.
6460 (get_oct): Function removed.
6462 * find.c (process_path): Allow arbitrarily-long filenames.
6463 More efficient string copying. Initialize perm_mask to 07777
6466 Thu Jun 7 04:22:42 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6468 * Makefile, find.c: Use DIRENT to control whether <dirent.h>
6471 Thu May 31 04:46:11 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6473 * parser.c (parse_regex): New function.
6474 * pred.c (pred_regex): New function.
6476 * fstype.c (read_mtab): If mtab entry has a "dev=" option
6477 (like in SunOS 4.1), use it, so there is no need to stat the
6478 special file later on.
6479 (xatoi, strstr): New functions.
6481 Mon May 21 01:04:42 1990 David J. MacKenzie (djm at abyss)
6483 * lib/updatedb.sh: Put BINDIR in PATH.
6485 * fstype.c: Do nothing if MNTENT_MISSING is defined.
6487 * fstype.c: New file.
6488 * parser.c (parse_fstype): New function.
6489 * pred.c (pred_fstype): New function.
6491 * parser.c (parse_newer): Failure to stat -newer file is a
6494 * pred.c (pred_ok): Flush output before reading. Use getchar
6497 * pred.c (pred_prune): Return false if -depth given.
6498 * find.c: Apply the predicates to the dir when -depth and
6501 Sun May 20 19:55:30 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6503 * pred.c (pred_prune): Set new global var `stop_at_current_level'.
6504 * find.c (process_path): Test and reset it.
6506 Fri May 18 01:56:17 1990 David J. MacKenzie (djm at abyss)
6508 * modechange.c, modechange.h: New files.
6509 * parser.c (parse_perm): Use mode_compile and mode_adjust to
6510 parse arg, to allow symbolic mode for POSIX.
6512 Thu May 17 02:07:44 1990 David J. MacKenzie (djm at abyss)
6514 * parser.c (get_oct): Don't consider an empty string a valid number.
6516 * parser.c (parse_perm): If arg starts with '-', set flag bit
6517 for special comparison (POSIX).
6518 * pred.c (pred_perm): If flag bit set, compare s[ug]id &
6519 sticky bits as well, and return true if the given perms are
6520 set, ignoring other bits.
6522 * find.c: New global var `exit_status'. Use it. (POSIX)
6523 * parser.c: Set `exit_status' if lstat on -newer file fails.
6525 * fastfind.c: New file.
6526 * find.c (main): Call fastfind if given only 1 arg.
6527 * util.c (usage): Update message.
6528 * lib/{Makefile,updatedb.sh,bigram.c,code.c}: New files.
6529 * Makefile: Add 'all' and 'install' targets.
6531 Wed May 16 23:23:35 1990 David J. MacKenzie (djm at abyss)
6533 * parser.c (parse_nogroup, parse_nouser): Implement.
6534 * pred.c (pred_nogroup, pred_nouser): Implement.
6536 Mon May 14 00:09:35 1990 David J. MacKenzie (djm at abyss)
6538 * find.c: Add variable `stay_on_filesystem' for -xdev.
6539 (process_path): Take an arg determining whether this call is
6540 the root of a tree. Use lstat instead of stat. If
6541 stay_on_filesystem, don't process a dir on a different
6544 * parser.c (parse_newer): Use lstat instead of stat. Is this right?
6545 (parse_xdev): Set stay_on_filesystem.
6547 * parser.c: Add dummy parse_nogroup, parse_nouser,
6548 parse_prune, and parse_xdev; to be written later.
6549 * pred.c: Add dummy pred_nogroup, pred_nouser, pred_prune.
6551 * find.c: Support System V directory library/headers.
6553 * find.c (process_path): Don't continue with a file that stat
6556 * defs.h, parser.c, pred.c: Change 'u_long' and 'u_short' to
6557 'unsigned long' and 'unsigned short'.
6558 * find.c, defs.h: Remove 'convert_glob' variable.
6559 * parser.c (parse_fullregex): Function removed.
6560 (parse_name): Remove regular expression code.
6561 (parse_type): Recognize sockets.
6562 Add code to check for missing arguments to many parse_* functions.
6563 * pred.c (pred_name): Use glob_match instead of regex.
6565 Sun May 13 17:45:09 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6567 * Replace fprintf, simple_error, and mem_error with error and
6570 * Fix string header includes for USG.
6572 Tue Mar 27 12:40:29 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6574 * defs.h: Change some #defines to enums.
6576 Sun Mar 25 22:08:58 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
6578 * find.c (main): Don't take basename of argv[0].
6580 * util.c (xmalloc): New function.
6581 * find.c, parser.c, utils.c: Use xmalloc instead of malloc.
6583 * pred.c: Remove emulation of regex for BSD and use GNU
6584 library version in regcmp.c instead.
6585 * parser.c: Remove emulation of regcmp for BSD and use GNU
6586 library version in regcmp.c instead.
6587 * Makefile: Link with regex.o and regcmp.o.
6588 Add a DISTFILES macro and dist target.
6590 * Indent source code. Move RCS logs to this file.
6592 Wed Mar 21 09:30:18 1990 David J. MacKenzie (djm at pogo.ai.mit.edu)
6594 * xargs.c: Indent. Comment and rename some global variables.
6595 (main): Use getopt to parse options. Open new global var
6596 `tty_stream' to /dev/tty if querying requested.
6597 (print_args): Read response from tty_stream, not stdin.
6598 (xmalloc): New function.
6599 Global: Use xmalloc instead of malloc.
6600 (usage): Revise message.
6602 87/02/22 20:01:20 20:01:20 cire (Eric B. Decker)
6604 * pred.c: added guts to pred_size
6606 87/02/22 00:59:42 00:59:42 cire (Eric B. Decker)
6608 * pred.c: added guts to perm and permmask.
6610 87/02/21 23:02:21 23:02:21 cire (Eric B. Decker)
6612 * pred.c: made pred_name only look at the last component of
6615 87/02/21 22:26:47 22:26:47 cire (Eric B. Decker)
6617 * pred.c: added guts to name. useds regex and regcmp to do
6618 regular expression handling.
6620 87/02/21 00:17:21 00:17:21 cire (Eric B. Decker)
6622 * pred.c: added predicate newer
6624 87/02/20 11:40:07 11:40:07 cire (Eric B. Decker)
6626 * pred.c: added guts to pred_ok
6628 87/02/19 23:52:37 23:52:37 cire (Eric B. Decker)
6630 * pred.c: finished exec.
6632 87/02/22 20:01:09 20:01:09 cire (Eric B. Decker)
6634 * parser.c: added guts to parse_size
6636 87/02/22 00:59:16 00:59:16 cire (Eric B. Decker)
6638 * parser.c: added guts of perm and permmask. added getoct
6639 routine for perm and permmask
6641 87/02/21 23:32:50 23:32:50 cire (Eric B. Decker)
6643 * parser.c: added -fre, -fullregex predicate to turn off
6646 87/02/21 23:01:01 23:01:01 cire (Eric B. Decker)
6648 * parser.c: reworked name so the regexpr pattern includes $ at
6649 the end to force globbing to work correctly. End of the
6650 pattern refers to the end of the filename.
6652 87/02/21 22:25:34 22:25:34 cire (Eric B. Decker)
6654 * parser.c: added guts to name. uses a conversion from
6655 globbing to regexp format. uses regex and regcmp to actually
6658 87/02/21 00:17:11 00:17:11 cire (Eric B. Decker)
6660 * parser.c: added predicate newer
6662 87/02/20 11:39:35 11:39:35 cire (Eric B. Decker)
6664 * parser.c: added ok guts. consolidated exec and ok to using
6667 87/02/19 00:20:54 00:20:54 cire (Eric B. Decker)
6669 * parser.c: minor bug in -fulldays predicate parser. It
6670 should have set the flag full_days to true.
6672 87/02/22 00:58:32 00:58:32 cire (Eric B. Decker)
6674 * find.c: changed where we are setting perm_mask to -1. need
6675 to make sure that this happens before every apply_predicate.
6677 87/02/21 23:32:11 23:32:11 cire (Eric B. Decker)
6679 * find.c: added error checking for no paths. better error
6680 message if illegal ordering.
6682 87/02/21 22:19:58 22:19:58 cire (Eric B. Decker)
6684 * find.c: added global convert_glob
6686 87/02/22 20:00:12 20:00:12 cire (Eric B. Decker)
6688 * defs.h: added definition of BLKSIZE for size
6690 87/02/21 22:19:25 22:19:25 cire (Eric B. Decker)
6692 * defs.h: added global convert_glob for name