History log of /freebsd-10.1-release/bin/rm/rm.1
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 249948 26-Apr-2013 eadler

Add -x option to avoid crossing mount points when removing a hierarchy.

Discussed on: -hackers
Inspired by: DragonflyBSD
MFC After: 1 week


# 248342 15-Mar-2013 joel

Add a few examples.

Obtained from: OpenBSD


# 214604 31-Oct-2010 uqs

Fix typo and grammar nit

Submitted by: arundel
MFC after: 7 days (or when the bikeshed has abated)


# 214596 31-Oct-2010 uqs

Elaborate some more on the non-security implications of using -P

Submitted by: delphij
Discussion at: svn-src-all


# 214431 27-Oct-2010 des

Language cleanup.


# 213582 08-Oct-2010 uqs

rm(1): clarify that -P works only when blocks are updated in-place

Suggested by: pjd, ivoras, arundel


# 213398 04-Oct-2010 delphij

Clarify the combination effect of -P and -f to make it clear.

Submitted by: arundel
MFC after: 2 weeks


# 165555 26-Dec-2006 ru

Give a hint to the reader as to what the "whiteout" actually means.


# 165554 26-Dec-2006 ru

Fix markup, add the EXIT STATUS section.


# 163812 31-Oct-2006 delphij

Correct a security issue introduced in previous commit:
instead of removing the file and issue a warning about
the removal, do not do any operation at all in case -P
is specified when the dinode has hard links.

With -f and -P specified together, we assume that the
user wants rm to overwrite the contents of the file
and remove it (destroy the contents of file but leave
its hard links as is).

The reason of doing it this way is that, in case where
a hard link is created by a malicious user (currently
this is permitted even if the user has no access to the
file). Losing the link can potentially mean that the
actual owner would lose control completely to the user
who wants to obtain access in a future day.

Discussed with: Peter Jermey


# 163777 30-Oct-2006 delphij

Be more reasonable when overwrite mode is specified while there
is hard links. Overwritting when links > 1 would cause data
loss, which is usually undesired.

Inspired by: discussion on -hackers@
Suggested by: elessar at bsdforen de
Obtained from: OpenBSD


# 152547 17-Nov-2005 ru

-mdoc sweep.


# 150742 30-Sep-2005 dougb

Give .Dd a tummy rub, forgotten on my last commit.


# 150729 29-Sep-2005 dougb

Handle the case where the -P flag is specified for a read-only file
earlier, and more gracefully. Previously, this combination would be
ignored early in the code where permissions are tested and fail later
with a very unhelpful "permission denied" error.

Instead, test for this flag in the same block that generates the
"override?" messages for read-only files, but instead of trying
to guess what the user has in mind, generate an error and exit.

Update the man page to reflect this new behavior.

Not objected to by: freebsd-hackers@


# 141578 09-Feb-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


# 140353 16-Jan-2005 ru

Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.


# 139969 10-Jan-2005 imp

/*- or .\"- or #- to begin license clauses.


# 137110 01-Nov-2004 delphij

Correct a typo and make the documentation more mdoc(7) complaint.

Pointed out by: dd
Approved by: murray (mentor)


# 137009 28-Oct-2004 delphij

Add -I, an option that asks for confirmation once if recursively
removing directories or if more than 3 files are listed in the
command line.

This feature is intended to provide a safe net but not being too
annoying like having "rm -i" for every deleting operations, and
is generally good for both newbies and power users, preventing
them from being so easily run into ``rm -rf /'', ``rm -rf *''
and so forth.

Originally implemented by Matthew Dillon for DragonFly, plus
some improvements done by various DragonFly contributors.

Approved by: murray (mentor; the original dillon's version)
Discussed with: des
Obtained from: DragonFly's bin/rm/
rm.c rev. 1.4 - 1.8
rm.1 rev. 1.3 - 1.4
MFC After: 1 month


# 136123 04-Oct-2004 des

Markup fixes.

Pointed out by: ru


# 136113 04-Oct-2004 des

Find out how flame-proof my underwear really is.


# 131484 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


# 127958 06-Apr-2004 markm

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


# 110347 04-Feb-2003 trhodes

Cross ref chflags(1).

Suggested by: Craig Carey <research@ijs.co.nz) on -doc.


# 102230 21-Aug-2002 trhodes

s/filesystem/file system/ as discussed on -developers


# 96702 15-May-2002 trhodes

Consistancy check s/file system/filesystem/

Reviewed by: brian


# 91555 02-Mar-2002 dwhite

Update STANDARDS section on rm(1) to reflect current conformance.

PR: 35471


# 79754 15-Jul-2001 dd

Remove whitespace at EOL.


# 72432 13-Feb-2001 ru

mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.


# 70056 15-Dec-2000 ru

Prepare for mdoc(7)NG.


# 68935 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


# 54943 21-Dec-1999 sheldonh

Fix cut'n'paste niggles in previous commit.


# 54895 20-Dec-1999 sheldonh

Add link(1) and unlink(1) as special cases of ln(1) and rm(1)
respectively, in accordance with SUSv2.

This differs from the approach taken in NetBSD, but provides
less obscure error messages in at least the EISDIR case and
does not take up additional disk space for new binaries.

PR: 13071
PR: 13074
Requested by: James Howard <howardjp@wam.umd.edu>


# 50872 04-Sep-1999 mharo

brucify, `v' before `W', mention -v is non-standard in manpage and
make code slightly easier to read

Reviewed by: obrien


# 50539 29-Aug-1999 mharo

add verbose flag
exit(1) --> exit(EX_USAGE)

Reviewed by: obrien


# 50471 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 47584 28-May-1999 kris

Use .Dq instead of ``'' in manpage
Use optimal blocksize for rm -P, instead of always using 8192-byte blocks
to overwrite the file.

Obtained from: OpenBSD


# 43352 28-Jan-1999 wollman

Fix synopsis to match 1003.2. Add text describing the way in which
our implementation does not meet 1003.2 (rather than the now outdated
``is expected to comply' language).


# 36146 18-May-1998 charnier

.Nm rm -> .Nm.


# 27964 07-Aug-1997 steve

Remove remaining Lite1 stuff from the man page and uphold the
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>


# 25280 29-Apr-1997 dfr

Enable whiteout code since we now have the lite2 support for them.


# 24735 09-Apr-1997 mpp

Provide examples of how to remove file names that begin with
a dash in non-getopt implementations. E.g.:
rm /home/mpp/-filename
rm ./-filename

Requested by: bde


# 24731 08-Apr-1997 mpp

Improve the wording in the NOTES section. Closes PR# 3223.


# 22988 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

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.


# 20421 14-Dec-1996 steve

Merge Lite2 mods, and -Wall cleaning. Unimplemented undelete(2)
cruft is protected by a #ifdef (BSD4_4_LITE) that should be
removed when this is supported by the kernel.


# 17891 29-Aug-1996 wosch

[HISTORY] command appeared in Version 1 AT&T UNIX
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41


# 14409 07-Mar-1996 wosch

fix usage string
respond `Y' is equal to `y'

Add a note how to delete file name with beginning `-'


# 3044 24-Sep-1994 dg

Added $Id$


# 1557 26-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1556,
which included commits to RCS files with non-trunk default branches.


# 1556 26-May-1994 rgrimes

BSD 4.4 Lite bin Sources