summaryrefslogtreecommitdiffstats
path: root/sys/lib
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1998-09-11 01:41:18 +0000
committermillert <millert@openbsd.org>1998-09-11 01:41:18 +0000
commit380614da8fac3fb596f8f3d6742b9e2586049bd8 (patch)
tree95747652e9272eeb66047bc97669e979f013357a /sys/lib
parentdefault media type is auto if a phy is found, and none if not (diff)
downloadwireguard-openbsd-380614da8fac3fb596f8f3d6742b9e2586049bd8.tar.xz
wireguard-openbsd-380614da8fac3fb596f8f3d6742b9e2586049bd8.zip
If filesystem open routine returns ENOENT or ENOTDIR, set errno to that and return
Diffstat (limited to 'sys/lib')
-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;