]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix yp.conf creation
authorRoy Marples <roy@marples.name>
Wed, 6 Dec 2006 11:34:46 +0000 (11:34 +0000)
committerRoy Marples <roy@marples.name>
Wed, 6 Dec 2006 11:34:46 +0000 (11:34 +0000)
ChangeLog
Makefile
configure.c

index 0e6415bd1577163996107aa60f1ad2bd8133528e..8ee7ecee0af3edc70e3bf8f42103080562e8e06f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+dhcpcd-3.0.5
+Fix yp.conf creation.
+
 dhcpcd-3.0.4
 Fix netmask thanks to Marc Duponcheel.
 Send the hostname by default unless null, (none) or localhost.
index 4322d0ac0cb33d1bb0bc19f75652daf994b6f0d8..069e9ac0b6ba31e82833cd01dd50c635270bf3ba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # Should work for both GNU make and BSD mke
 
-VERSION = 3.0.4
+VERSION = 3.0.5
 
 INSTALL ?= install
 CFLAGS ?= -Wall -O2 -pedantic -std=gnu99
index 478c029db1417bd77e39b9b8ec5e29197ae33f2f..14a4132a8f8a4791cbb96983f570e47070cbe526 100644 (file)
@@ -230,10 +230,10 @@ static int make_nis (char *ifname, dhcp_t *dhcp)
        fprintf (f, "domain %s broadcast\n", dhcp->nisdomain);
     }
   else
-    sprintf(prefix, "ypserver %c", '\0');
+    snprintf (prefix, sizeof (prefix), "%s", "ypserver");
 
   for (address = dhcp->nisservers; address; address = address->next)
-    fprintf (f, "%s%s\n", prefix, inet_ntoa (address->address));
+    fprintf (f, "%s %s\n", prefix, inet_ntoa (address->address));
 
   fclose (f);