ade71b1bfa
Upstream commit: 3438bbca90895d32825a52e31a77dc44d273c1c1 - Linux: Detect user namespace support in io/tst-getcwd-smallbuff - realpath: Avoid overwriting preexisting error - CVE-2021-3999: getcwd: Set errno to ERANGE for size == 1 - tst-realpath-toolong: Fix hurd build - CVE-2021-3998: realpath: ENAMETOOLONG for result larger than PATH_MAX - stdlib: Fix formatting of tests list in Makefile - stdlib: Sort tests in Makefile - support: Add helpers to create paths longer than PATH_MAX - powerpc: Fix unrecognized instruction errors with recent binutils - x86: use default cache size if it cannot be determined [BZ #28784] - CVE-2022-23218: Buffer overflow in sunrpc svcunix_create (bug 28768) - sunrpc: Test case for clnt_create "unix" buffer overflow (bug 22542) - CVE-2022-23219: Buffer overflow in sunrpc clnt_create for "unix" (bug 22542) - socket: Add the __sockaddr_un_set function - Disable debuginfod in printer tests [BZ #28757] - Update syscall lists for Linux 5.16 Reviewed-by: Carlos O'Donell <carlos@redhat.com>
27 lines
743 B
Diff
27 lines
743 B
Diff
commit 8c8a71c85f2ed5cc90d08d82ce645513fc907cb6
|
|
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
|
|
Date: Mon Jan 24 10:57:09 2022 +0530
|
|
|
|
tst-realpath-toolong: Fix hurd build
|
|
|
|
Define PATH_MAX to a constant if it isn't already defined, like in hurd.
|
|
|
|
Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
|
|
(cherry picked from commit 976db046bc3a3738f69255ae00b0a09b8e77fd9c)
|
|
|
|
diff --git a/stdlib/tst-realpath-toolong.c b/stdlib/tst-realpath-toolong.c
|
|
index 8bed772460b37571..4388890294374601 100644
|
|
--- a/stdlib/tst-realpath-toolong.c
|
|
+++ b/stdlib/tst-realpath-toolong.c
|
|
@@ -29,6 +29,10 @@
|
|
|
|
#define BASENAME "tst-realpath-toolong."
|
|
|
|
+#ifndef PATH_MAX
|
|
+# define PATH_MAX 1024
|
|
+#endif
|
|
+
|
|
int
|
|
do_test (void)
|
|
{
|