summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/ld/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/ld/lib.c')
-rw-r--r--gnu/usr.bin/ld/lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/ld/lib.c b/gnu/usr.bin/ld/lib.c
index 78d692610f14..fce30480f7fc 100644
--- a/gnu/usr.bin/ld/lib.c
+++ b/gnu/usr.bin/ld/lib.c
@@ -1,5 +1,5 @@
/*
- * $Id: lib.c,v 1.14 1995/04/07 05:08:28 nate Exp $ - library routines
+ * $Id: lib.c,v 1.16 1995/09/28 19:43:22 bde Exp $ - library routines
*/
#include <sys/param.h>
@@ -830,7 +830,7 @@ struct file_entry *p;
fname = findshlib(p->filename, &major, &minor, 1);
- if (fname && (fd = open(fname, O_RDONLY, 0)) > 0) {
+ if (fname && (fd = open(fname, O_RDONLY, 0)) >= 0) {
p->filename = fname;
p->lib_major = major;
p->lib_minor = minor;
@@ -852,7 +852,7 @@ dot_a:
register char *path
= concat(search_dirs[i], "/", fname);
fd = open(path, O_RDONLY, 0);
- if (fd > 0) {
+ if (fd >= 0) {
p->filename = path;
p->flags &= ~E_SEARCH_DIRS;
break;