X-Git-Url: http://git.jankratochvil.net/?p=captive.git;a=blobdiff_plain;f=src%2Fclient%2Ffuse%2Fop_utime.c;h=69a51df84b4c12d9b5fea9118fef0eb2717daa0b;hp=22b93866a553e6fae28b016def03348b1c041619;hb=a369aa0578f4a98f7b18a18ecc11d266b0f7fe71;hpb=15736d2bd542588c873a156a3d7eefe5efa729e6 diff --git a/src/client/fuse/op_utime.c b/src/client/fuse/op_utime.c index 22b9386..69a51df 100644 --- a/src/client/fuse/op_utime.c +++ b/src/client/fuse/op_utime.c @@ -32,6 +32,7 @@ #include "main.h" #include "gnomevfsresult.h" #include "capfuse_captive_file_info_object.h" +#include "utf8.h" int op_utime(const char *path,struct utimbuf *buf) @@ -45,6 +46,8 @@ CaptiveFileInfoObject *captive_file_info_object; g_return_val_if_fail(buf->actime!=0,-EINVAL); g_return_val_if_fail(buf->modtime!=0,-EINVAL); + path=CAPFUSE_FILENAME_TO_UTF8_ALLOCA(path); + if (GNOME_VFS_OK!=(errvfsresult=captive_file_new_open(&captive_file_object,capfuse_captive_vfs_object,path, GNOME_VFS_OPEN_WRITE|GNOME_VFS_OPEN_RANDOM))) return -gnomevfsresult_to_errno(errvfsresult);