GNOME Bugzilla – Bug 727996
Use UNIX permissions when available
Last modified: 2014-04-11 16:56:37 UTC
Some programs (eg vim) create a new file based on an existing file's permissions when saving. Because the fuse daemon only set's the owner's permissions, editing a file over sftp using vim makes it save with 0600 permissions, which is annoying. See the downstream bug: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/227808
Created attachment 274040 [details] [review] fuse: Set permissions from UNIX mode when available If the GFileInfo has a UNIX mode available, use that for setting permissions. This prevents programs like vim from losing permissions when saving a file.
Review of attachment 274040 [details] [review]: Looks good, thanks!
Pushed to master as 9fe664597834114e8a42dbe09c3b2395affd272b and stable as 9cadf28df7d2476a155ed79a37de73587cb65c69. Thanks!