*BSD News Article 29647


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!sunic!trane.uninett.no!eunet.no!EU.net!sun4nl!oli1!paulz
From: paulz@olivetti.nl (Paul van der Zwan)
Subject: Little bug in timed.c (FreeBSD 1.1 GAMMA)
Message-ID: <1994Apr24.124646.2556@olivetti.nl>
Organization: Olivetti Nederland B.V.
Date: Sun, 24 Apr 1994 12:46:46 GMT
Lines: 22

I think I've found a little bug in timed.c, I got the following message:
timed[33]: bind: Can't assign requested address
This happened only when timed was started from /etc/rc, when I started it
manually it ran fine.
The following patch fixed it for me:
$ diff -c timed.c.BAK timed.c
*** timed.c.BAK Sun Apr 24 14:34:26 1994
--- timed.c     Sun Apr 24 14:38:04 1994
***************
*** 131,136 ****
--- 131,137 ----
        trace = OFF;
        nflag = OFF;
        iflag = OFF;
+       bzero((void *)&server,sizeof(server));
        openlog("timed", LOG_CONS|LOG_PID, LOG_DAEMON);
  
        if (getuid() != 0) {

-- 
Paul van der Zwan                     paulz@olivetti.nl
Olivetti Nederland B.V.               paulzn@olivetti.nl (NeXT-mail)