From 4c2b714b31cd2c6c952333852875c88af73ab54d Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Fri, 1 Mar 2019 11:08:29 +1100 Subject: [PATCH] if dir is empty do nothing --- src/extra-tools/66-envfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extra-tools/66-envfile.c b/src/extra-tools/66-envfile.c index 1aede98a..69899d04 100644 --- a/src/extra-tools/66-envfile.c +++ b/src/extra-tools/66-envfile.c @@ -191,7 +191,7 @@ int main (int argc, char const *const *argv, char const *const *envp) r = dir_get(&toparse,path,"",S_IFREG) ; if (!r && insist) strerr_diefu2sys(111,"get file from: ",path) ; - else if (!r && !insist) + else if ((!r && !insist) || !genalloc_len(stralist,&toparse)) { argv++; argc--; -- GitLab