1 GNU findutils NEWS - User visible changes. -*- outline -*- (allout)
2 * Major changes in release 4.2.22-CVS
6 If a directory entry searched with "find -L" is a symbolic link to
7 ".", we no longer loop indefinitely. This problem affected find
8 versions 4.2.19, 4.2.20 and 4.2.21. This problem allows users to make
9 "find" loop indefinitely. This is in effect a denial of service and
10 could be used to prevent updates to the locate database or to defeat
11 file security checks based on find. However, it should be noted that
12 you should not use "find -L" in security-sensitive scenarios.
18 ** Functional Changes to locate
20 A locate database can now be supplied on stdin, using '-' as a element
21 of the database-path. If more than one database-path element is '-',
22 later instances are ignored.
24 A new option to locate, '--all' ('-A') causes matches to be limited to
25 entries which match all given patterns, not entries which match
28 ** Documentation Changes
30 Some typos in the manual pages have been fixed. Various parts of the
31 manual now point out that it is good practice to quote the argument of
32 "-name". The manpage now has a "NON-BUGS" section which explains some
33 symptoms that look like bugs but aren't. The explanations of the "%k"
34 and "%b" directives to "find -printf" have been imrpoved.
37 * Major changes in release 4.2.21
38 ** Functional Changes to find
40 The GNU extension "find ... -perm +MODE" has been withdrawn because it
41 is incompatible with POSIX in obscure cases like "find ... -perm ++r".
42 Use the new syntax "find ... -perm /MODE" instead. Old usages will
43 still continue to work, so long as they don't conflict with POSIX.
45 If the output is going to a terminal, the -print, -fprint, -printf and
46 -fprintf actions now quote "unusual" characters to prevent unwanted
47 effects on the terminal. See "Unusual Characters in File Names" for
48 further details. There is no change to the behaviour when the output
49 is not going to a terminal. The locate program does the same thing,
50 unless the -0 option is in effect (in which case the filenames are
53 ** Functional Changes to locate
55 The locate command will now read each locate database at most once.
56 This means that if you are using multiple databases and are searching
57 for more than one name, the results will now be printed in a different
58 order (and if you specified a small limit with --limit, you may get a
59 different set of results).
61 A new option '--print' for locate causes it to print the matching
62 results even if the '--count' or '--statistics' option is in effect.
65 find /blah/blah/blah -depth -empty now works once again.
67 The -regex and -iregex tests of find now correctly accept POSIX Basic
68 Regular Expressions. (Savannah bug #12999)
70 The updatedb program now works on systems where "su" does not support
71 the "-s" option, for example Solaris.
73 * Major changes in release 4.2.20
74 ** Internationalization and Localization
75 Updated Vietnamese and Dutch translations.
78 Minor bugfix affecting only those who compile from the CVS repository,
79 as opposed to those who compile from the source releases.
81 * Major changes in release 4.2.19
84 find should now no longer hang on systems which lack the O_NOFOLLOW
85 flag to open(2) and which are clients of an unresponsive NFS server
86 (Savannah bug #12044).
88 We now avoid inappropriately failing for "find -L foo" or "find -H
89 foo" if foo is a symbolic link (Savannah bug #12181). Previously we
90 used to fail with the error message "Too many levels of symbolic
93 "find . -false -exec foo {} +" no longer runs an extra instance of foo
94 when find exits (Savannah bug #12230).
96 If the chdir() safety check fails but we can no longer get back to
97 where we started, exit with an explanatory (fatal) error message.
98 This does not happen on GNU/Linux and FreeBSD because the safety check
99 is not needed (the security problem the safety check protects against
100 is prevented in a cleaner way on those systems).
102 "make distclean" no longer deletes regex.c (which "make all" needs).
104 ** Functionality Changes
105 "find -printf "%h\n" will now print "." for files in the current directory.
106 Previously it printed nothing (but there was a bug in the %h
107 implementation anyway). This fixes Savannah bug #12085.
109 Should now build (again) on non-C99-compliant systems.
111 ** Documentation enhancements
112 Fixed some typos and clarified wording in "Working with automounters".
114 ** Internationalization and Localization
115 New Vietnamese message translation.
117 * Major changes in release 4.2.18
119 *** "find -depth" was missing out non-leaf directories when they contain
120 non-directories. This affected findutils releases 4.2.15,
121 4.2.16 and 4.2.17, but the bug is now fixed.
122 *** Find no longer hangs on systems which are clients of unresponsive
124 ** Documentation improvements
125 *** Improvements and corrections to the find.1 manpage, including corrections to the descriptions of -H and -L.
127 * Major changes in release 4.2.17
129 *** bug #11861 undefined symbol "basename" on IRIX 5.3
130 *** bug #11865 xargs -i regression (as compared to findutils-4.2.12)
131 *** bug #11866 Typo in pred_okdir renders it useless (affecting 4.2.16 only)
132 *** patch #3723 fix recent process_top_path change (for -execdir on /)
133 *** Fixing bug #11866 and applying patch #3723 made -execdir work much better.
134 *** find bar/baz/ugh now works again if baz is a symbolic link (broken
137 * Major changes in release 4.2.16
138 ** Functionality Changes
139 *** Updated the message catalogues for the translated messages.
140 *** The subfs filesystem is now treated the same as the autofs
142 *** New translations: Belarusian, Catalan, Greek, Esperanto,
143 Finnish, Irish, Croatian, Hungarian, Japanese, Luganda,
144 Malay, Romanian, Slovenian, Serbian, Chinese (simplified).
147 *** The -execdir action now works correctly for files named on the
150 * Major changes in release 4.2.15
151 ** Functionality Changes
152 *** locate now supports matching regular expression (--regex).
153 *** --enable-d_type-optimization (introduced in findutils 4.2.13) is now turned on by default.
155 * Major changes in release 4.2.14
156 ** Functionality Changes
157 *** New options -L, -P, -H for locate. The work in the same was as the same options for find.
159 *** Don't include the "findutils/find/testsuite/find.gnu" subdirectory in the
160 distributed tar file more than once.
161 *** Should now build on Solaris once again.
162 *** -xtype and -printf %Y now work correctly for symbolic links once again
163 ** Documentation improvements
164 *** All options for "locate" are now documented
166 * Major changes in release 4.2.13
167 ** Performance Enhancements
168 *** On Linux and some other systems, a large performance improvement,
169 because we can eliminate many of the calls to lstat() (in extreme
170 cases, 99% of them). Limited testing shows a 2x speedup on NFS
171 filesystems. Other systems which can make use of this enhancement
172 include Mac OS X and *BSD.
174 * Major changes in release 4.2.12
175 ** Functionality Changes
176 *** find is now POSIX-compliant, as far as I know.
177 *** -exec ... {} + now works.
178 *** New actions -execdir and -okdir which are like -exec and -ok but more secure.
179 *** "locate -w" is now a synonym for "locate --wholepath".
180 *** An empty path entry in the locate database path (for example "::" in
181 $LOCATE_PATH or in the argument to "locate -d") is taken to mean
182 the default database, whose name is hard-coded in locate.
184 *** If find or xargs cannot write to stdout, for example because
185 output is redirected to a file and the disk is full, the
186 relevant program will return a non-zero exit status.
188 * Major changes in release 4.2.11
190 *** Compilation fix for systems without EOVERFLOW.
191 *** More helpful error message if you make a mistake with (, ), -o or -a.
192 ** Functionality Changes
193 *** If you have unclosed parentheses on the find command line,
194 or any of a number of similar problems, find will now produce
195 a more helpful error message.
196 *** locate -b is now a synonym for locate --basename
197 *** locate now supports a --statistics (or -S) option, which prints some
198 statistics about the locate databases.
199 *** Implemented the -samefile option.
200 ** Documentation improvements
201 *** New chapter in the manual, "Security Considerations".
202 *** Better documentation for -prune (Mainly thanks to Stepan Kasal)
204 *** locate's options -i and -w now work with the -e option (previously a bug
207 * Major changes in release 4.2.10
209 *** Portability fix for fstype.c: should now compile on UNICOS, and possibly
210 also produce useful results on BeOS and Dolphin, perhaps other
213 * Major changes in release 4.2.9
214 ** Functionality Changes
215 *** xargs no longer treats a line containing only an underscore as a logical end-of-file. To obtain the behaviour that was previously the default, use "-E_".
216 *** xargs now supports the POSIX options -E, -I and -L. These are synonyms
217 for the existing options -e, -i and -l, but the latter three are
220 *** xargs -n NUM now invokes a command as soon as it has NUM arguments.
221 Previously, it waited until NUM+1 items had been read, and then
222 invoked the command with NUM arguments, saving the remaining one
224 *** If "find -L" discovers a symbolic link loop, an error message is issued.
225 *** If you specify a directory on the find command line, but -prune
226 is applied to it, find will no longer chdir() into it anyway.
227 ** Documentation improvements
228 *** The precise interpretation of the arguments to the -atime, -ctime
229 and similar tests in find has been documented more clearly.
231 * Major changes in release 4.2.8
232 *** Bugfix to the findutils 4.2.7 automount handling on Solaris. This
233 worked to some extent in findutils-4.2.7, but is much improved in
236 * Major changes in release 4.2.7
237 ** Functionality Changes
238 *** xargs can now read a list of arguments from a named file, allowing
239 the invoked program to use the same stdin as xargs started with
240 (for example ``xargs --arg-file=todo emacs'').
241 ** Documentation improvements
242 *** The Texinfo manual now has an extra chapter, "Error Messages". Most
243 error messages are self-explanatory, but some of the ones which
244 are not are explained in this chapter.
246 *** Avoid trying to link against -lsun on UNICOS, which doesn't need it or
248 *** Bugfix to the findutils 4.2.6 automount handling (which hadn't been enabled
250 *** Reenabled internationalisation support (which had been accidentally
251 disabled in findutils-4.2.5).
253 * Major changes in release 4.2.6
255 *** find now copes rather better when a directory appears to change just as
256 it is about to start examining it, which happens with automount.
257 This is because automount mounts filesystems as you change
258 directory into them. This should resolve Savannah bugs #3998,
261 * Major changes in release 4.2.5
262 ** Functionality Changes
263 *** The POSIX options -H and -L are supported. These control whether or not
264 find will follow symbolic links.
265 *** The BSD option -P is also now supported (though in any case
267 ** Documentation improvements
268 *** Better documentation for "xargs -i".
270 *** "make install" now respects DESTDIR when generating localstatedir.
271 (this is only relevant if you are installing to some location
272 other than the one that you indictaed when you ran "configure").
273 *** Compatible with automake versions 1.8 and 1.9.
274 *** Build problems on UNICOS now fixed, though the linker will still generate
275 warnings because we try to link with the nonexistent library
276 "-lsun". Edit $(LIBS) to work around this problem.
278 * Major changes in release 4.2.4
279 ** Functionality Changes
280 *** If your system sort command has a working "-z" option, updatedb will
281 now correctly handle newline characters in filenames (as will
283 *** xargs now uses 128Kb of command line by default (less if the system
284 doesn't support that much).
285 *** If you specify a 'find' option after non-option, a warning message
286 is now issued. Options should be specified immediately after the
287 list of paths to search. These warnings are enabled if you
288 specify the -warn option, or if stdin is a tty. They are diabled
289 by the use of the -nowarn option.
290 *** Like find, the locate program now supports an option --null (short form -0)
291 which changes the result separator from newline to NULL.
292 *** Locate supports the option -c (long form --count) which suppresses normal
293 output but prints on stdout the number of results produced (like
295 *** Locate supports the option -l (long form --limit) which limits the
296 number of results. This is useful if you only want to find out if
297 there are copies of a certain file on the system, but don't want
298 to wait for the entire locate database to be searched.
299 *** Locate now has an option --basename which forces the specified pattern to
300 be matched against the basename of the entries in the locate
301 database, rather than the whole name. The default behaviour
302 (matching against the whole name of the file including all the
303 parent directory names) corresponds to the option --wholename.
304 *** updatedb has a new option, --findoptions, that can be used to
305 pass extra options through to the find command that it uses.
307 *** "find -printf '%H\n'" now works (rather than segfaulting) on
308 systems that have non-writable string constants.
309 *** Better POSIX compliance for the -s option to xargs (out of range
310 values should just result in bounding to the correct range, not an
311 error, so now we just print a warning message and adjust the
313 *** Corrected section numbers of manual page cross-references
315 * Major changes in release 4.2.3
316 ** Functionality Changes
317 *** Added new action -delete which deletes things that find matches.
318 *** Added new action -quit which causes find to exit immediately.
319 *** A new format directive '%D' for "find -printf" prints the device number.
320 *** The -ls predicate no longer truncates user or group names.
321 *** Added new option "-d" which is a synonym for "-depth" for compatibility
322 with Mac OS, OpenBSD and FreeBSD. This option is already
323 deprecated since the POSIX standard specifies "-depth".
324 *** Added two new format specifiers to the -printf action; these are
325 %y and %Y. They indicate the type of the file as a single letter;
326 these are the same latters as are used by the "-type" test.
327 *** If a parent directory changes during the execution of find,
328 the error message we issue identifies the nature of the change
329 (for example the previous and current inode numbers of the
330 directory we've just returned out of).
332 *** Non-functional code changes to silence compiler warnings.
334 * Major changes in release 4.2.2
335 ** Documentation improvements
336 *** "find ... -exec {}+" is not yet supported.
338 *** Fixed compilation problems on Solaris, RedHat EL AS 2.1, Irix, AIX
339 *** Work around possible compiler bug on HP-UX 11.23 for ia64
340 *** The built-in internationalisation support now works again.
342 *** We now import the gnulib source in the way it is intended to be used,
343 which means among other things that we only have one config.h file
345 *** Functions which findutils requires but which are not present in
346 gnulib are now defined in "libfind.a". This is in the lib
347 directory, while gnulib is in the gnulib subdirectory.
348 *** Fixed a typo in the address of the FSF in many of the file headers.
350 * Major changes in release 4.2.1
352 *** 'find -name \*bar now matches .foobar, because the POSIX standard
353 requires it, as explained at
354 http://standards.ieee.org/reading/ieee/interp/1003-2-92_int/pasc-1003.2-126.html
356 * Major changes in release 4.2.1
358 *** find -iname now works correctly on systems that have an fnmatch() function
359 that does not support FNM_CASEFOLD
360 *** updatedb now uses signal names for "trap" instead of numbers,
361 as per bug #9465 (see http://www.opengroup.org/onlinepubs/009695399/utilities/trap.html)
362 *** Better support for systems lacking intmax_t
364 **** findutils now uses a newer version of gnulib (dated 2004-10-17).
366 * Major changes in release 4.2.0
367 ** Functionality Changes
368 *** xargs now works better when the environment variables are very extensive.
369 The xargs command used to run into difficulties if the environment
370 data contained more than 20480 bytes.
371 *** New options -wholename and -iwholename
372 As per the GNU Projecvt coding standard, These are preferred over
373 the -path and -ipath options. Using -ipath now generates a warning,
374 though -path does not (since HPUX also offers -path).
375 *** The environment variable FIND_BLOCK_SIZE is now ignored.
376 *** New option "-ignore_readdir_race"
377 silences an error messages which would otherwise occur if a file is removed
378 after find has read it from the directory using readdir(), but before
379 find stats the file. There is also an option
380 -noignore_readdir_race which has the opposite effect.
381 ** Documentation improvements
382 *** The -size option of find is now documented in more detail
383 *** POSIX compliance and GNU extensions
384 The find manual page also now includes a section
385 which describes the relationship between the features of GNU
386 find and the POSIX standard. Some other small improvements
387 to the find and xargs manual pages have been made.
388 *** The argument to the -fprintf directive is now better documented.
389 The escape code '\0' for the `-printf' predicate of find is now
390 documented, and the documentation for the %k and %b specifiers
392 *** xargs -i is now more clearly documented.
394 *** locate 'pa*d' will now find /etc/passwd (if it exists, of course)
395 *** xargs standard input is not inherited by child processes
396 If the command invoked by xargs reads from its standard input,
397 it now gets nothing, as opposed to stealing data from the
398 list of files that xargs is trying to read.
399 *** Better support for 64-bit systems.
400 *** The command "xargs -i -n1" now works as one might expect,
401 I think this is a strange thing to want to do.
402 *** Arguments to find -mtime that are too large are now diagnosed
403 Previously, this just used to cause find just to do the wrong thing.
404 *** updatedb is now somewhat more robust
405 The updatedb shell script now does not generate an empty
406 database if it fails.
407 *** Sanity-check on some data read from locatedb
408 Locate now detects some types of file corruption in the
410 *** The %k format specifier for -fprintf now works
411 This was broken in 4.1.20.
413 * Major changes in release 4.1.20:
414 ** New maintainer, James Youngman <jay@gnu.org>
415 ** As far as I know, this is the first release after 4.1.7, but I've left
417 ** We now use an "imported" version of gnulib, rather than including
418 a copy of the gnulib code in our CVS repository. There are no
419 differences in the build instructions, though (unless you are
420 building directly from CVS, in which case please read the file
422 ** There are no (deliberate) functional changes in version 4.1.20.
424 * Major changes in release 4.1.7:
425 fix problem so that default "-print" is added when "-prune" is used.
426 security fixes related to directories changing while find is executing.
428 * Major changes in release 4.1.6:
429 correct bug in prune.
430 added --ignore-case option for locate
432 * Major changes in release 4.1.5:
433 Add support for large files
435 * Major changes in release 4.1.4:
436 bug fixes, more up-to-date languages.
438 * Major changes in release 4.1.3:
439 added internationalization and localization.
441 * Major changes in release 4.1.1:
442 attempt at successful compilation on many platforms after years of neglect
443 "--existing" option added to locate "--prunefs" option added to updatedb
445 * Major changes in release 4.1:
447 ** Distribution renamed to findutils.
448 ** updatedb is now a user command, installed in $exec_prefix/bin
449 instead of $exec_prefix/libexec.
450 ** A few problems in Makefiles and testsuite corrected.
452 * Major changes in release 4.0:
456 *** Man page for updatedb.
457 *** Man page for the locate database formats.
460 *** Takes less CPU time on long paths, because it uses chdir to descend
461 trees, so it does fewer inode lookups.
462 *** Does not get trapped in symbolic link loops when -follow is given.
463 *** Supports "-fstype afs" if you have /afs and /usr/afsws/include
464 and you configure using the --with-afs option.
465 *** New action -fls FILE; like -ls but writes to FILE.
468 *** Supports a new database format, which is 8-bit clean and
469 allows machines with different byte orderings and integer sizes to
470 share the databases. The new locate can also detect and read the
471 old database format automatically. The new databases are typically
472 30% or more larger than the old ones (due to allowing all 8 bits in
473 file names). Search times are approximately the same, or faster on
475 *** Warns if a file name database is more than 8 days old.
478 *** Takes command-line options.
481 *** Performance improved 10-20%.
482 *** The EOF string is not used when -0 is given.
483 *** Now has a test suite. Some minor bugs fixed as a result.
485 * Major changes in release 3.8:
487 ** case insensitive versions of -lname, -name, -path, -regex:
488 -ilname, -iname, -ipath, -iregex
489 ** %F directive for -printf, -fprintf to print file system type
491 * Major changes in release 3.7:
493 ** locate can search multiple databases
494 ** locate has an option to specify the database path
495 ** updatedb no longer goes into an infinite loop with some versions of tail
498 This is used by Emacs' spell checker ispell.el:
500 LocalWords: ansi knr strftime xargs updatedb sh fnmatch hin strcpy
501 LocalWords: lib getstr getline frcode bigram texi depcomp automake
502 LocalWords: strncasecmp strcasecmp LIBOBJS FUNC prunefs allout libexec
503 LocalWords: testsuite Texinfo chdir inode fstype afs fls ls EOF lname
504 LocalWords: regex ilname iname ipath iregex printf fprintf