about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-12-10 21:34:30 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-12-10 21:34:30 +0100
commitf1eeef945d49c72eb13654bd30b5904e89b4626f (patch)
tree288fb0f5ec7da0380fc40085b02ca78919261b75 /elf
parentfc2334ab32e04916832955301225a9785c36dac1 (diff)
downloadglibc-f1eeef945d49c72eb13654bd30b5904e89b4626f.tar.gz
glibc-f1eeef945d49c72eb13654bd30b5904e89b4626f.tar.xz
glibc-f1eeef945d49c72eb13654bd30b5904e89b4626f.zip
elf: Use errcode instead of (unset) errno in rtld_chain_load
Diffstat (limited to 'elf')
-rw-r--r--elf/rtld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 6ce1e07dc0..4b09e84b0d 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -1143,7 +1143,7 @@ rtld_chain_load (struct link_map *main_map, char *argv0)
 		     rtld_soname, pathname, errname);
   else
     _dl_fatal_printf("%s: cannot execute %s: %d\n",
-		     rtld_soname, pathname, errno);
+		     rtld_soname, pathname, errcode);
 }
 
 static void