Commit Graph

140 Commits

Author SHA1 Message Date
Kevin Dalley
da4093813c GNU findutils package version 4.1 1996-02-04 20:35:04 +00:00
James Youngman
22de27a812 Fix Savannah bug #22056, -Xtime tests are off by one second. 2008-02-12 12:00:32 +00:00
James Youngman
4af5f5eed5 Backed out the positional parameter change because it was too error prone and over-complex 2007-12-20 21:53:55 +00:00
James Youngman
f7dc6a9f0b Enhancements to format strings in hman-readable messages intended to allow better translation 2007-12-19 21:16:33 +00:00
James Youngman
780ebc9a3a Fix Savannah bug #20865 (-prune -delete without an explicit -depth is now an error) 2007-11-30 10:24:37 +00:00
James Youngman
d777ddf3e6 POSIXLY_CORRECT should turn off warnings. When it is set, also diagnose some noncompliant arguments to -perm. Fixes Savannah bug #21039. 2007-11-22 09:16:35 +00:00
James Youngman
c31c8d278f Fix Savannah bug #20834: SIGSEGV when PATH is unset and -execdir is used 2007-08-23 09:01:56 +00:00
James Youngman
a94c569c11 Prepare for POSIX standardisation of -path.
* find/parser.c (parse_path): This is the 'canonical' name once
	again.
	(parse_wholename): This is not.
	(parse_ipath): No longer deprecated.
