From efcfb045b41ee3ba9b80e6eb10d5846b3c771535 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 8 Jan 2020 13:23:14 +0100 Subject: [PATCH] main: skip whiteouts file when creating missing ones do not attempt to create a whiteout if the file itself is already a whiteout. Signed-off-by: Giuseppe Scrivano --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index c7f3d37..6fafd73 100644 --- a/main.c +++ b/main.c @@ -2021,6 +2021,8 @@ create_missing_whiteouts (struct ovl_data *lo, struct ovl_node *node, const char continue; if (strcmp (dent->d_name, "..") == 0) continue; + if (has_prefix (dent->d_name, ".wh.")) + continue; node_set_name (&key, (char *) dent->d_name);