| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Noticed by: ru
|
| |
|
|
|
|
|
| |
Approved by: grehan (mentor)
Obtained from: DragonFlyBSD
|
| |
|
|
|
|
| |
to "rmdir -p" is absolute, with one or more leading slash.
|
|
|
|
| |
(This also fixes "rmdir -v /nonexistent".)
|
| |
|
|
|
|
| |
OK'ed by: imp, core
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
set WARNS=0.
Reviewed by: mike
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
|
|
|
|
| |
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
|
| |
works.
PR: PR 6521
Submitted by: Rudolf Cejka <xcejka00@dcse.fee.vutbr.cz>
Reviewed by: eivind (in brief retrograde)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
posix standard on the topic.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
-p mod obtained from: NetBSD
|
|
|
|
| |
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
|
| |
|
|
|