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 309949 - Setting symlink_name file info not supported by gnome_vfs_set_file_info
Setting symlink_name file info not supported by gnome_vfs_set_file_info
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: File operations
2.15.x
Other All
: Normal enhancement
: 2.16
Assigned To: Christian Neumair
gnome-vfs maintainers
Depends on:
Blocks: 46306
 
 
Reported: 2005-07-10 12:24 UTC by Christian Neumair
Modified: 2006-07-16 09:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Proposed patch (5.36 KB, patch)
2006-07-16 06:00 UTC, Christian Neumair
reviewed Details | Review

Description Christian Neumair 2005-07-10 12:24:52 UTC
gnome_vfs_set_file_info doesn't have a GNOME_VFS_SET_FILE_INFO_SYMLINK_NAME
flags. Unfortunately, setting a symlink name isn't trivial for the file method.
Am I right that it only works through unlinking and then re-symlinking?
Comment 1 Christian Neumair 2006-07-16 06:00:58 UTC
Created attachment 68983 [details] [review]
Proposed patch

Here we go. For now, I've just implemented the file method.
Comment 2 Christian Neumair 2006-07-16 06:01:52 UTC
Updating version and component.
Comment 3 Christian Neumair 2006-07-16 06:04:41 UTC
btw. I'm not sure whether I should check for file_info->valid_fields containing symlink_name. Is this just meant to be used as an output parameter (i.e. for do_get_file_info)?
Comment 4 Christian Neumair 2006-07-16 09:58:47 UTC
A slightly modified patch was committed that doesn't check for valid_fields containing SYMLINK_NAME, and also updates the set_file_info documentation.