]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix mistaken order of arguments to open_path
authorStan Shebs <stanshebs@google.com>
Wed, 5 Dec 2018 17:47:39 +0000 (09:47 -0800)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:23:15 +0000 (17:23 -0700)
elf/dl-load.c

index 0906de556ced46fa3b36d4f04b1f26f5e110ee8a..f78140a4412ef0cfe5d35a1c6a9749cfc1bf2c95 100644 (file)
@@ -2053,7 +2053,7 @@ _dl_map_object (struct link_map *loader, const char *name, off_t offset,
              && main_map != NULL && main_map->l_type != lt_loaded
              && cache_rpath (main_map, &main_map->l_rpath_dirs, DT_RPATH,
                              "RPATH"))
-           fd = open_path (name, namelen, mode, offset,
+           fd = open_path (name, namelen, offset, mode,
                            &main_map->l_rpath_dirs,
                            &realname, &fb, loader ?: main_map, LA_SER_RUNPATH,
                            &found_other_class);