408dce
--- libfuse-fuse-3.3.0/test/test_syscalls.c.orig	2018-11-06 19:57:47.000000000 +0100
408dce
+++ libfuse-fuse-3.3.0/test/test_syscalls.c	2022-02-07 17:17:47.512515240 +0100
408dce
@@ -1511,7 +1511,7 @@
408dce
 
408dce
 	errno = 0;
408dce
 	res = rename(PATH("a/b"), PATH2("a/d"));
408dce
-	if (res == 0 || errno != ENOTEMPTY) {
408dce
+	if (res == 0 || (errno != ENOTEMPTY && errno != EEXIST)) {
408dce
 		PERROR("rename");
408dce
 		goto fail;
408dce
 	}