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 520571 - File Attributes
File Attributes
Status: RESOLVED OBSOLETE
Product: gvfs
Classification: Core
Component: sftp backend
git master
Other Linux
: Normal enhancement
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-03-05 19:10 UTC by Carlos Garcia Campos
Modified: 2018-09-21 16:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (2.75 KB, patch)
2008-03-05 19:13 UTC, Carlos Garcia Campos
committed Details | Review

Description Carlos Garcia Campos 2008-03-05 19:10:56 UTC
sftp backend should support setting file attributes like file permissions.
Comment 1 Carlos Garcia Campos 2008-03-05 19:13:54 UTC
Created attachment 106636 [details] [review]
Patch

This patch implements try_query_settable_attributes and try_set_attribute methods. Only G_FILE_ATTRIBUTE_UNIX_MODE is supported since both SSH_FILEXFER_ATTR_UIDGID and SSH_FILEXFER_ATTR_ACMODTIME require two parameters and set_sttribute receives only one of them in each case.
Comment 2 Carlos Garcia Campos 2008-03-05 19:24:34 UTC
It doesn't work with nautilus unless you have the same uid in the remote and local machine. See bug #520572
Comment 3 Alexander Larsson 2008-03-06 11:00:41 UTC
Commited this.
Would be nice to support uid/gid and ctime/mtime too though...
On unix you can do uid by passing gid == -1, maybe that works on sftp too.
Comment 4 Christian Kellner 2008-03-15 09:32:13 UTC
Setting patch status to committed so it gets nuked of the list of not yet reviewed patches. (And confirming the bug ;-)
Comment 5 Alexandre Rostovtsev 2008-04-11 22:27:40 UTC
(In reply to comment #3)
> Commited this.
> Would be nice to support uid/gid and ctime/mtime too though...

Please see my patch in bug 527339 - I think I got setting atime/mtime (and gvfs-copy --preserve) working properly on sftp.

However, I am not sure if setting uid/gid is a good thing. At the very least, 'gvfs-copy --preserve' should *not* preserve uid, IMHO. When you are copying a file to a remote system, you typically want to preserve the timestamp, but it's very unlikely that your uid on the local machine will match the uid on the server.
Comment 6 Felix Möller 2012-02-26 00:23:08 UTC
bug #629135 has a patch adding support for user and group names ...
Comment 7 GNOME Infrastructure Team 2018-09-21 16:19:26 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/41.