X-Reportbug-Version: 3.39
X-Debbugs-Cc: [EMAIL PROTECTED]
Package: coreutils
Version: 6.0-1
Severity: minor
If I try to "mv" a file in /tmp (which is 1777) that doesn't belong
to my user, "mv" prints
mv: cannot remove `/tmp/a': Not a directory
which is clearly misleading - it should print "Operation not permitted".
strace shows some legacy behaviour - trying to unlink(), then rmdir(),
although it knows that it's a file (it just copied it
[because it got EXDEV {Invalid cross-device link}] :-).
close(6) = 0
close(5) = 0
unlink("/tmp/a") = -1 EPERM (Operation not
permitted)
open("/tmp/a", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=681564, ...}) = 0
close(5) = 0
rmdir("/tmp/a") = -1 EPERM (Operation not
permitted)
Afterwards it looks for translated messages ... so the ENOTDIR must be
determined by looking at the fstat() information.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.21-2-amd64 (SMP w/1 CPU core)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages coreutils depends on:
ii libacl1 2.2.45-1 Access control list shared library
ii libc6 2.6.1-5 GNU C Library: Shared libraries
coreutils recommends no packages.
-- no debconf information
--
Versioning your /etc, /home or even your whole installation?
Try fsvs (fsvs.tigris.org)!
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]