diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2011-03-25 18:23:10 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2011-03-25 18:23:10 +0000 |
| commit | 6014c8de1de24dcb29b0201b8b5190fd2cefd705 (patch) | |
| tree | a640364299759a0dc9bf862c1792bf7be232043a /libexec | |
| parent | af32c4196f9e10899986d52d100af803dad0a771 (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rtld-elf/rtld.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index 948cf49471bb..5c2db0a38280 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -1633,12 +1633,9 @@ load_object(const char *name, const Obj_Entry *refobj, int flags) free(path); return NULL; } - for (obj = obj_list->next; obj != NULL; obj = obj->next) { - if (obj->ino == sb.st_ino && obj->dev == sb.st_dev) { - close(fd); + for (obj = obj_list->next; obj != NULL; obj = obj->next) + if (obj->ino == sb.st_ino && obj->dev == sb.st_dev) break; - } - } if (obj != NULL) { object_add_name(obj, name); free(path); |
