Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Patrycja Rosa
gcompat
Commits
8adf8e26
Commit
8adf8e26
authored
Jan 01, 2022
by
Patrycja Rosa
Browse files
readlink: fallback to real_readlink if linker is null
parent
2fc8040f
Changes
1
Hide whitespace changes
Inline
Side-by-side
libgcompat/readlink.c
View file @
8adf8e26
...
...
@@ -31,7 +31,7 @@ ssize_t readlink(const char *path, char *buf, size_t len)
if
(
linker
==
NULL
)
{
linker
=
realpath
(
LINKER
,
NULL
);
if
(
linker
==
NULL
)
{
return
-
1
;
return
real_readlink
(
path
,
buf
,
len
)
;
}
}
if
(
real_readlink
(
path
,
exe
,
sizeof
(
exe
))
<
1
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment