containers: do not rename not existing files

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2018-06-28 16:23:00 +02:00
parent 33788697ad
commit f2b97eeea5
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

2
main.c
View File

@ -2503,7 +2503,7 @@ lo_rename (fuse_req_t req, fuse_ino_t parent, const char *name,
rm = NULL;
}
if (rm && hide_node (lo, rm) < 0)
if (rm && !rm->not_exists && hide_node (lo, rm) < 0)
goto error;
}
}