Workaround FUSE missing the generally broken Linux kernel charset support.
[captive.git] / src / client / fuse / op_chmod.c
index 3813a67..80bac6e 100644 (file)
@@ -30,6 +30,7 @@
 #include "op_chmod.h"  /* self */
 #include "main.h"
 #include "gnomevfsresult.h"
+#include "utf8.h"
 
 
 int op_chmod(const char *path,mode_t mode)
@@ -45,6 +46,8 @@ CaptiveFileInfoObject *captive_file_info_object;
                        && !S_ISDIR(mode))
                return -EPERM;
 
+  path=CAPFUSE_FILENAME_TO_UTF8_ALLOCA(path);
+
        /* Do not: GNOME_VFS_OPEN_WRITE
         * as we would get EPERM for setting back: chmod u+w
         */