This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: tst-setlocale3 failure when backported to glibc-2.19
- From: Allan McRae <allan at archlinux dot org>
- To: Florian Weimer <fweimer at redhat dot com>, Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Thu, 28 Aug 2014 22:36:32 +1000
- Subject: Re: tst-setlocale3 failure when backported to glibc-2.19
- Authentication-results: sourceware.org; auth=none
- References: <53FF1B90 dot 7080708 at hotmail dot com> <CAAHN_R22S0vHWQkEr6HhGbFje7scWw3=b_O7LxDqYReCT_xRjw at mail dot gmail dot com> <53FF1E26 dot 6070204 at redhat dot com>
On 28/08/14 22:18, Florian Weimer wrote:
> On 08/28/2014 02:10 PM, Siddhesh Poyarekar wrote:
>> On 28 August 2014 17:37, Allan McRae <mcrae_allan@hotmail.com> wrote:
>>> I am trying to backport the fix for CVE-2014-0475/BZ#17137 (directory
>>> traversal in locale-related environment variables) to glibc-2.19. See
>>> the allan/2.19/backport branch (which I intend to merge to the 2.19
>>> release branch soon).
>>>
>>> However, the added test with this fix - tst-setlocale3 - is failing:
>>>
>>> $ cat glibc-build/localedata/tst-setlocale3.out
>>> setlocale for "/en_US.UTF-8": No such file or directory
>>>
>>> I do not see this for the master branch. Is there something else I need
>>> to backport for this to work, or is my backport broken for other
>>> reasons?
>>
>> You need to backport the patch that sets LOCPATH for all tests:
>>
>> commit 2bf1804182cc4bd671193587c8d5e3de45a9618e
>> Author: Joseph Myers <joseph@codesourcery.com>
>> Date: Wed Jun 4 23:37:25 2014 +0000
>>
>> Include LOCPATH in default test environment.
>
> Alternatively, add this line to localedata/Makefile:
>
> tst-setlocale3-ENV = LOCPATH=$(common-objpfx)localedata
>
Thanks. I will take the tst-setlocale3-ENV approach.
Allan