summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-aout
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1993-12-04 00:53:02 +0000
committerjkh <jkh@FreeBSD.org>1993-12-04 00:53:02 +0000
commit0692c29b44b32a5c1951bc0988c6db424780304b (patch)
tree2f48341096ec0a6968120eff9aa0e3e33b9af01e /libexec/rtld-aout
parent2c48c35e86d75ce81452b240cee8586254d83c52 (diff)
downloadFreeBSD-src-0692c29b44b32a5c1951bc0988c6db424780304b.zip
FreeBSD-src-0692c29b44b32a5c1951bc0988c6db424780304b.tar.gz
More changes to bring FreBSD in sync with Paul K's latest.
Diffstat (limited to 'libexec/rtld-aout')
-rw-r--r--libexec/rtld-aout/shlib.c29
1 files changed, 2 insertions, 27 deletions
diff --git a/libexec/rtld-aout/shlib.c b/libexec/rtld-aout/shlib.c
index 64e2efc..b6cb74e 100644
--- a/libexec/rtld-aout/shlib.c
+++ b/libexec/rtld-aout/shlib.c
@@ -1,5 +1,5 @@
/*
- * $Id: shlib.c,v 1.2 1993/11/09 04:19:03 paul Exp $
+ * $Id: shlib.c,v 1.4 1993/12/02 00:56:40 jkh Exp $
*/
#include <sys/param.h>
@@ -132,10 +132,9 @@ int n1, n2;
#undef minor
char *
-findshlib(name, majorp, minorp, do_dot_a)
+findshlib(name, majorp, minorp)
char *name;
int *majorp, *minorp;
-int do_dot_a;
{
int dewey[MAXDEWEY];
int ndewey;
@@ -155,7 +154,6 @@ int do_dot_a;
for (i = 0; i < n_search_dirs; i++) {
DIR *dd = opendir(search_dirs[i]);
struct dirent *dp;
- int found_dot_a = 0;
if (dd == NULL)
continue;
@@ -163,16 +161,6 @@ int do_dot_a;
while ((dp = readdir(dd)) != NULL) {
int n, j, might_take_it = 0;
- if (do_dot_a && path == NULL &&
- dp->d_namlen == len + 2 &&
- strncmp(dp->d_name, lname, len) == 0 &&
- (dp->d_name+len)[0] == '.' &&
- (dp->d_name+len)[1] == 'a') {
-
- path = concat(search_dirs[i], "/", dp->d_name);
- found_dot_a = 1;
- }
-
if (dp->d_namlen < len + 4)
continue;
if (strncmp(dp->d_name, lname, len) != 0)
@@ -183,12 +171,6 @@ int do_dot_a;
if ((n = getdewey(tmp, dp->d_name+len+4)) == 0)
continue;
- if (major != -1 && found_dot_a) { /* XXX */
- free(path);
- path = NULL;
- found_dot_a = 0;
- }
-
if (major == -1 && minor == -1) {
might_take_it = 1;
} else if (major != -1 && minor == -1) {
@@ -210,19 +192,12 @@ int do_dot_a;
if (path)
free(path);
path = concat(search_dirs[i], "/", dp->d_name);
- found_dot_a = 0;
bcopy(tmp, dewey, sizeof(dewey));
ndewey = n;
*majorp = dewey[0];
*minorp = dewey[1];
}
closedir(dd);
-
- if (found_dot_a)
- /*
- * There's a .a archive here.
- */
- return path;
}
return path;
OpenPOWER on IntegriCloud