diff options
author | 1998-09-11 01:41:18 +0000 | |
---|---|---|
committer | 1998-09-11 01:41:18 +0000 | |
commit | 380614da8fac3fb596f8f3d6742b9e2586049bd8 (patch) | |
tree | 95747652e9272eeb66047bc97669e979f013357a /sys/lib | |
parent | default media type is auto if a phy is found, and none if not (diff) | |
download | wireguard-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.c | 4 |
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; |