From 17b471ba8b7913d0d0ed1887be5ad821ac86b208 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 4 Feb 2024 22:12:20 -0600 Subject: [PATCH] func_create_ff.cpp --- src/func_create_ff.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/func_create_ff.cpp b/src/func_create_ff.cpp index 42f6aba4..52f9075b 100644 --- a/src/func_create_ff.cpp +++ b/src/func_create_ff.cpp @@ -56,6 +56,11 @@ namespace l mode_ &= ~umask_; rv = fs::open(fullpath,ffi_->flags,mode_); + if((rv == -1) && (errno == ENOENT)) + { + branches_->clonepath(branch.path,fusepath_); + rv = fs::open(fullpath,ffi_->flags,mode_); + } if((rv == -1) && (errno == EROFS)) { branch.mode = Branch2::Mode::RO;