commit - 30f4f45ab170674753968ff93bec290413aa0b04
commit + 2fae11eba5d55ee098e25416cd2917c9726e3457
blob - 86f406ddbb1a75923554e0c2a2f17011efc328e1
blob + b02902fb5ed9b5f7f6b37038f36f4a86e4e51010
--- gotd/gotd.c
+++ gotd/gotd.c
}
}
- if (proc_id != GOTD_PROC_LISTEN && proc_id != GOTD_PROC_AUTH &&
- proc_id != GOTD_PROC_REPO_WRITE &&
- proc_id != GOTD_PROC_REPO_READ &&
- proc_id != GOTD_PROC_SESSION_WRITE && proc_id != GOTD_PROC_NOTIFY &&
- proc_id != GOTD_PROC_SESSION_READ) {
+ if (proc_id == GOTD_PROC_GOTD) {
if (gotd_parse_config(confpath, proc_id, secrets, &gotd) != 0)
return 1;
return 0;
}
- if (proc_id == GOTD_PROC_GOTD) {
- gotd_socket = unix_socket_listen(gotd.unix_socket_path,
- pw->pw_uid, pw->pw_gid);
- if (gotd_socket == -1) {
- fatal("cannot listen on unix socket %s",
- gotd.unix_socket_path);
- }
+ gotd_socket = unix_socket_listen(gotd.unix_socket_path,
+ pw->pw_uid, pw->pw_gid);
+ if (gotd_socket == -1) {
+ fatal("cannot listen on unix socket %s",
+ gotd.unix_socket_path);
}
if (gethostname(hostname, sizeof(hostname)) == -1)