After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 584348 - GVFS Symbolic Links are Destroyed
GVFS Symbolic Links are Destroyed
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: sftp backend
1.2.x
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-05-31 11:40 UTC by Balázs L. Batári
Modified: 2013-04-12 23:20 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26



Description Balázs L. Batári 2009-05-31 11:40:12 UTC
Please describe the problem:
SFTP with GVFS destroys symbolic links, if a file operation is made on a symbolic link on the remote file system, the link is deleted and a simple copy of the file is made with the same name

Steps to reproduce:
1. ssh user@host
2. ln -s ../dev/lib_auth/lib_auth.php .
3. ls -lah lib_auth.php 
rwxrwxrwx 1 bayi bayi 28 máj 31 13.30 lib_auth.php -> ../dev/lib_auth/lib_auth.php
4. open in any editor (gedit, mcedit, oowriter tested all) and save the file
5. ls -lah lib_auth.php 
rwxrwxrwx 1 bayi bayi 3,2K máj 31 13.30 lib_auth.php



Actual results:
The file is not a symbolic link anymore, instead it is a simple file with the saved contents. Diff shows me that the original file isnt touched only a new copy is being made

Expected results:
Symbolic Link kept, original file overwritten with new data on save

Does this happen every time?
Yes

Other information:
Distro: Gentoo
Kernel: Linux defiant 2.6.29-gentoo-r4 #1 SMP Sun May 24 18:18:38 CEST 2009 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ AuthenticAMD GNU/Linux
GCC: gcc (Gentoo 4.3.3-r2 p1.1, pie-10.1.5) 4.3.3
Comment 1 Pacho Ramos 2010-04-26 21:47:19 UTC
Still valid with gvfs-1.4.x
Comment 2 Balázs L. Batári 2010-08-09 15:00:53 UTC
Still valid with gvfs-1.6.3
Comment 3 ptr 2013-03-06 15:14:15 UTC
Still valid with gvfs-1.12.3
Comment 4 Balázs L. Batári 2013-04-12 23:20:27 UTC
It seems its fixed in gvfs-1.16.0