FreeBSD Bugzilla – Attachment 182427 Details for
Bug 202192
x11-fm/thunar 1.6.11 change file permissions on SSHFS-mounted files/directories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
permission fix and respect HAVE_GIO_UNIX
thunar.patch (text/plain), 2.45 KB, created by
Ivan Rozhuk
on 2017-05-09 02:34:58 UTC
(
hide
)
Description:
permission fix and respect HAVE_GIO_UNIX
Filename:
MIME Type:
Creator:
Ivan Rozhuk
Created:
2017-05-09 02:34:58 UTC
Size:
2.45 KB
patch
obsolete
>Index: x11-fm/thunar/files/patch-thunar_thunar-file.c >=================================================================== >--- x11-fm/thunar/files/patch-thunar_thunar-file.c (nonexistent) >+++ x11-fm/thunar/files/patch-thunar_thunar-file.c (working copy) >@@ -0,0 +1,24 @@ >+--- thunar/thunar-file.c.orig 2015-05-22 13:25:36 UTC >++++ thunar/thunar-file.c >+@@ -3225,17 +3225,11 @@ thunar_file_is_chmodable (const ThunarFile *file) >+ * b) the super-user id >+ * and the file is not in the trash. >+ */ >+- if (file->info == NULL) >+- { >+- return (effective_user_id == 0 && !thunar_file_is_trashed (file)); >+- } >+- else >+- { >+- return ((effective_user_id == 0 >+- || effective_user_id == g_file_info_get_attribute_uint32 (file->info, >+- G_FILE_ATTRIBUTE_UNIX_UID)) >+- && !thunar_file_is_trashed (file)); >+- } >++ if (thunar_file_is_trashed (file)) >++ return (FALSE); >++ if (effective_user_id == 0) >++ return (TRUE); >++ return (thunar_file_is_writable (file)); >+ } >+ >Index: x11-fm/thunar/files/patch-thunar_thunar-sendto-model.c >=================================================================== >--- x11-fm/thunar/files/patch-thunar_thunar-sendto-model.c (nonexistent) >+++ x11-fm/thunar/files/patch-thunar_thunar-sendto-model.c (working copy) >@@ -0,0 +1,32 @@ >+--- thunar/thunar-sendto-model.c >++++ thunar/thunar-sendto-model.c >+@@ -121,7 +121,9 @@ g_app_info_compare (gpointer a, >+ static void >+ thunar_sendto_model_load (ThunarSendtoModel *sendto_model) >+ { >++#ifdef HAVE_GIO_UNIX >+ GDesktopAppInfo *app_info = NULL; >++#endif >+ gchar **specs; >+ gchar *path; >+ guint n; >+@@ -146,9 +148,6 @@ thunar_sendto_model_load (ThunarSendtoModel *sendto_model) >+ >+ #ifdef HAVE_GIO_UNIX >+ app_info = g_desktop_app_info_new_from_keyfile (key_file); >+-#else >+- /* FIXME try to create the app info ourselves in a platform independent way */ >+-#endif >+ >+ if (G_LIKELY (app_info != NULL)) >+ { >+@@ -165,6 +164,9 @@ thunar_sendto_model_load (ThunarSendtoModel *sendto_model) >+ if (mime_types != NULL) >+ g_object_set_data_full (G_OBJECT (app_info), "mime-types", mime_types, (GDestroyNotify) g_strfreev); >+ } >++#else >++ /* FIXME try to create the app info ourselves in a platform independent way */ >++#endif >+ >+ g_key_file_free (key_file); >+ }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 202192
:
182427
|
188531