diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-07-03 21:37:41 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-07-03 21:37:41 +0000 |
commit | cfeca06588e9fc1f1c605baeb3999062064ef30f (patch) | |
tree | e301833a32b970e1eb227cde3a856ba6d9d905a7 /sys | |
parent | d4d2788f7e061c53e6c97e54ce085c2a840c4597 (diff) |
Bring in millert@ thinko fix for '_' handling from r1.47 of
libc/gen/nlist.c.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/stand/installboot/nlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/stand/installboot/nlist.c b/sys/arch/amd64/stand/installboot/nlist.c index b0c22dd3ddc..2dbdce9babb 100644 --- a/sys/arch/amd64/stand/installboot/nlist.c +++ b/sys/arch/amd64/stand/installboot/nlist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nlist.c,v 1.9 2011/07/03 21:02:10 krw Exp $ */ +/* $OpenBSD: nlist.c,v 1.10 2011/07/03 21:37:40 krw Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -424,7 +424,7 @@ __elf_fdnlist(int fd, struct nlist *list) */ sym = p->n_un.n_name; if (strcmp(&strtab[soff], sym) != 0 && - ((sym[0] == '_') && + (sym[0] != '_' || strcmp(&strtab[soff], sym + 1) != 0)) continue; |