commit - f4e8c21cb2dc6a468bae32a4dcf3a9e18f269527
commit + 809a54db7c7cec54dcacb53f62eedecc18a833da
blob - 070e37a9d1342993266222f1483916a70450a206
blob + 496a69548f10498a0a5ac85226976ec04339b121
--- gotd/gotd.c
+++ gotd/gotd.c
if (parse_config(confpath, proc_id, &gotd) != 0)
return 1;
-
- if (proc_id == PROC_GOTD &&
- (gotd.nrepos == 0 || TAILQ_EMPTY(&gotd.repos)))
- fatalx("no repository defined in configuration file");
pw = getpwnam(gotd.user_name);
if (pw == NULL)
blob - 9be73f985cd4b495f70ba089cee603ee8afc861d
blob + 8a904e018947db197de77329a4c68cc09742e7f2
--- gotd/parse.y
+++ gotd/parse.y
}
}
+ if (proc_id == PROC_GOTD && TAILQ_EMPTY(&gotd->repos)) {
+ log_warnx("no repository defined in configuration file");
+ return (-1);
+ }
+
return (0);
}