]> git.pld-linux.org Git - packages/dhcpcd.git/commitdiff
- fixes from rwhide:
authorkloczek <kloczek@pld-linux.org>
Thu, 18 Jul 2002 21:23:38 +0000 (21:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
-- ntpdrift-66136: fix patch to drift ntp confuguration file,
- noMoFakery, noNISfakery: multicast fixes.

Changed files:
    dhcpcd-noMoFakery.patch -> 1.1
    dhcpcd-noNISfakery.patch -> 1.1
    dhcpcd-ntpdrift-66136.patch -> 1.1

dhcpcd-noMoFakery.patch [new file with mode: 0644]
dhcpcd-noNISfakery.patch [new file with mode: 0644]
dhcpcd-ntpdrift-66136.patch [new file with mode: 0644]

diff --git a/dhcpcd-noMoFakery.patch b/dhcpcd-noMoFakery.patch
new file mode 100644 (file)
index 0000000..f835e2a
--- /dev/null
@@ -0,0 +1,20 @@
+--- dhcpcd-1.3.21-pl2/client.c.sopwith Tue Feb  5 14:47:35 2002
++++ dhcpcd-1.3.21-pl2/client.c Tue Feb  5 14:50:23 2002
+@@ -718,7 +718,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");
+@@ -785,7 +785,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");
diff --git a/dhcpcd-noNISfakery.patch b/dhcpcd-noNISfakery.patch
new file mode 100644 (file)
index 0000000..c28a301
--- /dev/null
@@ -0,0 +1,23 @@
+--- dhcpcd-1.3.21-pl2/client.c.sopwith Thu Jan 31 18:58:26 2002
++++ dhcpcd-1.3.21-pl2/client.c Thu Jan 31 19:01:35 2002
+@@ -764,18 +764,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],
diff --git a/dhcpcd-ntpdrift-66136.patch b/dhcpcd-ntpdrift-66136.patch
new file mode 100644 (file)
index 0000000..30de8ef
--- /dev/null
@@ -0,0 +1,11 @@
+--- dhcpcd-1.3.22-pl1/client.c.sopwith Thu Jun 20 15:15:49 2002
++++ dhcpcd-1.3.22-pl1/client.c Thu Jun 20 15:16:34 2002
+@@ -902,7 +902,7 @@
+             fprintf(f, "fudge 127.127.1.0 stratum 3\n");
+             fprintf(f, "server 127.127.1.0\n");
+           }
+-        fprintf(f, "driftfile /etc/ntp.drift\n");
++        fprintf(f, "driftfile /etc/ntp/drift\n");
+         fprintf(f, "logfile /var/log/ntp.log\n");
+         fclose(f);
+       }
This page took 0.0714939999999999 seconds and 4 git commands to generate.