summaryrefslogtreecommitdiffstats
path: root/bin/rmdir
Commit message (Collapse)AuthorAgeFilesLines
* 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-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | 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-142-23/+61
| | | | -p mod obtained from: NetBSD
* [HISTORY] command appeared in Version 1 AT&T UNIXwosch1996-08-291-1/+6
| | | | Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
* Added $Id$dg1994-09-243-0/+4
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-263-0/+183
OpenPOWER on IntegriCloud