aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/fuse_lowlevel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c
index 334b497..fc76b7c 100644
--- a/lib/fuse_lowlevel.c
+++ b/lib/fuse_lowlevel.c
@@ -452,7 +452,9 @@ int fuse_reply_readlink(fuse_req_t req, const char *linkname)
int fuse_reply_canonical_path(fuse_req_t req, const char *path)
{
- return send_reply_ok(req, path, strlen(path));
+ // The kernel expects a buffer containing the null terminator for this op
+ // So we add the null terminator size to strlen
+ return send_reply_ok(req, path, strlen(path) + 1);
}
int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *f)