mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-12 08:49:34 -04:00
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 <gscrivan@redhat.com>
This commit is contained in:
parent
b29a8f1587
commit
efcfb045b4
2
main.c
2
main.c
@ -2021,6 +2021,8 @@ create_missing_whiteouts (struct ovl_data *lo, struct ovl_node *node, const char
|
|||||||
continue;
|
continue;
|
||||||
if (strcmp (dent->d_name, "..") == 0)
|
if (strcmp (dent->d_name, "..") == 0)
|
||||||
continue;
|
continue;
|
||||||
|
if (has_prefix (dent->d_name, ".wh."))
|
||||||
|
continue;
|
||||||
|
|
||||||
node_set_name (&key, (char *) dent->d_name);
|
node_set_name (&key, (char *) dent->d_name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user