Revision tags: release/2.2.7, release/2.2.6 |
|
#
94aacc4f |
| 10-Jan-1998 |
John Birrell <jb@FreeBSD.org> |
A partial frontal lobotomy for find if using the NetBSD libc which doesn't know about getvfsbyname() and the vfsconf structure. This disables the -fstype option if compiled with a pre-processor that
A partial frontal lobotomy for find if using the NetBSD libc which doesn't know about getvfsbyname() and the vfsconf structure. This disables the -fstype option if compiled with a pre-processor that defines __NetBSD__. With the FreeBSD built pre-processor, find can only be built with the FreeBSD libc. So when running with a NetBSD kernel, FreeBSD's libc will have to return ENOSYS for things that NetBSD doesn't support. That's life in a hybrid world.
show more ...
|
Revision tags: release/2.2.5_cvs |
|
#
3f5223f8 |
| 13-Oct-1997 |
Wolfram Schneider <wosch@FreeBSD.org> |
Add the primaries -mmin, -amin, -cmin to find, similar to the GNU find.
|
#
127d7563 |
| 30-Aug-1997 |
Warner Losh <imp@FreeBSD.org> |
Add -execdir which will execute the exec command in the dir of the file in question. This change and the fts changes should be merged into 2.2-stable as soon as they are vetted in -current. This sh
Add -execdir which will execute the exec command in the dir of the file in question. This change and the fts changes should be merged into 2.2-stable as soon as they are vetted in -current. This should allow cleaning of files in /tmp to be reneabled. Obtained from: OpenBSD
show more ...
|
Revision tags: release/2.2.2_cvs, release/2.2.1_cvs |
|
#
9d08e419 |
| 27-Mar-1997 |
Peter Wemm <peter@FreeBSD.org> |
Fix "-fstype local" that was broken by another bugfix in the Lite2 merge.
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3076
|
Revision tags: release/2.2.0 |
|
#
841484cd |
| 11-Mar-1997 |
Peter Wemm <peter@FreeBSD.org> |
Merge from Lite2 - use new getvfsbyname() and related changes. understand whiteouts (FTS_W from fts()).
|
#
0da30e9a |
| 11-Mar-1997 |
Peter Wemm <peter@FreeBSD.org> |
Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.
|
Revision tags: release/2.1.7_cvs, release/2.1.6_cvs, release/2.1.6.1 |
|
#
fa363c34 |
| 28-Jan-1997 |
Wolfram Schneider <wosch@FreeBSD.org> |
The option "fstype" does not handle the argument "msdos" correctly. This error results from changing the name for the msdos file system from "pcfs" to "msdos". Close PR #1105
submitted by: Thomas Wi
The option "fstype" does not handle the argument "msdos" correctly. This error results from changing the name for the msdos file system from "pcfs" to "msdos". Close PR #1105
submitted by: Thomas Wintergerst <thomas@lemur.nord.de>, Slaven Rezic <eserte@cs.tu-berlin.de>
show more ...
|
Revision tags: release/2.1.5_cvs |
|
#
3598e52c |
| 06-Oct-1996 |
Peter Wemm <peter@FreeBSD.org> |
With -delete, don't complain about non-empty directories. Otherwise "cd /tmp; find . -mtime +7 -delete" is excessively noisy.
|
#
242ab807 |
| 05-Oct-1996 |
Peter Wemm <peter@FreeBSD.org> |
For the -delete option, emulate the behavior of "rm -f" when dealing with user-immutable files.
Requested by: ache
|
#
abacbbbf |
| 04-Oct-1996 |
Peter Wemm <peter@FreeBSD.org> |
Implement a -delete option to find. The code is extremely paranoid and goes to a fair degree of trouble to enable something like this to be safe: cd /tmp && find . -mtime +7 -delete
It removes bot
Implement a -delete option to find. The code is extremely paranoid and 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)
show more ...
|
#
9192bbf4 |
| 07-Apr-1996 |
Bruce Evans <bde@FreeBSD.org> |
Use strtoq() instead of strtol() so that large inums, and sizes can be specified.
Not fixed: specification of large uids and gids; silent truncation of unrepresentable values.
|
Revision tags: release/2.1.0_cvs |
|
#
81e236a0 |
| 16-Oct-1995 |
Garrett Wollman <wollman@FreeBSD.org> |
Don't use printf() for simple strings because it is slow. Closes PR 783.
Submitted by: Wolfram Schneider <wosch@freebsd.first.gmd.de>
|
#
e9f1a293 |
| 13-Sep-1995 |
Nate Williams <nate@FreeBSD.org> |
Simpler fix to the find bug reported by Terry Lambert <terry@lambert.org>
[ Find to a file vs. to stdout ] produces different output because find does not flush stdout when doing a -print.
Submitte
Simpler fix to the find bug reported by Terry Lambert <terry@lambert.org>
[ 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>
show more ...
|
#
656dcd43 |
| 07-Aug-1995 |
Garrett Wollman <wollman@FreeBSD.org> |
Delete bogus referneces to timezone code internal header file `tzfile.h', which is no longer bogusly installed in /usr/include.
|
Revision tags: release/2.0.5_cvs |
|
#
7799f52a |
| 30-May-1995 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
Remove trailing whitespace.
|
#
7cd23434 |
| 09-May-1995 |
Garrett Wollman <wollman@FreeBSD.org> |
Add GNU-style `-print0' primary. This exists so that one can safely do `find some-nasty-expression -print0 | perl -n0e unlink' and have all the files actuallly get deleted. (Using `xargs' and `rm'
Add GNU-style `-print0' primary. This exists so that one can safely do `find some-nasty-expression -print0 | perl -n0e unlink' and have all the files actuallly get deleted. (Using `xargs' and `rm' is not safe.)
show more ...
|
Revision tags: release/2.0, release/1.1.5.1_cvs |
|
#
9b50d902 |
| 27-May-1994 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
BSD 4.4 Lite Usr.bin Sources
|
#
8310a1a2 |
| 14-Feb-2010 |
Gavin Atkinson <gavin@FreeBSD.org> |
The -newerXB option was being interpreted the same as the -newerXm option as a check for F_TIME2_B was missing. Fix this.
PR: bin/138245 Submitted by: "David E. Cross" <crossd cs.rpi.edu> MFC aft
The -newerXB option was being interpreted the same as the -newerXm option as a check for F_TIME2_B was missing. Fix this.
PR: bin/138245 Submitted by: "David E. Cross" <crossd cs.rpi.edu> MFC after: 1 month
show more ...
|
#
65bcaaec |
| 09-Feb-2010 |
Ed Schouten <ed@FreeBSD.org> |
Don't let find(1) depend on struct timeb.
This structure is deprecated and only used by ftime(2), which is part of libcompat. The second argument of get_date() is unused, which means we can just rem
Don't let find(1) depend on struct timeb.
This structure is deprecated and only used by ftime(2), which is part of libcompat. The second argument of get_date() is unused, which means we can just remove it entirely.
show more ...
|
#
9199c09a |
| 06-Jan-2010 |
Warner Losh <imp@FreeBSD.org> |
Merge from head at r201628.
# This hasn't been tested, and there are at least three bad commits # that need to be backed out before the branch will be stable again.
|
#
10bc3a7f |
| 29-Dec-2009 |
Ed Schouten <ed@FreeBSD.org> |
ANSIfy almost all applications that use WARNS=6.
I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge
ANSIfy almost all applications that use WARNS=6.
I was considering committing all these patches one by one, but as discussed with brooks@, there is no need to do this. If we ever need/want to merge these changes back, it is still possible to do this per application.
show more ...
|
#
cbd59a4f |
| 08-Sep-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- MFC from head@196987
|
#
fa2db914 |
| 04-Sep-2009 |
Edward Tomasz Napierala <trasz@FreeBSD.org> |
Add NFSv4 ACL support to find(1).
Reviewed by: rwatson
|
#
7e857dd1 |
| 12-Jun-2009 |
Oleksandr Tymoshenko <gonzo@FreeBSD.org> |
- Merge from HEAD
|
#
6911f596 |
| 30-May-2009 |
Jilles Tjoelker <jilles@FreeBSD.org> |
rm, find -delete: fix removing symlinks with uchg/uappnd set.
Formerly, this tried to clear the flags on the symlink's target instead of the symlink itself.
As before, this only happens for root or
rm, find -delete: fix removing symlinks with uchg/uappnd set.
Formerly, this tried to clear the flags on the symlink's target instead of the symlink itself.
As before, this only happens for root or for the unlink(1) variant of rm.
PR: bin/111226 (part of) Submitted by: Martin Kammerhofer Approved by: ed (mentor) MFC after: 3 weeks
show more ...
|