Page MenuHomeFreeBSD

D23090.diff
No OneTemporary

D23090.diff

Index: head/libexec/rtld-elf/rtld.c
===================================================================
--- head/libexec/rtld-elf/rtld.c
+++ head/libexec/rtld-elf/rtld.c
@@ -5531,15 +5531,12 @@
fd = -1;
errno = ENOENT;
while ((pe = strsep(&pathenv, ":")) != NULL) {
- if (strlcpy(binpath, pe, sizeof(binpath)) >=
- sizeof(binpath))
+ if (strlcpy(binpath, pe, PATH_MAX) >= PATH_MAX)
continue;
if (binpath[0] != '\0' &&
- strlcat(binpath, "/", sizeof(binpath)) >=
- sizeof(binpath))
+ strlcat(binpath, "/", PATH_MAX) >= PATH_MAX)
continue;
- if (strlcat(binpath, argv0, sizeof(binpath)) >=
- sizeof(binpath))
+ if (strlcat(binpath, argv0, PATH_MAX) >= PATH_MAX)
continue;
fd = open(binpath, O_RDONLY | O_CLOEXEC | O_VERIFY);
if (fd != -1 || errno != ENOENT) {

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 21, 9:14 AM (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14758560
Default Alt Text
D23090.diff (832 B)

Event Timeline