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()