Merge f3420069bbb5c528d05104d752f46d0d39ae513e on remote branch
Change-Id: I25336f849e2a267c4859a77bd283cd7b2afd8f76
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_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)