]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Use errcode instead of (unset) errno in rtld_chain_load
authorFlorian Weimer <fweimer@redhat.com>
Fri, 10 Dec 2021 20:34:30 +0000 (21:34 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 10 Dec 2021 20:34:30 +0000 (21:34 +0100)
elf/rtld.c

index 6ce1e07dc0b0933877bd1c186959995cee036681..4b09e84b0db4f15dd508bc5913ea5567ce1ceae3 100644 (file)
@@ -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