diff --git a/cmd-source-file.c b/cmd-source-file.c index db6b4caa..e96af5f1 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -78,7 +78,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item) free(pattern); for (i = 0; i < (u_int)g.gl_pathc; i++) { - if (load_cfg(g.gl_pathv[i], c, item, quiet) != 0) + if (load_cfg(g.gl_pathv[i], c, item, quiet) < 0) retval = CMD_RETURN_ERROR; } if (cfg_finished) {