This is a copy of the sequence of commands with which to reproduce this problem. -------------------------------------------- [EMAIL PROTECTED] admin_scripts $ sudo mkdir /tmp/mvbug [EMAIL PROTECTED] admin_scripts $ sudo touch /tmp/mvbug/file [EMAIL PROTECTED] admin_scripts $ mv /tmp/mvbug/file /tmp/file1 mv: cannot move `/tmp/mvbug/file' to `/tmp/file1': Permission denied [EMAIL PROTECTED] admin_scripts $ mv /tmp/mvbug/file . mv: cannot remove `/tmp/mvbug/file': Not a directory [EMAIL PROTECTED] admin_scripts $ mv /tmp/mvbug/file ./ mv: cannot remove `/tmp/mvbug/file': Not a directory --------------------------------------------
Basically what it is, when you don't have write access or ownership of the source file, you can't move the file when your target directory is "." or "./", but instead of displaying "Permission denied" it displays "Not a directory". My version of coreutils: 6.7-r1 Distro: Gentoo 2006.1 mv --version output: mv (GNU coreutils) 6.7 /pro/version: Linux version 2.6.20-gentoo-r6-quintin ([EMAIL PROTECTED]) (gcc version 4.1.1(Gentoo 4.1.1-r3)) #5 SMP Tue Sep 18 15:17:40 SAST 2007 -- Quintin Beukes Tel: 074 103 7355 Fax: 0866 600 700 _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
