Lines 334-339
Link Here
|
334 |
((unsigned char *)&DhcpIface.ciaddr)[1], |
334 |
((unsigned char *)&DhcpIface.ciaddr)[1], |
335 |
((unsigned char *)&DhcpIface.ciaddr)[2], |
335 |
((unsigned char *)&DhcpIface.ciaddr)[2], |
336 |
((unsigned char *)&DhcpIface.ciaddr)[3]); |
336 |
((unsigned char *)&DhcpIface.ciaddr)[3]); |
|
|
337 |
|
338 |
/* In the case where machine dies for some reason, resolv.conf.sv would |
339 |
* not have been restored to original glory |
340 |
*/ |
341 |
if ( 1+rename(""RESOLV_CONF".sv",RESOLV_CONF) ) { |
342 |
if ( DebugFlag ) syslog (LOG_DEBUG, "Restored resolv.conf.sv from improper shutdown"); |
343 |
} else { |
344 |
if ( DebugFlag ) syslog (LOG_DEBUG, "No resolv.conf.sv to restore"); |
345 |
} |
346 |
|
337 |
if ( ReplResolvConf ) |
347 |
if ( ReplResolvConf ) |
338 |
{ |
348 |
{ |
339 |
resolv_renamed=1+rename(RESOLV_CONF,""RESOLV_CONF".sv"); |
349 |
resolv_renamed=1+rename(RESOLV_CONF,""RESOLV_CONF".sv"); |