diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-24 21:17:54 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-24 21:20:09 -0700 |
commit | ae49d8860d28d6630cb78b079067ee5611f97382 (patch) | |
tree | 77dbba2c276f9980ad76c1c55e4a4b6b4d09d4c9 /lib | |
parent | f84f2db69203d950c15dbb2f1748052f7b4a2b41 (diff) |
Added debug logging to chmod
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fuse.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -2633,8 +2633,15 @@ int fuse_fs_chmod(struct fuse_fs *fs, const char *path, mode_t mode, struct fuse_file_info *fi) { fuse_get_context()->private_data = fs->user_data; - if (fs->op.chmod) + if (fs->op.chmod) { + if (fs->debug) { + char buf[10]; + fprintf(stderr, "chmod[%s] %s %llo\n", + file_info_string(fi, buf, sizeof(buf)), + path, (unsigned long long) mode); + } return fs->op.chmod(path, mode, fi); + } else return -ENOSYS; } |