Package: coreutils
Version: 8.20-3
Severity: minor

When trying to delete not-empty directory that cannot be deleted by rights on
parent dir with option --ignore-fail-on-non-empty user got simply 'failed to
remove' message, without exact reason. When trying to delete empty directory
that cannot be deleted by rights - it says nothing and exit status is zero.
Example:
$ mkdir d1
$ mkdir d1/d2
$ chmod a-w d1
$ rmdir d1/d2/
rmdir: failed to remove 'd1/d2/': Permission denied
$ rmdir --ignore-fail-on-non-empty d1/d2/
$ echo $?
0
$ touch d1/d2/f1
$ rmdir --ignore-fail-on-non-empty d1/d2/
rmdir: failed to remove 'd1/d2/'
$ rmdir d1/d2/
rmdir: failed to remove 'd1/d2/': Permission denied


I think rmdir should say 'Permission denied' with exit status 1 in first case
and say 'Permission denied' or do not report error in second case



-- System Information:
Debian Release: 7.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'unstable'), (500, 
'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages coreutils depends on:
ii  dpkg          1.16.10
ii  install-info  4.13a.dfsg.1-10
ii  libacl1       2.2.51-8
ii  libattr1      1:2.4.46-8
ii  libc6         2.16-0experimental1
ii  libselinux1   2.1.9-5

coreutils recommends no packages.

coreutils suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to