commit b1142068fd26fa24285c533f10e3afcb61719759 from: Stefan Sperling date: Mon Dec 05 15:25:03 2022 UTC fix gotd startup without any -v options commit - 6970304f7fbe7bb6534af3f344013b472a1a9698 commit + b1142068fd26fa24285c533f10e3afcb61719759 blob - 751a2f6394bc8c60483c87d808d41b19dfd20c0b blob + e18e72315e0f9d45caece8de0bbff6a0b31fadf9 --- gotd/gotd.c +++ gotd/gotd.c @@ -2190,10 +2190,12 @@ main(int argc, char **argv) if (noaction) return 0; - if (proc_id == PROC_GOTD && verbosity) { - log_info("socket: %s", gotd.unix_socket_path); - log_info("user: %s", pw->pw_name); - log_info("secondary group: %s", gr->gr_name); + if (proc_id == PROC_GOTD) { + if (verbosity) { + log_info("socket: %s", gotd.unix_socket_path); + log_info("user: %s", pw->pw_name); + log_info("secondary group: %s", gr->gr_name); + } fd = unix_socket_listen(gotd.unix_socket_path, pw->pw_uid, gr->gr_gid);