From f2b97eeea5ec55d0639b7a27b714e5b393af9c11 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 28 Jun 2018 16:23:00 +0200 Subject: [PATCH] containers: do not rename not existing files Signed-off-by: Giuseppe Scrivano --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 3ac7fce..9c01ab8 100644 --- a/main.c +++ b/main.c @@ -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; } }