1 --- ./dhcpconfig.c.org2 Mon Jan 6 12:31:46 2003
2 +++ ./dhcpconfig.c Mon Jan 6 12:36:42 2003
4 ((unsigned char *)&DhcpIface.ciaddr)[1],
5 ((unsigned char *)&DhcpIface.ciaddr)[2],
6 ((unsigned char *)&DhcpIface.ciaddr)[3]);
7 - if ( ReplResolvConf )
8 + if ( ReplResolvConf && DhcpOptions.len[dns] )
10 resolv_renamed=1+rename(RESOLV_CONF,""RESOLV_CONF".sv");
11 f=fopen(RESOLV_CONF,"w");
14 syslog(LOG_ERR,"dhcpConfig: fopen: %m\n");
17 + if ( ReplNTPConf && DhcpOptions.len[ntpServers] >= 4 )
19 ntp_renamed=1+rename(NTP_CONF,""NTP_CONF".sv");
20 f=fopen(NTP_CONF,"w");