Hello, I just encountered a strange, and probably wrong, error message from mv(1). Hopefully this is the place to report it.
The error is this: _[/home/scott/bin]_([EMAIL PROTECTED])_ $ mv /tmp/radetail.pl . mv: cannot chdir from .' to /tmp/radetail.pl': Not a directory But actually, it is a permissions problem unlinking /tmp/radetail.pl. I've attached an strace. The following are details of the system, directories, and file: _[/home/scott/bin]_([EMAIL PROTECTED])_ $ whoami scott _[/home/scott/bin]_([EMAIL PROTECTED])_ $ ll /tmp/radetail.pl -rw-r--r-- 1 root root 7148 Apr 3 11:20 /tmp/radetail.pl _[/home/scott/bin]_([EMAIL PROTECTED])_ $ ll -d /tmp drwxrwxrwt 8 root root 8192 Apr 3 11:39 /tmp _[/home/scott/bin]_([EMAIL PROTECTED])_ $ ll -d . drwxr-xr-x 2 scott scott 4096 Apr 3 11:41 . _[/home/scott/bin]_([EMAIL PROTECTED])_ $ ll radetail.pl ls: radetail.pl: No such file or directory _[/home/scott/bin]_([EMAIL PROTECTED])_ $ mv /tmp/radetail.pl . mv: cannot chdir from .' to /tmp/radetail.pl': Not a directory _[/home/scott/bin]_([EMAIL PROTECTED])_ $ ll radetail.pl -rw-r--r-- 1 scott scott 7148 Apr 3 11:20 radetail.pl _[/home/scott/bin]_([EMAIL PROTECTED])_ $ uname -a Linux ponzo.sonic.net 2.4.19 #1 SMP Wed Aug 14 17:59:49 PDT 2002 i686 i686 i386 GNU/Linux _[/home/scott/bin]_([EMAIL PROTECTED])_ $ mount /dev/sdb1 on / type ext3 (rw) none on /proc type proc (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) none on /dev/shm type tmpfs (rw) /dev/sdb2 on /home type ext2 (rw) Please let me know if you need more information, or if I should do a bug report with Redhat. Thanks! -Scott
execve("/bin/mv", ["mv", "/tmp/radetail.pl", "."], [/* 44 vars */]) = 0 uname({sys="Linux", node="ponzo.sonic.net", ...}) = 0 brk(0) = 0x8055908 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=71648, ...}) = 0 old_mmap(NULL, 71648, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40013000 close(3) = 0 open("/lib/libacl.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\30\24\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=301103, ...}) = 0 old_mmap(NULL, 20916, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40025000 mprotect(0x4002a000, 436, PROT_NONE) = 0 old_mmap(0x4002a000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5000) = 0x4002a000 close(3) = 0 open("/lib/i686/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220Y\1"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1395734, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4002b000 old_mmap(0x42000000, 1239844, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x42000000 mprotect(0x42126000, 35620, PROT_NONE) = 0 old_mmap(0x42126000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x126000) = 0x42126000 old_mmap(0x4212b000, 15140, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4212b000 close(3) = 0 open("/lib/libattr.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\n\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0644, st_size=31255, ...}) = 0 old_mmap(NULL, 9952, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002c000 mprotect(0x4002e000, 1760, PROT_NONE) = 0 old_mmap(0x4002e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x4002e000 close(3) = 0 munmap(0x40013000, 71648) = 0 brk(0) = 0x8055908 brk(0x8056908) = 0x8056908 brk(0x8057000) = 0x8057000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1830272, ...}) = 0 mmap2(NULL, 1830272, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4002f000 close(3) = 0 geteuid32() = 504 ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0 stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/tmp/radetail.pl", {st_mode=S_IFREG|0644, st_size=7148, ...}) = 0 lstat64("./radetail.pl", 0xbffff500) = -1 ENOENT (No such file or directory) rename("/tmp/radetail.pl", "./radetail.pl") = -1 EXDEV (Invalid cross-device link) unlink("./radetail.pl") = -1 ENOENT (No such file or directory) open("/tmp/radetail.pl", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=7148, ...}) = 0 open("./radetail.pl", O_WRONLY|O_CREAT|O_LARGEFILE, 0100644) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=7148, ...}) = 0 read(3, "#\n# RS::radetail\n#\n# RADIUS de"..., 4096) = 4096 write(4, "#\n# RS::radetail\n#\n# RADIUS de"..., 4096) = 4096 read(3, "= getdate($self->date);\n\t\n\tif( $"..., 4096) = 3052 write(4, "= getdate($self->date);\n\t\n\tif( $"..., 3052) = 3052 read(3, "", 4096) = 0 close(4) = 0 close(3) = 0 utime("./radetail.pl", [2003/04/03-11:34:09, 2003/04/03-11:20:07]) = 0 chown32(0x80561e0, 0, 0) = -1 EPERM (Operation not permitted) getxattr("/tmp/radetail.pl", "system.posix_acl_access", 0xbffff250, 132) = -1 ENOSYS (Function not implemented) setxattr("./radetail.pl", "system.posix_acl_access", 0x80566f0, 28, ) = -1 ENOSYS (Function not implemented) chmod("./radetail.pl", 0100644) = 0 brk(0x8058000) = 0x8058000 brk(0x8059000) = 0x8059000 brk(0x805a000) = 0x805a000 lstat64("/tmp/radetail.pl", {st_mode=S_IFREG|0644, st_size=7148, ...}) = 0 access("/tmp/radetail.pl", W_OK) = -1 EACCES (Permission denied) unlink("/tmp/radetail.pl") = -1 EPERM (Operation not permitted) open(".", O_RDONLY|O_LARGEFILE|O_DIRECTORY) = 3 lstat64("/tmp/radetail.pl", {st_mode=S_IFREG|0644, st_size=7148, ...}) = 0 chdir("/tmp/radetail.pl") = -1 ENOTDIR (Not a directory) open("/usr/share/locale/locale.alias", O_RDONLY) = 4 fstat64(4, {st_mode=S_IFREG|0644, st_size=2601, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40013000 read(4, "# Locale name alias data base.\n#"..., 4096) = 2601 brk(0x805b000) = 0x805b000 read(4, "", 4096) = 0 close(4) = 0 munmap(0x40013000, 4096) = 0 open("/usr/share/locale/en_US.iso885915/LC_MESSAGES/fileutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US/LC_MESSAGES/fileutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.iso885915/LC_MESSAGES/fileutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/fileutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "mv: ", 4) = 4 write(2, "cannot chdir from `.\' to `/tmp/r"..., 43) = 43 open("/usr/share/locale/en_US.iso885915/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.iso885915/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, ": Not a directory", 17) = 17 write(2, "\n", 1) = 1 _exit(1) = ?
_______________________________________________ Bug-fileutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-fileutils