diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-origin.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/dl-origin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-origin.c b/sysdeps/unix/sysv/linux/dl-origin.c index e425467eba..6ee0ed2bf4 100644 --- a/sysdeps/unix/sysv/linux/dl-origin.c +++ b/sysdeps/unix/sysv/linux/dl-origin.c @@ -37,7 +37,7 @@ _dl_get_origin (void) char linkval[PATH_MAX]; char *result; - if (readlink ("/proc/self/exe", linkval, PATH_MAX) != -1 + if (__readlink ("/proc/self/exe", linkval, PATH_MAX) != -1 && linkval[0] != '[') { /* We can use this value. */ |