summaryrefslogtreecommitdiff
path: root/usr.bin/find
Commit message (Collapse)AuthorAgeFilesLines
* MFC: {r1.15 find.1; r1.11 locate.1; r1.5 whereis.1; r1.11 which.1} AddJoseph Koshy1998-05-221-1/+3
| | | | | | | cross references for find(1), locate(1), whereis(1), which(1). Notes: svn path=/stable/2.2/; revision=36300
* MFC: all single character options are extensions to Posix.Steve Price1998-02-011-6/+2
| | | | | | | PR: 4701 Notes: svn path=/stable/2.2/; revision=32975
* MFC: getopt returns -1 not EOFWarner Losh1997-08-291-1/+1
| | | | Notes: svn path=/stable/2.2/; revision=28881
* YAMFC: it's'' -> its'' where appropriate and typo fixes in time2posix.3.Eivind Eklund1997-05-191-2/+2
| | | | | | | | | | This is RELENG_2_2, if the headers don't show that. PR: 3612 Submitted by: Josh Gilliam <soil@quick.net> Notes: svn path=/stable/2.2/; revision=25946
* Merge from main branch 1.9 -> 1.10: Mention that "-P" is theJohn Polstra1997-05-191-1/+2
| | | | | | | default. Notes: svn path=/stable/2.2/; revision=25943
* Typo fix.Masafumi Max NAKANE1997-05-031-2/+2
| | | | | | | SUbmitted by: Josh Gilliam <soil@quick.net> Notes: svn path=/stable/2.2/; revision=25396
* YAMFC (rev 1.3: fix gross uninitiliazed variable problem)Joerg Wunsch1997-03-101-1/+7
| | | | Notes: svn path=/stable/2.2/; revision=23616
* YAMFC (rev 1.11: fix handling the name "msdos")Joerg Wunsch1997-02-021-7/+4
| | | | Notes: svn path=/stable/2.2/; revision=22222
* With -delete, don't complain about non-empty directories. OtherwisePeter Wemm1996-10-051-1/+1
| | | | | | | "cd /tmp; find . -mtime +7 -delete" is excessively noisy. Notes: svn path=/head/; revision=18720
* For the -delete option, emulate the behavior of "rm -f" when dealing withPeter Wemm1996-10-051-0/+7
| | | | | | | | | user-immutable files. Requested by: ache Notes: svn path=/head/; revision=18713
* Implement a -delete option to find. The code is extremely paranoid andPeter Wemm1996-10-045-2/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | goes to a fair degree of trouble to enable something like this to be safe: cd /tmp && find . -mtime +7 -delete It removes both files and directories. It does not attempt to remove immutable files (an earlier version I showed to a few people did a chflags and tried to blow away even immutable files. Too risky..) It is thought to be safe because it forces the fts(3) driven descent to only do "minimal risk" stuff. specifically, -follow is disabled, it does checking to see that it chdir'ed to the directory it thought it was going to, it will *not* pass a pathname with a '/' character in it to unlink(), so it should be totally immune to symlink tree races. If it runs into something "fishy", it bails out rather than blunder ahead.. It's better to do that if somebody is trying to compromise security rather than risk giving them an opportunity. Since the unlink()/rmdir() is being called from within the current working directory during the tree descent, there are no fork/exec overheads or races. As a side effect of this paranoia, you cannot do a "find /somewhere/dir -delete", as the last argument to rmdir() is "/somewhere/dir", and the checking won't allow it. Besides, one would use rm -rf for that case anyway. :-) Reviewed by: pst (some time ago, but I've removed the immutable file deletion code that he complained about since he last saw it) Notes: svn path=/head/; revision=18681
* [HISTORY] command appeared in Version 1 AT&T UNIXWolfram Schneider1996-08-291-0/+6
| | | | | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41 Notes: svn path=/head/; revision=17891
* Localize itAndrey A. Chernov1996-08-122-3/+5
| | | | Notes: svn path=/head/; revision=17534
* Use strtoq() instead of strtol() so that large inums, and sizes can beBruce Evans1996-04-071-4/+4
| | | | | | | | | | specified. Not fixed: specification of large uids and gids; silent truncation of unrepresentable values. Notes: svn path=/head/; revision=15102
* Don't use printf() for simple strings because it is slow. Closes PR 783.Garrett Wollman1995-10-161-1/+1
| | | | | | | Submitted by: Wolfram Schneider <wosch@freebsd.first.gmd.de> Notes: svn path=/head/; revision=11538
* Simpler fix to the find bug reported by Terry Lambert <terry@lambert.org>Nate Williams1995-09-121-0/+3
| | | | | | | | | | [ Find to a file vs. to stdout ] produces different output because find does not flush stdout when doing a -print. Submitted by: Jeffrey Hsu <hsu@freefall.freebsd.org> Notes: svn path=/head/; revision=10704
* Delete bogus referneces to timezone code internal header file `tzfile.h',Garrett Wollman1995-08-072-7/+5
| | | | | | | which is no longer bogusly installed in /usr/include. Notes: svn path=/head/; revision=9987
* Remove trailing whitespace.Rodney W. Grimes1995-05-305-88/+88
| | | | Notes: svn path=/head/; revision=8874
* Add GNU-style `-print0' primary. This exists so that one can safelyGarrett Wollman1995-05-095-4/+39
| | | | | | | | do `find some-nasty-expression -print0 | perl -n0e unlink' and have all the files actuallly get deleted. (Using `xargs' and `rm' is not safe.) Notes: svn path=/head/; revision=8389
* Fix completely broken find behaviour:Guido van Rooij1995-02-271-0/+7
| | | | | | | | | | a find -foo -o -bar would behave like find -bar. The same for -a This broke (among others) ./etc/security. Obtained from: NetBSD Notes: svn path=/head/; revision=6776
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-2711-0/+2724
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590