Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/dhcpcd/files: dhcpcd-4.99.2-no-empty-clientid.patch
Date: Thu, 25 Sep 2008 08:34:23
Message-Id: E1KimIk-0003TG-V5@stork.gentoo.org
1 robbat2 08/09/25 08:34:18
2
3 Added: dhcpcd-4.99.2-no-empty-clientid.patch
4 Log:
5 Include the alpha 4.99.2 for 5.x fun testing. Please note the 3.x compatibility is no longer supported by the codebase as it was during 4.0 versions.
6 (Portage version: 2.2_rc9/cvs/Linux 2.6.27-rc1-10246-gca5de40 x86_64)
7
8 Revision Changes Path
9 1.1 net-misc/dhcpcd/files/dhcpcd-4.99.2-no-empty-clientid.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/files/dhcpcd-4.99.2-no-empty-clientid.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/dhcpcd/files/dhcpcd-4.99.2-no-empty-clientid.patch?rev=1.1&content-type=text/plain
13
14 Index: dhcpcd-4.99.2-no-empty-clientid.patch
15 ===================================================================
16 Restore the 3.x behavior of an empty -I '' argument.
17
18 Bug: http://bugs.marples.name/show_bug.cgi?id=116
19 Patch: forward-ported from 4.0.1 version.
20
21 Signed-off-by: Robin H. Johnson <robbat2@g.o>
22
23 diff -Nuar --exclude '*.orig' --exclude '*.rej' dhcpcd-4.99.2.orig/if-options.c dhcpcd-4.99.2/if-options.c
24 --- dhcpcd-4.99.2.orig/if-options.c 2008-09-19 06:36:40.000000000 -0700
25 +++ dhcpcd-4.99.2/if-options.c 2008-09-25 01:27:46.115364821 -0700
26 @@ -494,7 +494,7 @@
27 case 'I':
28 /* Strings have a type of 0 */;
29 ifo->clientid[1] = 0;
30 - if (arg)
31 + if (arg && *arg)
32 s = parse_string_hwaddr((char *)ifo->clientid + 1,
33 CLIENTID_MAX_LEN, arg, 1);
34 else