From 3f060f45128a30696696fb3c71bbeef526ac0bb8 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 20 Mar 2022 12:09:22 -0400 Subject: [PATCH] Change ENOENT to ESTALE for looking up paths to handle rename race conditions As done in https://github.com/libfuse/libfuse/pull/636 --- libfuse/lib/fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfuse/lib/fuse.c b/libfuse/lib/fuse.c index d2f7c1fa..f800d944 100644 --- a/libfuse/lib/fuse.c +++ b/libfuse/lib/fuse.c @@ -921,7 +921,7 @@ try_get_path(struct fuse *f, for(node = get_node(f,nodeid); node->nodeid != FUSE_ROOT_ID; node = node->parent) { - err = -ENOENT; + err = -ESTALE; if(node->name == NULL || node->parent == NULL) goto out_unlock;