tst: passthrough-fuse: multibyte support

This commit is contained in:
zeho11
2022-12-15 19:14:44 +09:00
parent e550e261f0
commit 8c9b8362b4
3 changed files with 96 additions and 30 deletions

View File

@@ -52,7 +52,7 @@
#define fi_setdirp(fi, dirp) (fi_setfh(fi, dirp, fi_dirbit))
#define ptfs_impl_fullpath(n) \
char full ## n[PATH_MAX]; \
char full ## n[PATH_MAX * 4]; \
if (!concat_path(((PTFS *)fuse_get_context()->private_data), n, full ## n))\
return -ENAMETOOLONG; \
n = full ## n