Index: cron.c
===================================================================
RCS file: /cvs/src/usr.sbin/cron/cron.c,v
retrieving revision 1.77
diff -u -p -u -r1.77 cron.c
--- cron.c 23 Oct 2017 15:15:22 -0000 1.77
+++ cron.c 20 Oct 2018 23:27:46 -0000
@@ -462,7 +462,7 @@ open_socket(void)
syslog(LOG_ERR, "(CRON) DEATH (can't bind socket)");
exit(EXIT_FAILURE);
}
- if (listen(sock, SOMAXCONN)) {
+ if (listen(sock, SOMAXCONN) != 0) {
warn("listen");
syslog(LOG_ERR, "(CRON) DEATH (can't listen on socket)");
exit(EXIT_FAILURE);
*
*
I'm guessing the if block will never hit since listen returns either 0
or -1.
- cron.c patch Edgar Pettijohn III
- Re: cron.c patch Philip Guenther
- Re: cron.c patch Edgar Pettijohn III
- Re: cron.c patch Philip Guenther
