Browse Source

func_create_ff.cpp

toml4
Antonio SJ Musumeci 9 months ago
parent
commit
17b471ba8b
  1. 5
      src/func_create_ff.cpp

5
src/func_create_ff.cpp

@ -56,6 +56,11 @@ namespace l
mode_ &= ~umask_; mode_ &= ~umask_;
rv = fs::open(fullpath,ffi_->flags,mode_); 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)) if((rv == -1) && (errno == EROFS))
{ {
branch.mode = Branch2::Mode::RO; branch.mode = Branch2::Mode::RO;

Loading…
Cancel
Save