summaryrefslogtreecommitdiffstats
path: root/bin/rmdir/rmdir.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove useless errno.h include.ssouhlal2005-01-261-1/+0
| | | | | Approved by: grehan (mentor) Obtained from: DragonFlyBSD
* Do not emit a spurious warning when "directory" argumentru2004-11-201-1/+3
| | | | to "rmdir -p" is absolute, with one or more leading slash.
* Fixed "rmdir -p" that got broken by rev. 1.15.ru2004-11-201-6/+5
| | | | (This also fixes "rmdir -v /nonexistent".)
* Added -v to usage().ru2004-05-161-1/+1
|
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Add a -v (verbose) option.des2004-03-211-11/+22
|
* Quiet warnings about copyright[].obrien2003-05-011-2/+2
|
* Consistently use FBSDIDobrien2002-06-301-2/+2
|
* o __P has been reovedimp2002-02-021-9/+5
| | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
* Silence WARNS=2 and BDECFLAGS on alpha and i386kris2001-05-201-0/+1
| | | | MFC after: 1 week
* Fix the rmdir -p a/b/c/ case, where rmdir -p a/b/c works, and rmdir c/nbm2000-06-281-0/+4
| | | | | | | | works. PR: PR 6521 Submitted by: Rudolf Cejka <xcejka00@dcse.fee.vutbr.cz> Reviewed by: eivind (in brief retrograde)
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Correct use of .Nm. Add rcsid.charnier1998-05-181-3/+5
|
* Don't strip trailing slashes (for the initial rmdir). It breaksbde1997-12-191-9/+1
| | | | | | | | | | | | | | | | | following of the symlink for `rmdir symlink/' and is unnecessary for ordinary directories (POSIX doesn't require rmdir(1) to do anything for trailing slashes; it requires rmdir(2) to let them "refer to a directory", and following the symlink for symlink/ is what BSD does). This also fixes bugs in the slash-stripping code (for paths consisting entirely of slashes, the pointer into the string was decremented to "before" the beginning of the string, and the path was at best stripped to "". The behaviour is unchanged except for the final directory for `rmdir -p ...'. There is no alternative to stripping intermediate slashes since they must be specified. The sloppy slash-stripping code is adequate for intermediate directories, since the all-slashes case fails early.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* -Wall cleaning and implement -p commandline option.steve1996-12-141-7/+45
| | | | -p mod obtained from: NetBSD
* Added $Id$dg1994-09-241-0/+2
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+86
OpenPOWER on IntegriCloud