jhawk
e025cf984b
Obey preceding - and + on -user when a numeric uid is specified (only).
...
Our behavior is now consistent with Solaris, and more useful than previous.
2003-01-30 10:49:18 +00:00
jhawk
980fe9aad7
Obey preceding - and + on -user when a numeric uid is specified (only).
...
Our behavior is now consistent with Solaris, and more useful than previous.
Unfortunately we end up strtol()-ing twice (once via atoi()) to avoid
changing find_parsenum().
2003-01-30 10:49:05 +00:00
matt
3e5306bedf
With -printx also qoute $ and ` (since they are shell metacharaters).
2003-01-26 07:07:31 +00:00
provos
32b88027c7
use readlink with bufsize - 1; approved thorpej.
2002-10-19 20:33:17 +00:00
wiz
d6eecef728
Lose a trailing space.
2002-10-01 11:04:12 +00:00
wiz
826d3a8737
Clean up after recent changes.
...
Some notes:
\- is for minus signs only.
Closing braces and punctuation after a macro should definitly not be
on the next line, but at the end of the macro line, separated with spaces
from the macro argument and each other. Otherwise, unwanted whitespace
appears.
2002-09-28 12:59:49 +00:00
grant
714cd00ddf
bump date for latest changes.
2002-09-28 12:34:53 +00:00
thorpej
386e1779c2
Need <string.h>.
2002-09-27 23:29:12 +00:00
grant
2812905360
New sentence, new line and minor mdoc cleanup.
2002-09-27 16:56:53 +00:00
provos
9972ef9ff8
support for -empty, -execdir, -mindepth, -maxdepth to match other UNIX-like
...
systems. based on work by tholo@openbsd.org . approved by perry.
2002-09-27 15:56:25 +00:00
lukem
5d4973fe97
makefile delint. use NETBSDSRCDIR as appropriate
2002-09-18 14:00:33 +00:00
thorpej
e1ed089ecd
-path is an extension -- say so.
2002-09-16 19:24:59 +00:00
christos
5af793e752
Use LOGIN_NAME_MAX instead of UT_NAMELEN
...
delete include of utmp.h
2002-08-01 22:41:34 +00:00
ross
2a76afae02
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:36:18 +00:00
kleink
4f0bdb5b24
Since we've already been down that road with -cnewer, support GNU find(1)'s
...
-anewer as well.
2001-12-02 12:46:39 +00:00
wiz
056d651038
Punctuation fix, sort SEE ALSO, sort sections, drop a .Pp.
2001-12-01 19:11:27 +00:00
wiz
aded0d2cce
Whitespace cleanup.
2001-12-01 16:43:07 +00:00
kleink
e7566d6000
Add a "cnewer" primary which evaluates true if a file has a more recent
...
ctime than its argument.
From kre in PR bin/14802; originally suggested name was "updated" but
renamed due to GNU find(1) being prior art for this functionality.
2001-12-01 14:10:04 +00:00
enami
49f300855c
Reallocate memory correctly while substituting the braces.
2001-09-21 07:11:33 +00:00
simonb
0e3b64a601
Back out previous vfork->fork change now that the cause of the problem
...
(execvp) has been fixed.
2001-09-18 05:11:15 +00:00
simonb
7a40d9c0cf
Use fork() instead of vfork(). The child calls execvp(), which calls
...
strdup(), which calls malloc()...
Fixes problem with "find .. -exec" growing as reported by Kazushi Marukawa
on current-users@.
2001-09-14 08:19:25 +00:00
abs
9819b7e8e7
space after section number in .Xr
2001-07-06 18:12:02 +00:00
christos
f6321b3b4d
fixed nested externs
2001-02-05 01:53:48 +00:00
lukem
c2b84904ae
use %ll_ instead of the less standard %q_
2001-01-04 23:05:54 +00:00
jdolecek
b029146cfa
move the -and option in options[] table where it alphabetically belongs,
...
so that -amin works again
this fixes bin/11251
2000-10-18 08:58:11 +00:00
enami
e92c3f2867
- The type of return value of setmode is a void * and getmode takes it,
...
rather than mode_t *.
- Free the storage allocated by setmode unless it is obvious that program
exits immediately.
2000-10-10 14:30:40 +00:00
enami
6fc4763861
If -H, clear FTS_LOGICAL and set FTS_PHYSICAL as well as FTS_COMFOLLOW.
...
If -L, clear FTS_PHYSICAL as well as FTS_COMFOLLOW.
2000-08-04 09:01:05 +00:00
kleink
a1359f90c2
-s: Replace the reference to strcmp(3) with a functional description.
2000-07-11 06:47:21 +00:00
enami
2263e83df9
Fix typo.
2000-03-16 18:56:41 +00:00
enami
1ab3345f20
Compare the return value of getopt(3) against -1 rather than EOF.
...
(while i'm here, one more cosometic change is performed).
2000-03-16 18:47:48 +00:00
enami
7b4bdbc144
Cosmetic changes.
2000-03-16 18:44:29 +00:00
itohy
f1042d894e
Add -s in usage.
2000-03-13 08:21:36 +00:00
kleink
41ab7b6729
Use strcoll() to sort directory entries.
2000-03-10 14:50:36 +00:00
itohy
4f844cd4ec
Describe -s (sort) option.
...
Corrections are highly appreciated.
2000-03-10 11:49:14 +00:00
itohy
6baa6f27af
Add -s (sort) option, which causes entries in each directory sorted.
...
Similar to FreeBSD's.
2000-03-10 11:46:04 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
kleink
13ca730983
Mention -iregex and -regex primaries being non-standard extensions.
1999-07-20 09:02:24 +00:00
cgd
91ff0a1b87
add -regex and -iregex primaries which, like GNU find's primaries of the
...
same name, match files' entire paths against regular expressions.
-regex is case sensitive, -iregex is case-insensitive. Note that these
primaries are _not_ entirely compatible with the GNU find primaries,
because their BREs appear to support alternation with \| whereas our BREs
do not. Also note there are no primaries which provide extended regular
expressions matching, though if they are desired they would be trivial
to implement.
1999-07-20 01:28:41 +00:00
simonb
bf92a11622
Add '-h' to synopsis - from Nathan Williams.
1999-04-30 00:52:58 +00:00
simonb
d8b807ed6d
Add 'h' to optstring. Fixes PR 7492 from Tom Trebisky.
1999-04-29 02:23:58 +00:00
mycroft
1b3538d0ea
Fix minor formatting error.
1999-03-07 00:12:13 +00:00
kleink
a9db8146da
Don't choke on file size specifications (legitimately) exceeding LONG_MAX.
1999-02-04 16:41:17 +00:00
simonb
88c54c38e0
Add -{a,c,m}min to STANDARDS section (via Klaus Klein)
1999-01-19 23:22:27 +00:00
simonb
810471468e
Add GNU-style -{a,c,m}min primaries.
1999-01-16 13:27:30 +00:00
lukem
98ae72f685
Add support for -printx, which quotes pathnames in an xargs friendly way.
...
From [bin/6790] by Eric Fischer <eric@fudge.uchicago.edu>
1999-01-12 00:18:50 +00:00
lukem
adfde6fdc9
Add support for "-flags [-]flags", which matches the file flags in a
...
similar way that "-perm [-]mode" matches the file mode.
1999-01-03 14:54:27 +00:00
lukem
191498cad2
args to -perm are "-perm [-]mode" not "-perm [-mode]"
1999-01-03 14:11:54 +00:00
lukem
c5d402d13c
fix bugs in handling of `!' operator:
...
* 'find . !' would coredump
* ! wouldn't correctly negate expressions in parenthesis
discovered and fixed by Dave Sainty <dave@dtsp.co.nz> in [bin/6412]
1999-01-02 02:34:15 +00:00
christos
a3cf33f0fd
make printf format more conservative
1998-11-06 23:21:38 +00:00
christos
3f852e73e1
we don't need sys/ucred.h
1998-11-06 23:21:01 +00:00
simonb
1f00456a27
For -ls output, change field widths to allow inodes up to 9,999,999 and
...
file sizes up to 999,999,999 bytes (and 999,999 blocks) without wobbly
lines. Also change device minor/major to be 3/5 digits (current maximum
is 4/7 digits - the 3/5 split is arbitary).
1998-10-27 04:53:03 +00:00
wsanchez
3376e86cab
include stdlib
1998-10-14 00:50:59 +00:00
wsanchez
6149c86370
init mask to silence -Wall
1998-10-14 00:50:43 +00:00
msaitoh
4ac829e2c6
eliminate a duplicated -X entry
1998-05-27 13:15:30 +00:00
thorpej
b936691cf7
Cast off_t to long long for printing with %qd.
1998-03-03 02:22:40 +00:00
christos
9a80b4fa85
Simplify the function calling code and warnsify.
1998-02-21 22:47:20 +00:00
cgd
c62f53ae70
allocate temporary storage for directory list, rather than clobbering
...
argv (yuck!).
1998-02-10 21:52:51 +00:00
mrg
111777dda2
remove getvfsbyname cruft.
1998-02-03 01:04:27 +00:00
mrg
7b983ca6d5
merge lite2, sans getvfsbyname in functions.c (waiting on libc)
1998-02-02 14:02:06 +00:00
lukem
9142eb1e1e
disable WARNS for now
1997-10-19 12:04:58 +00:00
lukem
6f330af093
fix .Nm usage, deprecate register, mostly WARNSify (needs minor rewrite to fix)
1997-10-19 11:52:59 +00:00
lukem
403b699b0b
fix .Nm usage, deprecate register, mostly WARNSify (needs minor rewrite to fix)
1997-10-19 11:52:12 +00:00
lukem
906b60f5e0
getopt returns -1 not EOF
1997-10-18 14:49:41 +00:00
jtc
b70081bba0
Changed format directive for printing number of blocks from %4ld to
...
%4qd as the st_blocks field is a int64_t. Fixes PR 3814.
1997-06-30 21:26:57 +00:00
matthias
cd80e9aae6
remove second RCS-Id line.
1997-02-01 09:51:48 +00:00
matthias
ec450f3940
finding whiteouts didn't work.
1997-01-30 09:17:27 +00:00
tls
9d225a1783
RCS ID police
1997-01-09 20:18:21 +00:00
mrg
779746748d
KNF.
1996-06-23 11:21:48 +00:00
mrg
00333c9e38
fix incorrect (dated?) comment.
1996-06-23 11:16:39 +00:00
mrg
4b88cc7b60
add support for whiteouts. pr#2394 (Mike Long <mike.long@analog.com>)
1996-05-21 13:43:50 +00:00
thorpej
b62a077e9a
Document the -follow option, per David Brownlee <abs@mono.city.ac.uk>
...
in PR #1113 .
1996-01-14 03:52:44 +00:00
cgd
3d113b326b
don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated
1995-06-18 10:58:06 +00:00
cgd
0c876871bd
kill some unnecessary casts and decls
1994-12-24 16:30:51 +00:00
mycroft
5ee5940abc
Get rid of a redundant sanity check.
1994-10-18 17:02:44 +00:00
mycroft
f8825bfb96
Always save both the mount flags and the file system type when crossing a
...
mount point. From John Kohl.
1994-10-18 13:54:25 +00:00
cgd
d731b5b8a7
fix behaviour when adding -print
1994-07-18 09:55:31 +00:00
cgd
ecc12ef419
fstypes will be strings soon
1994-04-14 03:34:13 +00:00
cgd
0fa009a916
off_t exp.
1994-03-27 09:01:41 +00:00
andrew
ec255a65c8
-nouser and -nogroup tests were negated.
1994-02-16 03:59:52 +00:00
cgd
5123f7879d
don't need -lutil
1994-01-28 00:36:28 +00:00
jtc
35104de52f
Changed order of the subexpressions in a conditional to guard against
...
the case of zero length arguments.
1994-01-24 23:08:15 +00:00
jtc
0760ea89b4
Flush stdout and stderr before processing an -exec (or -ok), so the output
...
of the exec'd command and find's output will be correctly interspersed.
(Bug noticed by Terry Lambert, of FreeBSD. Fix by me).
1994-01-21 02:59:38 +00:00
jtc
201bc757f6
st_blocks & st_size aren't quads (at least not yet).
1994-01-06 23:13:13 +00:00
jtc
3dfa59ec4a
Merged our bugfixes with the 4.4BSD find from uunet.
1993-12-30 21:15:18 +00:00
jtc
4ffe868003
Remove special case for root-level symlinks.
1993-12-30 20:09:51 +00:00
jtc
5b6c771aeb
Update the list of primaries that are extensions of POSIX.2.
1993-12-29 22:22:44 +00:00
jtc
7c609895ee
Changed to conform to POSIX.2, 4.24.4: the first argument that starts with
...
a -, or is a ! or a (, and all subsequent arguments shall be interpreted
as an expression ...
The behavior before this change can cause a non-option (eg -owner instead
of -user) to be interpreted as a file name. Depending on the expression
used, this could cause serious damage:
find . -owner jtc -exec rm \{\} \;
Will delete every file.
1993-12-29 22:00:13 +00:00
jtc
3a2b9d8c2b
Added -print0 (like GNU find). This will allow file names that contain
...
newlines to be correctly interpreted by programs that process find
output.
1993-10-27 17:52:30 +00:00
jtc
99cd400e2e
Use *->fts_errno instead of errno after fts_read(). The fts manpage
...
indicates that the fts_errno will be set to the correct value, but there
are no guarentees about errno.
1993-10-01 01:03:22 +00:00
cgd
62d3b2073c
fix to the 'size' primary; -size <n>c didn't work. from
...
Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
1993-09-16 21:41:30 +00:00
deraadt
f85c326074
for new fts library
1993-08-06 01:53:33 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
dfb9caab49
Add RCS indentifiers.
1993-08-01 07:32:48 +00:00
mycroft
690cae8181
Add RCS indentifiers.
1993-07-31 15:17:49 +00:00
jtc
5108aaad56
Update source to use posix fnmatch
1993-06-16 17:19:05 +00:00
mycroft
ea595285f6
Remove bogus option so as not to confuse bsearch().
1993-04-19 11:25:41 +00:00
mycroft
5db0bae112
Reverse sense of fnmatch() to match POSIX.
1993-04-10 01:10:27 +00:00
cgd
7c6490bf10
added support for "kernfs" and "fdesc" to -fstype
1993-03-24 22:56:32 +00:00
cgd
609f072018
fixed fact that "rdonly" wasn't supported by -fstype, but the man
...
page said it was. also fixed multiple fstype checks on the same
partition
1993-03-24 22:54:22 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00