bug-coreutils
[Top][All Lists]
Advanced

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

Bug in error when "mv" when you don't have access to source file


From: Quintin Beukes
Subject: Bug in error when "mv" when you don't have access to source file
Date: Mon, 26 Nov 2007 11:37:18 +0200

This is a copy of the sequence of commands with which to reproduce this
problem.
--------------------------------------------
address@hidden admin_scripts $ sudo mkdir /tmp/mvbug
address@hidden admin_scripts $ sudo touch /tmp/mvbug/file
address@hidden admin_scripts $ mv /tmp/mvbug/file /tmp/file1
mv: cannot move `/tmp/mvbug/file' to `/tmp/file1': Permission denied
address@hidden admin_scripts $ mv /tmp/mvbug/file .
mv: cannot remove `/tmp/mvbug/file': Not a directory
address@hidden 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 (address@hidden) (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


reply via email to

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