main: store negative lookups

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2019-07-22 17:29:12 +02:00
parent 1bed1d566b
commit 9e20d96bbf
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

5
main.c
View File

@ -1649,7 +1649,10 @@ ovl_lookup (fuse_req_t req, fuse_ino_t parent, const char *name)
node = do_lookup_file (lo, parent, name);
if (node == NULL)
{
fuse_reply_err (req, errno);
e.ino = 0;
e.attr_timeout = get_timeout (lo);
e.entry_timeout = get_timeout (lo);
fuse_reply_entry (req, &e);
return;
}