Fix mistaken order of arguments to open_path

This commit is contained in:
Stan Shebs 2018-12-05 09:47:39 -08:00 committed by Fangrui Song
parent b2d0b20ae6
commit c51bab1714

View 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);