diff options
| author | John Polstra <jdp@FreeBSD.org> | 1997-01-14 17:53:55 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 1997-01-14 17:53:55 +0000 |
| commit | 20995a4fccb2d89fb54f90f3d524fc97e5f78a69 (patch) | |
| tree | 895f3dae3888457f6e92d7259f23b9a6fc8c94a2 /libexec/rtld-aout | |
| parent | bf083f9e6b02e90437e4fecb6dfd3044d8c3cbd9 (diff) | |
Notes
Diffstat (limited to 'libexec/rtld-aout')
| -rw-r--r-- | libexec/rtld-aout/rtld.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c index cbba78e0d2f6..6321a11ef1b4 100644 --- a/libexec/rtld-aout/rtld.c +++ b/libexec/rtld-aout/rtld.c @@ -1711,6 +1711,10 @@ findhint(name, major, minorp) */ if (strcmp(name, hstrtab + bp->hi_namex) == 0 && bp->hi_major == major) { + struct stat s; + + if (stat(hstrtab + bp->hi_pathx, &s) == -1) + return NULL; /* Doesn't actually exist */ *minorp = bp->hi_ndewey >= 2 ? bp->hi_minor : -1; return strdup(hstrtab + bp->hi_pathx); } |
