rmdir on non-empty directory does not fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unionfs-fuse (Ubuntu) |
Confirmed
|
Undecided
|
Bernd Schubert |
Bug Description
Binary package hint: unionfs-fuse
Ubuntu Release:
10.04 / Lucid Lynx
Package Version:
Running the following command sequence:
01 $ cd /tmp
02 $ mkdir tmp
03 $ cd tmp
04 $ ls
05 $ mkdir ro ro/subdir rw union
06 $ touch ro/subdir/file
07 $ unionfs-fuse -o cow /tmp/tmp/
08 $ ls -l union/subdir
insgesamt 0
-rw-r--r-- 1 wjg wjg 0 2010-05-31 16:09 file
09 $ rmdir union/subdir
10 $ ls -l union/subdir
ls: Zugriff auf union/subdir nicht möglich: No such file or directory
11 $ fusermount -u /tmp/tmp/union
Expected outcome:
I expect the command on line 09 to fail, as the directory union/subdir is not empty.
Actual outcome:
Instead it succeeds. The contents below the directory are "lost".
Some additional context:
I want to use unionfs-fuse in the context of the Ubuntu Customization Toolkit to avoid having to extract ISO and squashfs images. Several (python) packages do a "rmdir -f /usr/lib/
Changed in unionfs-fuse (Ubuntu): | |
status: | New → Confirmed |
status: | Confirmed → Fix Committed |
Thanks for your report Wolfgang. I just fixed that in my 0.25 branch: podgorny. cz/~bernd/ hg/hgwebdir. cgi/0.25
http://
Building should be easy, but if you should need a package, I can also upload it to my home page.
However, I'm presently out of ideas what I shall do about Debian and Ubuntu. I'm one of the upstream authors and also the package maintainer. However, as I'm not a DD (debian developer) I cannot upload to Debian without a sponsor. But already for a couple of months, I cannot find a sponsor for this package (a newer version is at mentors.debian.net for a long time already). And Ubuntu simply takes the Debian package. Unless I find a sponsor within the next two weeks, I will request to remove that package from Debian and Ubuntu, as both ship a broken beta version and do not let me fix it. IMHO it is out of question to list me for something which impossible to fulfill.
Thanks,
Bernd