1
1
mirror of https://github.com/tstack/lnav.git synced 2024-10-26 21:19:54 +03:00

[config] remove GLOB_NOCHECK when looking for git dirs

Fixes #1109
This commit is contained in:
Tim Stack 2023-06-17 13:13:39 -07:00
parent 82b10e2b23
commit 026031dcd3

View File

@ -352,7 +352,7 @@ update_installs_from_git()
auto git_formats = lnav::paths::dotlnav() / "formats/*/.git";
bool found = false, retval = true;
if (glob(git_formats.c_str(), GLOB_NOCHECK, nullptr, gl.inout()) == 0) {
if (glob(git_formats.c_str(), 0, nullptr, gl.inout()) == 0) {
for (int lpc = 0; lpc < (int) gl->gl_pathc; lpc++) {
auto git_dir
= ghc::filesystem::path(gl->gl_pathv[lpc]).parent_path();