Date: Mon, 11 Feb 2002 10:40:16 -0800 (PST) From: Maxim Konovalov <maxim@macomnet.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/34839: syslogd fails to create additional log socket when socket already exists Message-ID: <200202111840.g1BIeGM49906@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/34839; it has been noted by GNATS.
From: Maxim Konovalov <maxim@macomnet.ru>
To: Brandon Poyner <bpoyner@thebiz.net>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/34839: syslogd fails to create additional log socket when
socket already exists
Date: Mon, 11 Feb 2002 21:39:29 +0300 (MSK)
Could you please try a patch below (obtained from OpenBSD):
Index: syslogd.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/syslogd/syslogd.c,v
retrieving revision 1.95
diff -u -r1.95 syslogd.c
--- syslogd.c 9 Jan 2002 17:36:53 -0000 1.95
+++ syslogd.c 11 Feb 2002 18:26:24 -0000
@@ -444,6 +444,8 @@
#define SUN_LEN(unp) (strlen((unp)->sun_path) + 2)
#endif
for (i = 0; i < nfunix; i++) {
+ (void)unlink(funixn[i]);
+
memset(&sunx, 0, sizeof(sunx));
sunx.sun_family = AF_UNIX;
(void)strlcpy(sunx.sun_path, funixn[i], sizeof(sunx.sun_path));
--
Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
phone: +7 (095) 796-9079, mailto:maxim@macomnet.ru
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202111840.g1BIeGM49906>