2007-08-22 21:53:58 +00:00
Eric Blake
4859cfca40 Fix Savannah bugs #20662, 20688.
* find/find.c (at_top): Avoid memory leak.
* find/pred.c (do_fprintf, pred_iname, pred_name): Likewise.
(pred_name_common): New function, factored from pred_iname and
pred_name.
* find/parser.c (check_name_arg): Let -nowarn silence -name /.
* locate/locate.c (visit_basename): Avoid memory leak.
* NEWS: Document the changes.
* doc/find.texi (Warning Messages): Document -nowarn's effect on
-name and -iname.
* find/testsuite/find.gnu/name-slash.exp: New test, to ensure
20662 doesn't regress on '-name /', and that 20688 silences the
warning.
* find/testsuite/find.gnu/printf-slash.exp: Likewise.
* find/testsuite/find.gnu/name-slash.xo: Expected results.
* find/testsuite/find.gnu/printf-slash.xo: Likewise.
* find/testsuite/Makefile.am (EXTRA_DIST_XO, EXTRA_DIST_EXP):
Distribute new tests.
2007-08-05 12:22:14 +00:00
Eric Blake
6597c7a55c * find/parser.c (parse_version): Avoid compiler warning.
* locate/code.c (includes): Likewise.
2007-07-24 03:38:39 +00:00
James Youngman
1bd53425e8 Fixed Savannah bug #20547, version information not compliant with GNU coding standard 2007-07-22 13:08:22 +00:00
James Youngman
5a04dd98c8 Include <fcntl.h> unconditionally; also, avoid passing nonexistent option --gpl3 to gnulib-tool 2007-07-02 08:57:59 +00:00
James Youngman
1c43fc92b5 Migrated from GPL version 2 to GPL version 3 2007-07-02 08:25:45 +00:00
James Youngman
f7671dc609 Fix Savannah bug #20263 (compilation err on DEC OSF/1. Include <sys/stat.h> in files where where we use struct stat. Removed some dead code following some calls to assert(0), which are now backed up by abort calls. Use assert (0) rather than assert (false). Make sure we include the space. 2007-06-26 08:24:19 +00:00
James Youngman
5a7e83f1d7 Fixed various lint complaints pointed out by build-aux/src-sniff.py 2007-06-21 23:41:08 +00:00
James Youngman
dbcb10e9f9 Fixed Savannah bug #20139 (-mtime -2 includes files matching -mtime 2 but it should not) 2007-06-14 09:37:24 +00:00
James Youngman
52836d7852 Fixed bug #20128, compilation error for find/tree.c for GCC on AIX 2007-06-09 12:25:27 +00:00
James Youngman
66c536bbb7 Fixed Savannah bug #20005; failure to distinguish -mtime -n, -mtme +n from -mtime n 2007-05-31 09:05:22 +00:00
James Youngman
a81eb68703 Fixed typos in error messages. Correction from Jakub Bogusz <qboosh@pld-linux.org> 2007-05-31 08:15:05 +00:00
James Youngman
6db4e4ff02 Change calls to atoi to calls to a new function safe_atoi which does error checking 2007-05-27 12:07:30 +00:00
James Youngman
450bcbca78 Fixed Savannah bug #19970, taking into account the limitations of the gnulib _Bool replacement 2007-05-26 11:19:31 +00:00
James Youngman
533c213ce3 Savannah bug #19965, compile with uintmax_t missing. Also explain Savannah bug #19969 (rc-125.exp fails) and avoid including errno.h in defs.h. 2007-05-26 10:37:26 +00:00
James Youngman
e8bd5a2c24 Refactored arg colleciton in parser and added new test cases, mosly for cases where the argument is invalid or missing 2007-05-08 09:37:41 +00:00
James Youngman
a0ab43812d Correctly detect and diagnose I/O errors in print-related predicates. This fixed Savannah bug #19416 2007-05-06 12:35:07 +00:00
James Youngman
785dee23aa Fixed Savannah bug #19806, -samefile is confused by inode reuse 2007-05-05 12:43:19 +00:00
James Youngman
dc4a7adf94 Bugfixes for Savannah bugs #19768 and #19766 2007-05-01 09:46:30 +00:00
James Youngman
b130c9b90b Fixed Savannah bug #18203 (find error messages can garble the console) 2007-04-29 16:05:59 +00:00
James Youngman
864b25ed9c Fixed Savannah bug #18203 (find error messages can garble the console) 2007-04-29 15:50:21 +00:00
James Youngman
6c9ebfd997 Applied patch from Michael Haubenwallner, fixing Savannah bug #19371, compilation failure on AIX 5.3 dir to #define open open64 2007-04-29 00:43:07 +00:00
James Youngman
5f288d46f4 Avoid calling stat for pred_delete. Instead, try the unlink assuming the target is a file and then try again with the AT_REMOVEDIR flag if errno gets set to EISDIR 2007-04-28 17:51:14 +00:00
James Youngman
3d2128d30c Simplifythe calculation of the defautl value of xargs's -s option. Avoid an assertion failure on AIX when _SC_ARG_MAX is larger than LINE_MAX 2007-04-28 14:27:40 +00:00
James Youngman
eb8b13cc2c Use mbsstr() to search -exec arguments for {}. Also removed some dead code from find/tree.c 2007-04-25 09:38:02 +00:00
James Youngman
c0e5dd5bca Imeplement '-D rates' 2007-04-23 09:17:37 +00:00
James Youngman
b46b0d8938 Support fts() in FTS_CWDFD mode. Also work around Savannah bug #18466 (with a performance penalty). 2007-04-14 21:41:59 +00:00
James Youngman
4d3b4e4a28 Support for st_birthtime 2007-03-28 10:23:23 +00:00
James Youngman
c35ae8fabb Warn the user that echo will be run at least once if stdin is a tty for xargs --show-limits. Also, find -quit has a 100% success rate. 2007-03-25 10:58:34 +00:00
James Youngman
7102a229fa Implemented -newerXY (but this is not documented yet) 2007-03-07 23:18:38 +00:00
James Youngman
70f1a3d1ea New method of checking out and configuring gnulib - define which version we need to use, and remember which version we used 2007-02-28 23:55:47 +00:00
James Youngman
c7ca8e10f2 Eliminated a few compiler warnings 2007-02-25 12:05:51 +00:00
James Youngman
c3b2b1b54b Bugfixes to fractional-argument support and nanosecond timestamp support 2007-02-24 18:39:00 +00:00
James Youngman
daf7f100ed Support nanosecond timestamps and time arguments with fractional parts 2007-02-24 14:47:27 +00:00
James Youngman
a4718831e1 Support for sub-second timestamp resolution in -newer, -anewer and -cnewer plus the various -printf actions 2007-01-21 23:26:21 +00:00
James Youngman
02c2cd363a Changed the interpretatioon of -perm /000 as described in bug #14748 2007-01-07 19:41:48 +00:00
James Youngman
67bb03a251 Also flag $PATH values containing relative directories as being dangerous. 2006-12-29 12:54:50 +00:00
James Youngman
43c34e9240 Instead of selecting the old or new exec handling code with the NEW_EXEC macro, just use the new code all the time 2006-12-29 12:42:31 +00:00
James Youngman
e9847e15bc Instead of selecting the old or new exec handling code with the NEW_EXEC macro, just use the new code all the time 2006-12-29 12:41:43 +00:00
James Youngman
8c91f821b1 Implemented %S (sparseness) printf format, and general refactoring and cleanup of printf predicate 2006-12-28 20:36:38 +00:00
James Youngman
07b941b1e7 Fixed Savannah bug #17490, which was a coiredump when -regex ZZZ was the final test on the command line 2006-08-21 22:35:13 +00:00
James Youngman
51d20b7f9e Merged the fix for the trailing % in "find -printf". 2006-08-20 20:45:09 +00:00
James Youngman
9499a434f9 Applied patches from Paul Eggert 2006-08-20 18:18:42 +00:00