summaryrefslogtreecommitdiffstats
path: root/sbin/ldconfig
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-09-05 16:20:15 +0000
committerjdp <jdp@FreeBSD.org>1998-09-05 16:20:15 +0000
commita1a2d181d261fb526c5be7ec00574bf9ef2e71ca (patch)
treee7d5eac87936f94ffe3b84cf3dc56f71d73b1db1 /sbin/ldconfig
parentd251b2c548387e462528958436ea0ec7377d4292 (diff)
downloadFreeBSD-src-a1a2d181d261fb526c5be7ec00574bf9ef2e71ca.zip
FreeBSD-src-a1a2d181d261fb526c5be7ec00574bf9ef2e71ca.tar.gz
For a.out mode, ignore shared libraries that don't have at least 2
version numbers.
Diffstat (limited to 'sbin/ldconfig')
-rw-r--r--sbin/ldconfig/ldconfig.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c
index 64d4001..e26c61c 100644
--- a/sbin/ldconfig/ldconfig.c
+++ b/sbin/ldconfig/ldconfig.c
@@ -30,7 +30,7 @@
#ifndef lint
static const char rcsid[] =
- "$Id: ldconfig.c,v 1.24 1998/08/02 16:06:33 bde Exp $";
+ "$Id: ldconfig.c,v 1.25 1998/09/05 03:30:54 jdp Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -359,6 +359,8 @@ int silent;
bzero((caddr_t)dewey, sizeof(dewey));
ndewey = getdewey(dewey, cp + 4);
+ if (ndewey < 2)
+ continue;
enter(dir, dp->d_name, name, dewey, ndewey);
}
OpenPOWER on IntegriCloud