summaryrefslogtreecommitdiff
path: root/bin/rm/rm.c
AgeCommit message (Expand)Author
2025-11-08rm(1): remove whiteouts when forcibly removing directoriesJason A. Harmening
2023-11-26Remove copyright strings ifdef'd outWarner Losh
2023-11-26bin: Remove ancient SCCS tags.Warner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2020-12-08fts_read: Handle error from a NULL return better.Bryan Drewery
2020-04-23Remove include of stdint.h. It was added in r241014 for uintmax_t,Xin LI
2018-11-10rm(1): Formalize non-functional status of -P flagConrad Meyer
2018-09-12Fix unlink(1) for files starting with -Ed Maste
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-11-05Fix cosmetic nit when printing out "override $mode" and "$owner/$group ..."Enji Cooper
2017-02-28Renumber copyright clause 4Warner Losh
2015-11-07Protecting against rm -rf / is now POSIXLY_CORRECT per posix 1003.1Baptiste Daroussin
2015-08-28Respect locale settings.Xin LI
2014-07-07rm -rf can fail sometimes with an error from fts_read. Make it honorWarner Losh
2013-04-26Add two more 'static' qualifiersEitan Adler
2013-04-26Take some improvements from DragonFlyBSD:Eitan Adler
2013-04-26Add -x option to avoid crossing mount points when removing a hierarchy.Eitan Adler
2012-09-27Fix bin/ build with a 64-bit ino_t.Matthew D Fleming
2012-06-20Polish previous revision: if the fts_* routines have lstat()'ed theXin LI
2012-06-20Fix potential symlink race condition in "rm -P" by adding a checkKevin Lo
2011-10-31Put some static keywords in the source code.Ed Schouten
2011-03-15bin: Prefer strrchr() to rindex().Jilles Tjoelker
2010-10-08rm(1): clarify that -P works only when blocks are updated in-placeUlrich Spörlein
2009-05-30rm, find -delete: fix removing symlinks with uchg/uappnd set.Jilles Tjoelker
2009-04-29Implement ^T support for rm: now it will report the next file itWarner Losh
2006-10-31Correct a security issue introduced in previous commit:Xin LI
2006-10-30Be more reasonable when overwrite mode is specified while thereXin LI
2006-10-18o Backout rev. 1.55. Don't waste cpu cycles for bzero(), do notMaxim Konovalov
2006-10-18o Zero out struct stat before usage. lstat(2) can fail andMaxim Konovalov
2006-04-15o Be pedantic and do fts_close() when done.Maxim Konovalov
2005-09-29Handle the case where the -P flag is specified for a read-only fileDoug Barton
2004-11-13UNIX conformance: If -r -f on non-existent directory, don't emit error.Jordan K. Hubbard
2004-10-28Add -I, an option that asks for confirmation once if recursivelyXin LI
2004-10-04The previous commit added code to rm(1) to warn about and remove anyDag-Erling Smørgrav
2004-10-04Find out how flame-proof my underwear really is.Dag-Erling Smørgrav
2004-10-04Whitespace cleanup.Dag-Erling Smørgrav
2004-04-06Remove clause 3 from the UCB licenses.Mark Murray
2004-01-01o Fix a style bug and poor wording in comment.Jun Kuriyama
2003-11-10When the P flag is set (i.e. Overwrite regular files before deleting them),Guido van Rooij
2003-11-081. Fixed leakage of a file descriptor for every non-fatal failure inBruce Evans
2003-05-01Quiet warnings about copyright[].David E. O'Brien
2002-08-21s/filesystem/file system/ as discussed on -developersTom Rhodes
2002-07-12Complain if more than one file argument is given to unlink(1) like we didTim J. Robbins
2002-07-10err() is documented as allowing NULL for the format string but GCC isn'tMatthew Dillon
2002-06-30Consistently use FBSDIDDavid E. O'Brien
2002-05-30Reject options, handle "--" correctly in unlink(1).Tim J. Robbins
2002-05-16Consistancy check s/file system/filesystem/Tom Rhodes
2002-02-14Move user_from_uid to pwd.hWarner Losh
2002-02-02o __P has been reovedWarner Losh
2001-12-14Add prototypes for main() so that these programs compile with -WerrorLuigi Rizzo