static int volicon_chmod(const char *path, mode_t mode) { ERROR_IF_MAGIC_FILE(path, EACCES); return fuse_fs_chmod(volicon_get()->next, path, mode); }
static int subdir_chmod(const char *path, mode_t mode) { struct subdir *d = subdir_get(); char *newpath; int err = subdir_addpath(d, path, &newpath); if (!err) { err = fuse_fs_chmod(d->next, newpath, mode); free(newpath); } return err; }
static int iconv_chmod(const char *path, mode_t mode) { struct iconv *ic = iconv_get(); char *newpath; int err = iconv_convpath(ic, path, &newpath, 0); if (!err) { err = fuse_fs_chmod(ic->next, newpath, mode); free(newpath); } return err; }