public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/siddhesh/realpath-and-getcwd] tempfle fixup
@ 2022-01-18 8:31 Siddhesh Poyarekar
0 siblings, 0 replies; only message in thread
From: Siddhesh Poyarekar @ 2022-01-18 8:31 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8a18d4dc0637b76433f329be25c51d684d186fc7
commit 8a18d4dc0637b76433f329be25c51d684d186fc7
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
Date: Tue Jan 18 14:01:35 2022 +0530
tempfle fixup
Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diff:
---
support/temp_file.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/support/temp_file.h b/support/temp_file.h
index 688ac78ac5..5f104442b6 100644
--- a/support/temp_file.h
+++ b/support/temp_file.h
@@ -33,7 +33,8 @@ support_get_path_max (void)
return PATH_MAX;
#else
size_t path_max = pathconf ("/", _PC_PATH_MAX);
- path_max = path_max < 0 ? 1024 : path_max < ? path_max : PTRDIFF_MAX;
+ return (path_max < 0 ? 1024
+ : path_max <= PTRDIFF_MAX ? path_max : PTRDIFF_MAX);
#endif
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-18 8:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 8:31 [glibc/siddhesh/realpath-and-getcwd] tempfle fixup Siddhesh Poyarekar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).