Commit Graph

58 Commits

Author SHA1 Message Date
James Youngman
1296429186 Removed some unused variables (patch from Dmitry V. Levin) 2005-01-31 23:20:06 +00:00
James Youngman
46a0e98ac6 Indicate which features are enabled/disabled 2005-01-28 23:26:03 +00:00
James Youngman
1a1eec87dd Merged the d_type optimisation code; this is disabled by default, and can be enabled with 'configure --enable-d_type-optimisation' 2005-01-23 11:21:34 +00:00
James Youngman
83f93ae1a3 Use prototypes for next_element() to make sure it is called correctly. 2005-01-17 00:04:23 +00:00
James Youngman
5522e24367 -execdir and -okdir are insecure if $PATH includes the current
directory, and so they refuse to work if the user has done that.
2005-01-16 19:26:27 +00:00
James Youngman
cce1abe836 Implemented -execdir and -okdir 2005-01-15 10:22:35 +00:00
James Youngman
f0a6ac6de9 First working version of -exec ...+ 2005-01-15 09:32:49 +00:00
James Youngman
cd983bf9a4 Initial implementation of -exec ..{} +, but currently disabled since not yet working 2005-01-09 19:22:59 +00:00
James Youngman
435c38540c We now understand but do not implement -execdir (a *BSD invention, and a very useful security enhancement) and -okdir (the obvious companion to it) 2005-01-08 14:12:51 +00:00
James Youngman
49bfb935d1 Fixed Savannah bug 11495: fallthrough from -printf format processing
from 'n' case to 'd' case.
2005-01-05 23:52:50 +00:00
James Youngman
a366720651 Implemented the -samefile test for find 2005-01-03 00:41:29 +00:00
James Youngman
2ca05f3026 Separated ariables representing current state from variable representing option information 2004-12-12 13:02:54 +00:00
James Youngman
77187fbc65 Readability improvement to the usage message. 2004-12-11 20:42:07 +00:00
James Youngman
da695fef5a Allow debug output to be turned on or off by saying --enable-debug on the configure command line 2004-12-05 22:52:30 +00:00
James Youngman
6a36899ffd -xdev is an option, not a test. Fixes Savannah bug 11192. 2004-12-03 17:57:00 +00:00
James Youngman
08e6f5523c avoid signed/unsigned warning, and #include xalloc.h 2004-11-24 13:58:32 +00:00
James Youngman
455a07b0dd If -delete is the only action on a file, don't assume the default
-print action too.
2004-11-21 13:54:23 +00:00
James Youngman
751355319d Don't need banner to emphasise the location of the call to jy_SORTZ 2004-11-15 00:39:07 +00:00
James Youngman
4820dc7776 Implemented BSD option -P and also the correct defautl behaviour of find with respect to symlinks if neither -L nor -H is specified [i.e. same as -P] 2004-11-12 00:08:44 +00:00
James Youngman
2d3fe220c2 Implemented -H and -L options. 2004-11-11 21:09:29 +00:00
James Youngman
9a09125d20 Implemented %M and %A+ format specifiers 2004-11-10 23:12:36 +00:00
James Youngman
6adc376765 Documented the fact that only %d and %m format specifiers honour the various formatting flags 2004-11-10 22:44:07 +00:00
James Youngman
b042992963 Turn warning messages off by default if stdin is not a tty; allow these to be controlled explicitly by options -warn and -nowarn 2004-11-08 20:40:51 +00:00
James Youngman
4ad9cbf155 NetBSD also supports -d. 2004-10-31 21:15:56 +00:00
James Youngman
a1f332c903 Corrected the usage message. 2004-10-31 19:27:52 +00:00
James Youngman
be168706e3 When deciding whether to issue a warning about options following
non-options, ignore any options whose position affects the tests
(i.e. -daystart and -follow).
2004-10-31 19:06:46 +00:00
James Youngman
da331c5036 -daystart is a positional option like -follow. 2004-10-31 18:59:46 +00:00
James Youngman
d4ed83819c Issue a warning message if an option is specified after a test or an
action (because the user might have believed that the behaviour of the
option is in some way conditional on the preceding tests).
2004-10-31 18:56:53 +00:00
James Youngman
416d02a629 Implemented the -quit action 2004-10-30 20:23:18 +00:00
James Youngman
71af66f9ae Refactored time handling routines in preparation for support of absolute timestamp comparison predicates 2004-10-30 19:08:03 +00:00
James Youngman
1b7af518ec Added -delete action (Savannah patch #3454 with additions) 2004-10-30 17:30:55 +00:00
James Youngman
39ea7560f3 More fixes for pedantic compiler warnings 2004-10-30 15:16:51 +00:00
James Youngman
85a28390fa Eliminated some compiler warnings 2004-10-30 15:08:20 +00:00
James Youngman
3d0224ec1e Various fixes for compiler warninga sbout unreachable code or unused function arguments 2004-10-30 09:16:45 +00:00
James Youngman
32958c140e Support -printf %D, which prints the device number of the containing filesystem 2004-10-25 21:39:12 +00:00
James Youngman
459d1acf70 Use RE_ICASE instead of re->translate. 2004-10-25 20:26:58 +00:00
James Youngman
3f1c9c77d0 No need to #define _GNU_SOURCE if we use gl_INIT. 2004-10-25 19:40:47 +00:00
James Youngman
0b932df623 Corrected typo in the address of the FSF office 2004-10-24 22:59:23 +00:00
James Youngman
e2bea8f503 Use gnulib-tool --import to import the gnulib code, rather than the odd way we were doing it before 2004-10-24 22:43:13 +00:00
James Youngman
55cbfc3109 Work round an apparent compiler bug in HP-UX 11.23 for
ia64
2004-10-24 22:24:01 +00:00
James Youngman
a00c1e8642 Fix for compilation (on AIX 4.3) with GCC 2.x. 2004-10-22 19:05:19 +00:00
James Youngman
961d0b1a54 Check fnmatch() when other predicates that rely on fnmatch() are used. 2004-10-17 14:11:25 +00:00
James Youngman
75e78e7e75 bug #10701: find needs fnmatch sanitycheck on startup 2004-10-17 14:07:50 +00:00
James Youngman
271f892ba9 As per RMS's suggestion, deprecate -path and -ipath in favour of
-wholename and -iwholename.
2004-08-08 12:10:39 +00:00
James Youngman
cd5aeb79d1 Fixed Savannah bug 4391 (readdir race condition leading to spurious error messages) 2004-05-03 09:14:36 +00:00
James Youngman
f4842bb5e9 Detect arithmetic overflow (poorly) in insert_time(), which diagnoses
the failure to handle large arguments to -mtime.  The existing code
does careful computation and then bungs the value into a time_t, which
ruins all our careful effort.  The new code is not a great
improvement.  We just check the result to detect overflow, rather than
actually avoiding the overflow.
2004-03-13 18:03:39 +00:00
James Youngman
7da8b17cf1 Merged changes made for version 4.1.20 onto the trunk 2003-06-14 15:41:26 +00:00
Kevin Dalley
0c1417df53 * find/parser.c (insert_type): -D option (for Solaris door files)
is added.
2001-05-20 19:42:59 +00:00
Kevin Dalley
1b9525aaa6 * find/util.c (get_new_pred):
* find/tree.c (set_new_parent):
* find/parser.c (various parse functions):
* find/find.c (main):
(default_prints): new function
* find/defs.h (struct predicate): added no_default_print
side_effects are no separated from no_default_print.  predicates
which cause side effects should not be reordered (optimized).
predicates which cause printing should have printing turned off.
Printing statements also cause side effects.
2001-01-21 06:35:08 +00:00
Kevin Dalley
06f089eee6 * locate/updatedb.sh, locate/locate.c (usage), find/parser.c
(parse_help): add bug reporting address to help
2000-10-21 10:26:06 +00:00