[dhcp-agent-devel] dhcp-agent-0.40 errata update
Status: Alpha
Brought to you by:
actmodern
|
From: Thamer Al-H. <tm...@wh...> - 2003-07-08 17:28:41
|
dhcp-agent-0.40 errata
---------------------
The sysconf dns configuration has a bug in it. The
/etc/resolv.conf is not truncated when written to.
This will be fixed in the next release.
Here's a patch to dhcp-agent-0.40
cd conf/dhcp-client
patch < /path/to/patch file
Index: default.sysconf
===================================================================
RCS file: /cvsroot/dhcp-agent/dhcp-agent/conf/dhcp-client/default.sysconf,v
retrieving revision 1.1
diff -C3 -r1.1 default.sysconf
*** default.sysconf 5 Jul 2003 19:30:51 -0000 1.1
--- default.sysconf 8 Jul 2003 17:23:43 -0000
***************
*** 69,75 ****
(lambda ()
(if (do-configure)
! (let ((resolv-conf-file-port (open "/etc/resolv.conf" O_WRONLY 0644)))
(client-info-message "configuring resolver")
(map-in-order
(lambda (dns-server)
--- 69,75 ----
(lambda ()
(if (do-configure)
! (let ((resolv-conf-file-port (open "/etc/resolv.conf" (logior O_WRONLY O_TRUNC) 0644)))
(client-info-message "configuring resolver")
(map-in-order
(lambda (dns-server)
--
Thamer Al-Harbash
|