Commit 8adf8e26 authored by Patrycja Rosa's avatar Patrycja Rosa
Browse files

readlink: fallback to real_readlink if linker is null

parent 2fc8040f
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment