bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] unsetenv: fix OpenBSD bug


From: Eric Blake
Subject: Re: [PATCH] unsetenv: fix OpenBSD bug
Date: Wed, 08 Sep 2010 13:56:05 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

On 09/08/2010 01:54 PM, Eric Blake wrote:
Minor or not, the fix was easy.  In moving from 3.8 to 4.7, the
OpenBSD folks have fixed some, but not all, of the bugs that they have
in unsetenv.

@@ -89,6 +90,7 @@ int unsetenv();
         entry[0] = 'a';
         unsetenv ("a");
         if (getenv ("a")) return 3;
+       if (!getenv ("")) return 4;

Oops - that better be unsetenv, not getenv. I'm retesting now, but don't suspect much will change, as I've already verified that marking gl_cv_func_unsetenv_works=no is sufficient to pass test-unsetenv on OpenBSD.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]