diff options
author | maxim <maxim@FreeBSD.org> | 2002-02-13 08:37:55 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2002-02-13 08:37:55 +0000 |
commit | 625b77d663a126cedbbec8ecce68ecacf1225fdf (patch) | |
tree | 1cc7b30ac96850d9c8fc15d646c938042b32d082 /usr.sbin/syslogd/syslogd.c | |
parent | 314e99cda2dc7967ebc3f2acd1eee6c3291bc740 (diff) | |
download | FreeBSD-src-625b77d663a126cedbbec8ecce68ecacf1225fdf.zip FreeBSD-src-625b77d663a126cedbbec8ecce68ecacf1225fdf.tar.gz |
Unlink all log sockets at startup.
PR: misc/34839
Reviewed by: ru
Approved by: ru
Obtained from: OpenBSD
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index bc651fc..3893278 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -444,6 +444,7 @@ main(argc, argv) #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)); |