bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: incorrect error message from 'mv', coreutils 6.4 & 6.9


From: Linda Walsh
Subject: FYI: incorrect error message from 'mv', coreutils 6.4 & 6.9
Date: Tue, 18 Dec 2007 15:00:46 -0800
User-agent: Thunderbird 1.5.0.13 (Windows/20070809)

I noticed this incorrect error message in both,

        "coreutils 6.4-10 from opensuse10.2"
and
        "coreutils-6.9-43 from opensuse10.3"

sudo touch /boot/test      #note, "/boot" is separate partition (important)
mv /boot/test /tmp
mv: cannot remove `/boot/test': Not a directory

--
If mv is between two locations on same device, I get proper message:
mv /boot2/test /tmp  # (/boot2 is on same partition as /tmp)
mv: cannot move `/boot2/test' to `/tmp/test': Permission denied
----
Failcase, 'interesting' strace lines:
access("/tmp/test", W_OK)               = 0
rename("/boot/test", "/tmp/test")       = -1 EXDEV (Invalid cross-device link)
unlink("/tmp/test")                     = 0
open("/boot/test", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=10, ...}) = 0
open("/tmp/test", O_WRONLY|O_CREAT|O_LARGEFILE, 0644) = 4
fstat64(4, {st_mode=S_IFREG|0640, st_size=0, ...}) = 0
read(3, "test_text\n", 4096)            = 10
write(4, "test_text\n", 10)             = 10
semget(4, 0, IPC_CREAT|IPC_EXCL|IPC_NOWAIT|0xbfc50000|0404) = 0
fchown32(4, 0, 0)                       = -1 EPERM (Operation not permitted)
flistxattr(3, (nil), 0)                 = 0
flistxattr(3, 0xbfc50ef0, 0)            = 0
fgetxattr(3, "system.posix_acl_access", 0xbfc50e30, 132) = -1 ENODATA (No data 
available)
fstat64(3, {st_mode=S_IFREG|0644, st_size=10, ...}) = 0
fsetxattr(4, "system.posix_acl_access", 
"\x02\x00\x00\x00\x01\x00\x06\x00\xff\xff\xff\xff\x04\x00\x04\x00\xff\xff\xff\xff 
\x00\x04\x00\xff\xff\xff\xff", 28, ) = 0
close(4)                                = 0
close(3)                                = 0
socket(0xffffff9c /* PF_??? */, 0xbfc53254 /* SOCK_??? */, 0) = -1 EACCES 
(Permission denied)
SYS_295(0xffffff9c, 0xbfc53254, 0x28900, 0, 0xb7f2fff4) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=10, ...}) = 0
close(3)                                = 0
socket(0xffffff9c /* PF_??? */, 0xbfc53254 /* SOCK_??? */, 512) = -1 EACCES 
(Permission denied)
write(2, "mv: ", 4mv: )                     = 4
write(2, "cannot remove `/boot/test\'", 26cannot remove `/boot/test') = 26
write(2, ": Not a directory", 17: Not a directory)       = 17
write(2, "\n", 1
)                       = 1
close(1)                                = 0
close(2)                                = 0
exit_group(1)                           = ?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]