summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libsa/open.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/lib/libsa/open.c b/sys/lib/libsa/open.c
index f98f2a5f5ae..65306545640 100644
--- a/sys/lib/libsa/open.c
+++ b/sys/lib/libsa/open.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: open.c,v 1.6 1997/02/06 02:56:46 downsj Exp $ */
+/* $OpenBSD: open.c,v 1.7 1998/09/11 01:41:18 millert Exp $ */
/* $NetBSD: open.c,v 1.12 1996/09/30 16:01:21 ws Exp $ */
/*-
@@ -120,6 +120,8 @@ fnd:
f->f_ops = &file_system[i];
return (fd);
}
+ if (error == ENOENT || error == ENOTDIR)
+ break;
}
if (!error)
error = ENOENT;