From 13f04fb1373f4fb6563f5c8c8e3c2d95acd7beee Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Fri, 3 May 2024 15:02:38 +0200 Subject: [PATCH] lib BUGFIX handle all setup modules installed --- lib/np2_sr_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/np2_sr_setup.c b/lib/np2_sr_setup.c index f399e96b..65e3815f 100644 --- a/lib/np2_sr_setup.c +++ b/lib/np2_sr_setup.c @@ -176,7 +176,7 @@ np2_sr_setup(const char *owner, const char *group, mode_t perm) } /* install modules */ - if (sr_install_modules2(conn, mods, mod_count, ".", NULL, NULL, 0)) { + if (mod_count && sr_install_modules2(conn, mods, mod_count, ".", NULL, NULL, 0)) { ERRMSG("Failed to install modules."); rc = 1; goto cleanup;