| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
rm must not use FTS_NOCHDIR, since chdir'ing is required for removing
deep directory trees and the ability to remove such trees is required
by POSIX.2 and POLA. The breakage didn't make much difference until
recently, since fts(3) didn't work in deep directory trees. It isn't
clear whether using FTS_NOCHDIR ever fixed anything (Net/2's rm.c is
similar to Lite1's). Perhaps it was actually to limit the damage
caused by the fts bug.
|
|
|
|
|
|
| |
make code slightly easier to read
Reviewed by: obrien
|
|
|
|
| |
Submitted by: John Hay -- John.Hay@mikom.csir.co.za
|
|
|
|
|
|
| |
exit(1) --> exit(EX_USAGE)
Reviewed by: obrien
|
| |
|
|
|
|
|
|
|
| |
Use optimal blocksize for rm -P, instead of always using 8192-byte blocks
to overwrite the file.
Obtained from: OpenBSD
|
|
|
|
|
|
|
| |
appears to be consistent with other Unixen, like Solaris.
PR: 10240
Submitted by: jun_sun@hlla.is.tsukuba.ac.jp
|
|
|
|
|
| |
our implementation does not meet 1003.2 (rather than the now outdated
``is expected to comply' language).
|
| |
|
|
|
|
|
|
|
| |
precedence in changing sccsid to rcsid as set by Phillippe
Charnier in his previous 100 or so commits.
pointed out by: Bruce Evans <bde@zeta.org.au>
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
a dash in non-getopt implementations. E.g.:
rm /home/mpp/-filename
rm ./-filename
Requested by: bde
|
| |
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
|
|
|
|
| |
cruft is protected by a #ifdef (BSD4_4_LITE) that should be
removed when this is supported by the kernel.
|
|
|
|
| |
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
|
|
|
|
|
|
| |
respond `Y' is equal to `y'
Add a note how to delete file name with beginning `-'
|
| |
|
|
|
|
| |
Submitted by: pst, ache
|
| |
|
|
|
|
|
| |
all flag variables initialized with zero
respond `Y' is equal to `y'
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Reviewed by: phk
Submitted by: Josef Grosch <joeg@gagme.wwa.com>
|
|
|
|
|
|
|
|
| |
Submitted by:
Added the FTS_NOCHDIR flag to the fts-open call. This is needed, so that
the fts don't change the current directory for rm and subsequent calls
to rmdir with relative pathnames don't fail.
Pulled over the bugfix in 1.1.5.
|
|
|