[Bug 37039] File copied from a symbolic link and pasted, the file gets deleted

Vivek Kapoor subs.vk at exain.com
Tue Mar 28 17:50:13 UTC 2006


Public bug reported:
https://launchpad.net/malone/bugs/37039

Affects: nautilus (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed

Description:
If there is a folder "test1" and a file "file1.txt" resides in it. A
symbolic link of that folder, "test2" is made. When both windows are
opened by nautilus, and the file copied from the symbolic link "test2"
is pasted into the actual "test1" directory, it asks for confirmation on
whether to replace the file and then DELETES the file. File is gone,
lost forever!

Similar command if executed at the console gives the following, which is
CORRECT

vivek at drake:/tmp$ ls
vivek at drake:/tmp$ mkdir test1
vivek at drake:/tmp$ cd test1/
vivek at drake:/tmp/test1$ ls
vivek at drake:/tmp/test1$ echo "test data" > file1.txt
vivek at drake:/tmp/test1$ ls -l
total 4
-rw-r--r-- 1 vivek vivek 10 2006-03-28 23:15 file1.txt
vivek at drake:/tmp/test1$ cd ..
vivek at drake:/tmp$ ln -s test1 test2
vivek at drake:/tmp$ ls -ld test*
drwxr-xr-x 2 vivek vivek 4096 2006-03-28 23:15 test1
lrwxrwxrwx 1 vivek vivek    5 2006-03-28 23:15 test2 -> test1
vivek at drake:/tmp$ cd test2
vivek at drake:/tmp/test2$ ls
file1.txt
vivek at drake:/tmp/test2$ cp file1.txt ../test1/file1.txt
cp: `file1.txt' and `../test1/file1.txt' are the same file
vivek at drake:/tmp/test2$


HOWEVER, if the file is copied using Nautilus from test2 symbolic link and pasted into test1, it gets deleted.




More information about the desktop-bugs mailing list