summaryrefslogtreecommitdiffstats
path: root/bin/rm/rm.c
AgeCommit message (Expand)AuthorFilesLines
2017-06-27fix a few lines of unusual lengthtedu1-4/+4
2017-06-27add a -v verbose flag to cp, mv, and rm. useful for monitoring progress,tedu1-7/+17
2016-10-14delete useless setlocale(3);schwarze1-5/+2
2016-06-28revert previous. better fix applied to fts_open.tedu1-6/+3
2016-06-28don't report errors for 'rm -rf ""'. report by rkitover.tedu1-3/+6
2016-04-15don't allow removal of /. more robust approach involving stat this time.tedu1-1/+10
2016-02-01style nit - do not add a space between function name and bracketgsoares1-3/+3
2015-11-17Missing "getpw" pledges, these were unnoticed because nobody expectsderaadt1-3/+3
2015-10-13revert previous. changes the behaviour of:daniel1-22/+12
2015-10-11Don't allow "rm -rf /"daniel1-12/+22
2015-10-09Change all tame callers to namechange to pledge(2).deraadt1-5/+5
2015-10-08the -P flag overwrites files, so it needs tame "stdio rpath wpath cpath".deraadt1-1/+9
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-3/+5
2014-05-21Use errc/warnc to simplify code.guenther1-2/+2
2013-04-23handle large ino_tderaadt1-3/+3
2012-09-05overwrite with random stream; a repeating chunk of random data isn'tnaddy1-2/+2
2012-09-04one random overwrite is sufficient, after some discussion on techtedu1-11/+7
2012-06-18Polish the rm -rP turd: if the fts_* routines have lstat()'ed theguenther1-3/+7
2012-06-18Fix potential symlink race condition in "rm -P" by adding a checkmillert1-3/+10
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
2008-06-10do not ask the "override?" question if access fails for other resaons thanotto1-3/+4
2007-06-06Unlink files with multiple links when -P flag is specified insteadray1-6/+4
2006-03-21Call fts_close() when done; from NetBSD's Coverity scan; ok millert@otto1-2/+3
2005-08-30remove -W from synopsis;jmc1-3/+3
2005-06-14whiteouts are gonemillert1-29/+8
2004-06-02outline PASS; use size_t for sizes; better error message.otto1-22/+26
2004-05-31better error handling with -P option. from freebsd (bde@)tedu1-14/+21
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
2003-01-11Attempt to do something reasonable when overwrite mode is combinedhugh1-2/+7
2002-07-04ansideraadt1-18/+9
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-8/+8
2001-09-06o) __progname aria;mpech1-4/+5
2001-06-08Don't give usage warning for 'rm -f' with no files to remove to bemillert1-3/+3
1999-01-02indentderaadt1-3/+3
1999-01-02Fix possible free() of uninitialized pointer.weingart1-4/+5
1998-11-04use optimal xfer block size in rm_overwrite() instead of assuming 8192aaron1-7/+18
1997-09-01i am bored enough to fix terminal space/tab ugliesderaadt1-3/+3
1997-06-18(foo *)NULL -> NULLkstailey1-3/+3
1996-12-14-Wall'ing.mickey1-6/+10
1996-08-02zap getopt() case of -?, come on, it is the default!deraadt1-3/+2
1996-06-23update rcsidderaadt1-1/+2
1995-10-18initial import of NetBSD treederaadt1-0/+427