diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-09-11 01:41:19 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-09-11 01:41:19 +0000 |
commit | bf7066b54b85b8a6220e9f4e3d22162ac9f0da91 (patch) | |
tree | dfc76f06d5a5f85556a2c9327884718948d1cf71 /sys | |
parent | 8aeee6d44af63b1052b8db18fa5badb284c372dd (diff) |
If filesystem open routine returns ENOENT or ENOTDIR, set errno to that and return
Diffstat (limited to 'sys')
-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; |