aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2023-05-25 11:15:54 -0400
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2023-05-25 11:15:54 -0400
commit44d4d3bdcff67c7fa0b0c046fef9919e9c66c1b2 (patch)
treeccc8dda821ebdbf1e0ce84885e46c7b312bcf78c /elf
parentdbfc83bdcab941ce04200f97879f2a79fd0f2a0b (diff)
downloadglibc-44d4d3bdcff67c7fa0b0c046fef9919e9c66c1b2.zip
glibc-44d4d3bdcff67c7fa0b0c046fef9919e9c66c1b2.tar.gz
glibc-44d4d3bdcff67c7fa0b0c046fef9919e9c66c1b2.tar.bz2
elf: Update comment in open_path
f55727ca53308a206cf00d0442f8c57c73761899 updated open_path to use the r_search_path_struct struct but failed to update the comment. Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-load.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 2aa487b..6a0d85e 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1779,12 +1779,11 @@ open_verify (const char *name, int fd,
return fd;
}
-/* Try to open NAME in one of the directories in *DIRSP.
- Return the fd, or -1. If successful, fill in *REALNAME
- with the malloc'd full directory name. If it turns out
- that none of the directories in *DIRSP exists, *DIRSP is
- replaced with (void *) -1, and the old value is free()d
- if MAY_FREE_DIRS is true. */
+/* Try to open NAME in one of the directories in SPS. Return the fd, or -1.
+ If successful, fill in *REALNAME with the malloc'd full directory name. If
+ it turns out that none of the directories in SPS exists, SPS->DIRS is
+ replaced with (void *) -1, and the old value is free()d if SPS->MALLOCED is
+ true. */
static int
open_path (const char *name, size_t namelen, int mode,