Index: Makefile =================================================================== --- Makefile (revision 455531) +++ Makefile (working copy) @@ -34,7 +34,7 @@ USE_XORG= ice sm x11 INSTALL_TARGET= install-strip -OPTIONS_DEFINE= NLS NOTIFY +OPTIONS_DEFINE= NLS NOTIFY SSHFSFIX OPTIONS_GROUP= PLUGINS OPTIONS_GROUP_PLUGINS= PLUG_APR PLUG_SBR PLUG_TPA PLUG_UCA PLUG_WALL OPTIONS_DEFAULT= NOTIFY PLUG_APR PLUG_SBR PLUG_UCA PLUG_TPA PLUG_WALL @@ -46,20 +46,22 @@ PLUG_TPA_DESC= Trash Panel Applet plugin PLUG_UCA_DESC= User Customizable Actions plugin PLUG_WALL_DESC= Wallpaper plugin +SSHFSFIX_DESC= Fix changing file permissions on sshfs -NLS_USES= gettext-runtime -NLS_CONFIGURE_ENABLE= nls -NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify +NLS_USES= gettext-runtime +NLS_CONFIGURE_ENABLE= nls +NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify NOTIFY_CONFIGURE_ENABLE= notifications -PLUG_APR_LIB_DEPENDS= libexif.so:graphics/libexif +PLUG_APR_LIB_DEPENDS= libexif.so:graphics/libexif PLUG_APR_CONFIGURE_ENABLE= apr-plugin exif -PLUG_SBR_LIB_DEPENDS= libpcre.so:devel/pcre +PLUG_SBR_LIB_DEPENDS= libpcre.so:devel/pcre PLUG_SBR_CONFIGURE_ENABLE= sbr-plugin pcre -PLUG_TPA_USE= gnome=gvfs xfce=panel +PLUG_TPA_USE= gnome=gvfs xfce=panel PLUG_TPA_CONFIGURE_ENABLE= tpa-plugin PLUG_UCA_CONFIGURE_ENABLE= uca-plugin PLUG_WALL_CONFIGURE_ENABLE= wallpaper-plugin -OPTIONS_SUB= yes +SSHFSFIX_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-sshfsfix +OPTIONS_SUB= yes CONFIGURE_ARGS+=--enable-gio-unix \ --disable-gudev \ Index: files/extra-patch-sshfsfix =================================================================== --- files/extra-patch-sshfsfix (nonexistent) +++ files/extra-patch-sshfsfix (working copy) @@ -0,0 +1,42 @@ +--- thunar/thunar-file.c.orig 2017-11-25 16:54:56 UTC ++++ thunar/thunar-file.c +@@ -50,6 +50,10 @@ + #include + #endif + ++/* required by statfs(2) */ ++#include ++#include ++ + #include + #include + +@@ -3222,7 +3226,28 @@ thunar_file_get_item_count (const ThunarFile *file) + gboolean + thunar_file_is_chmodable (const ThunarFile *file) + { ++ char *path; ++ struct statfs sfs; ++ + _thunar_return_val_if_fail (THUNAR_IS_FILE (file), FALSE); ++ ++ /* ++ * sshfs user on remote FS can be different from the local one, and there is ++ * no easy way to discover it's UID, so create a special case always returning ++ * true for such an FS ++ */ ++ path = g_file_get_path(file->gfile); ++ ++ if (path != NULL) ++ { ++ if (statfs(*path, &sfs) == 0) ++ { ++ if (strncmp(sfs.f_fstypename, "fusefs.sshfs", 12) == 0) ++ { ++ return !thunar_file_is_trashed (file); ++ } ++ } ++ } + + /* we can only change the mode if we the euid is + * a) equal to the file owner id Property changes on: files/extra-patch-sshfsfix ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-configure =================================================================== --- files/patch-configure (revision 455531) +++ files/patch-configure (working copy) @@ -1,6 +1,6 @@ ---- configure.orig 2017-06-30 22:28:12 UTC +--- configure.orig 2017-11-25 18:37:32 UTC +++ configure -@@ -14452,7 +14452,7 @@ $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h +@@ -14454,7 +14454,7 @@ $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h fi fi