Hammer: rmdir deletes regular files
Francois Tigeot
ftigeot at wolfpond.org
Tue Aug 5 01:02:51 PDT 2008
On an ufs partition, rmdir(1) removes only empty directories.
If one uses it on a hammer filesystem, it is also able to delete regular
files:
Ufs example:
$ touch one two
$ mkdir three
$ rmdir one two three
rmdir: one: Not a directory
rmdir: two: Not a directory
$ ls one two three
ls: three: No such file or directory
one two
Hammer example:
$ touch one two
$ mkdir three
$ rmdir one two three
$ ls one two three
ls: one: No such file or directory
ls: three: No such file or directory
ls: two: No such file or directory
--
Francois Tigeot
More information about the Bugs
mailing list