From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/sudo/files: sudo-1.7.1-bug348.patch |
Date: | Fri, 24 Apr 2009 15:22:15 |
Message-Id: | E1LxNED-0005Wv-3d@stork.gentoo.org |
1 | flameeyes 09/04/24 15:22:13 |
2 | |
3 | Added: sudo-1.7.1-bug348.patch |
4 | Log: |
5 | Fix bug #266361, thanks to Todd (sudo's maintainer) for the patch. |
6 | (Portage version: 2.2_rc31/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-admin/sudo/files/sudo-1.7.1-bug348.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/sudo/files/sudo-1.7.1-bug348.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/sudo/files/sudo-1.7.1-bug348.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: sudo-1.7.1-bug348.patch |
15 | =================================================================== |
16 | Index: env.c |
17 | =================================================================== |
18 | RCS file: /home/cvs/courtesan/sudo/env.c,v |
19 | retrieving revision 1.101 |
20 | diff -u -r1.101 env.c |
21 | --- env.c 11 Mar 2009 23:01:10 -0000 1.101 |
22 | +++ env.c 24 Apr 2009 15:07:33 -0000 |
23 | @@ -257,6 +257,9 @@ |
24 | return(-1); |
25 | } |
26 | |
27 | + if (val == NULL) |
28 | + val = ""; /* glibc treats a NULL val as "" */ |
29 | + |
30 | esize = strlen(var) + 1 + strlen(val) + 1; |
31 | estring = emalloc(esize); |