94084c
commit f1eeef945d49c72eb13654bd30b5904e89b4626f
94084c
Author: Florian Weimer <fweimer@redhat.com>
94084c
Date:   Fri Dec 10 21:34:30 2021 +0100
94084c
94084c
    elf: Use errcode instead of (unset) errno in rtld_chain_load
94084c
94084c
diff --git a/elf/rtld.c b/elf/rtld.c
94084c
index 6b0d6107801b2f44..6bbb373c5743cb99 100644
94084c
--- a/elf/rtld.c
94084c
+++ b/elf/rtld.c
94084c
@@ -1143,7 +1143,7 @@ rtld_chain_load (struct link_map *main_map, char *argv0)
94084c
 		     rtld_soname, pathname, errname);
94084c
   else
94084c
     _dl_fatal_printf("%s: cannot execute %s: %d\n",
94084c
-		     rtld_soname, pathname, errno);
94084c
+		     rtld_soname, pathname, errcode);
94084c
 }
94084c
 
94084c
 static void