diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-01-02 02:43:37 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-01-02 03:02:53 -0500 |
commit | 97774e90d694f802ff0cfbf15687af77c6f7239e (patch) | |
tree | 2c464c571ddb07f3a01cbc295700430bb52248f8 /libpthread/nptl/pthread_rwlock_init.c | |
parent | b3436addb5ccf14d7fffcf5503644e9a62aaec4e (diff) |
ldso: setup search path even when there are no "/"
If people use an interp path such as "ld.so", then there is no "/" found,
and we end up dereferencing a NULL pointer. Simplify the logic by having
a relative interp path like that be the same as "" (which the code later
on interprets as $PWD).
While we're here, document some of the nuances of this code.
Reported-by: Ignacy Gawędzki <uclibc@qult.net>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libpthread/nptl/pthread_rwlock_init.c')
0 files changed, 0 insertions, 0 deletions