From 88c89af88af324e511b60a831283dc6838e8cb25 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 31 Jan 2024 22:04:20 -0600 Subject: [PATCH] branch2.cpp --- src/branch2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/branch2.cpp b/src/branch2.cpp index ca37501e..cb993f76 100644 --- a/src/branch2.cpp +++ b/src/branch2.cpp @@ -30,6 +30,8 @@ Branch2::Branch2(toml::value const &v_) int const flags = O_DIRECTORY | O_PATH | O_NOATIME; fd = openat(AT_FDCWD,path.string().c_str(),flags); + if(fd < 0) + enabled = false; } Branch2::~Branch2()