+++ /dev/null
---- dhcpcd-1.3.22-pl1/configure.in~ Thu Jul 18 23:17:29 2002
-+++ dhcpcd-1.3.22-pl1/configure.in Thu Jul 18 23:17:29 2002
-@@ -30,26 +30,6 @@
- AC_CANONICAL_HOST
-
- dnl
--dnl Determining the compilation flags
--dnl
--
--case $host_os in
-- linux*) CFLAGS="$CFLAGS -O2 -fomit-frame-pointer -Wall $ADDS"
-- ;;
--esac
--
--case $host_cpu in
-- i486) CFLAGS="$CFLAGS -march=i486"
-- ;;
-- i586) CFLAGS="$CFLAGS -march=i586"
-- ;;
-- i686) CFLAGS="$CFLAGS -march=i686"
-- ;;
--esac
--
--LDFLAGS="-s -O2"
--
--dnl
- dnl Checks for programs.
- dnl
- AC_PROG_CC
+++ /dev/null
---- ./dhcpconfig.c.org2 Mon Jan 6 12:31:46 2003
-+++ ./dhcpconfig.c Mon Jan 6 12:36:42 2003
-@@ -334,7 +334,7 @@
- ((unsigned char *)&DhcpIface.ciaddr)[1],
- ((unsigned char *)&DhcpIface.ciaddr)[2],
- ((unsigned char *)&DhcpIface.ciaddr)[3]);
-- if ( ReplResolvConf )
-+ if ( ReplResolvConf && DhcpOptions.len[dns] )
- {
- resolv_renamed=1+rename(RESOLV_CONF,""RESOLV_CONF".sv");
- f=fopen(RESOLV_CONF,"w");
-@@ -406,7 +406,7 @@
- else
- syslog(LOG_ERR,"dhcpConfig: fopen: %m\n");
- }
-- if ( ReplNTPConf )
-+ if ( ReplNTPConf && DhcpOptions.len[ntpServers] >= 4 )
- {
- ntp_renamed=1+rename(NTP_CONF,""NTP_CONF".sv");
- f=fopen(NTP_CONF,"w");
+++ /dev/null
---- ./dhcpconfig.c.org3 Mon Jan 6 12:36:42 2003
-+++ ./dhcpconfig.c Mon Jan 6 12:39:21 2003
-@@ -381,18 +381,14 @@
- * because the resolver won't notice the change in resolv.conf */
- (void)res_init();
- }
-- if ( ReplNISConf )
-+ if ( ReplNISConf && DhcpOptions.len[nisDomainName] )
- {
- yp_renamed=1+rename(NIS_CONF,""NIS_CONF".sv");
- f=fopen(NIS_CONF,"w");
- if ( f )
- {
- int i;
-- char *domain=NULL;
-- if ( DhcpOptions.len[nisDomainName] )
-- domain=(char *)DhcpOptions.val[nisDomainName];
-- else
-- domain=(char *)DhcpOptions.val[domainName];
-+ char *domain=(char *)DhcpOptions.val[nisDomainName]; setdomainname(domain, strlen(domain)+1);
- for (i=0;i<DhcpOptions.len[nisServers];i+=4)
- fprintf(f,"domain %s server %u.%u.%u.%u\n",(domain?domain:"localdomain"),
- ((unsigned char *)DhcpOptions.val[nisServers])[i],
+++ /dev/null
---- client.c.orig 2005-07-10 10:16:43.000000000 +0100
-+++ client.c 2005-07-10 10:22:31.000000000 +0100
-@@ -129,6 +129,8 @@
- default:
- if ( p[1] )
- {
-+ if (p + 2 + p[1] >= end)
-+ goto swend; /* Corrupt packet */
- if ( DhcpOptions.len[*p] == p[1] )
- memcpy(DhcpOptions.val[*p],p+2,p[1]);
- else