]> git.ipfire.org Git - people/mlorenz/ipfire-2.x.git/blob - src/patches/glibc-2.38/0009-sysdeps-tst-bz21269-fix-test-parameter.patch
glibc: Import patches from upstream
[people/mlorenz/ipfire-2.x.git] / src / patches / glibc-2.38 / 0009-sysdeps-tst-bz21269-fix-test-parameter.patch
1 From c8ecda6251dd4a0dfe074e0a6011211cadeef742 Mon Sep 17 00:00:00 2001
2 From: Sam James <sam@gentoo.org>
3 Date: Fri, 4 Aug 2023 23:58:27 +0100
4 Subject: [PATCH 09/27] sysdeps: tst-bz21269: fix test parameter
5
6 All callers pass 1 or 0x11 anyway (same meaning according to man page),
7 but still.
8
9 Reviewed-by: DJ Delorie <dj@redhat.com>
10 Signed-off-by: Sam James <sam@gentoo.org>
11 (cherry picked from commit e0b712dd9183d527aae4506cd39564c14af3bb28)
12 ---
13 sysdeps/unix/sysv/linux/i386/tst-bz21269.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/sysdeps/unix/sysv/linux/i386/tst-bz21269.c b/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
17 index 51d4a1b082..f508ef8f16 100644
18 --- a/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
19 +++ b/sysdeps/unix/sysv/linux/i386/tst-bz21269.c
20 @@ -52,7 +52,7 @@ xset_thread_area (struct user_desc *u_info)
21 static void
22 xmodify_ldt (int func, const void *ptr, unsigned long bytecount)
23 {
24 - TEST_VERIFY_EXIT (syscall (SYS_modify_ldt, 1, ptr, bytecount) == 0);
25 + TEST_VERIFY_EXIT (syscall (SYS_modify_ldt, func, ptr, bytecount) == 0);
26 }
27
28 static int
29 --
30 2.39.2
31