From 4b8d68fb030fbc2d41b03a0e84be33c9fa7e2e00 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Mon, 29 Dec 2025 11:12:19 -0600 Subject: [PATCH] func_mknod_ff.cpp --- src/func_mknod_ff.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/func_mknod_ff.cpp b/src/func_mknod_ff.cpp index f976b467..c3032010 100644 --- a/src/func_mknod_ff.cpp +++ b/src/func_mknod_ff.cpp @@ -26,26 +26,9 @@ Func2::MknodFF::operator()(const ugid_t &ugid_, { int rv; fs::path fusedirpath; - mode_t umask; fusedirpath = fusepath_.parent_path(); - umask = 0; // TODO: get actual umask - // Find first branch with the directory - const Branch *existing_branch = nullptr; - for(const auto &branch : branches_) - { - if(fs::exists(branch.path / fusedirpath)) - { - existing_branch = &branch; - break; - } - } - - if(!existing_branch) - return -ENOENT; - - // Find first branch for creation const Branch *create_branch = nullptr; for(const auto &branch : branches_) { @@ -91,4 +74,4 @@ Func2::MknodFF::operator()(const ugid_t &ugid_, { return fs::mknod_as(ugid_, fullpath, mode_, dev_); } -} \ No newline at end of file +}