GNOME Bugzilla – Bug 349086
gnome_vfs_xfer_uri does not resolve symlinks
Last modified: 2018-08-17 13:52:44 UTC
gnome_vfs_xfer_uri doesn't seem to resolve symlinks as source uri. It still copies the symlink not the linked file, even with GNOME_VFS_XFER_FOLLOW_LINKS and GNOME_VFS_XFER_FOLLOW_LINKS_RECURSIVE as options. How to reproduce: 1. Take a file (I call it test-image.jpg) and put it into a directory. 2. Create a symlink to it (I call it test-link.jpg) into the same directory. 3. Use the attached test utility to copy the symlink to another directory: ./vfs-xfer-test test-link.jpg ../test-link.jpg 4. stat ../test-link.jpg It still shows a (possibly dead) symlink not the linked image.
Created attachment 69829 [details] test utility A test utility to copy a file using gnome_vfs_xfer_uri.
Thanks for your bug report! Maybe we should use _gnome_vfs_uri_resolve_all_symlinks_uri() for symlinks in the copy_foo helpers if files are symlinks and the respective options are specified.
Any progress on this? EOG's bug #343061 depends on this. Thank you.
gnome-vfs got deprecated in 2008. gnome-vfs is not under active development anymore and had its last code changes in 2011. Its codebase has been archived: https://gitlab.gnome.org/Archive/gnome-vfs/commits/master gio (in glib) and gvfs are its successors. See https://developer.gnome.org/gio/stable/ch33.html and https://people.gnome.org/~gicmo/gio-migration-guide/ for porting info. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of glib/gio/gvfs. Thanks!