diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-21 15:43:55 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-07-21 15:43:55 +0000 |
commit | bfeff674bfd05a4b01510c07ee3d9b2017fa93a5 (patch) | |
tree | 6472fba89e3dfb72152fb867e8f3d4247b05a861 | |
parent | d0c6f6610bb0afc665c418cebf70f95b97e854ab (diff) |
proper errno
-rw-r--r-- | sys/lib/libsa/readdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/readdir.c b/sys/lib/libsa/readdir.c index 67c0340ff11..277dfc44348 100644 --- a/sys/lib/libsa/readdir.c +++ b/sys/lib/libsa/readdir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readdir.c,v 1.3 1997/07/21 15:37:08 mickey Exp $ */ +/* $OpenBSD: readdir.c,v 1.4 1997/07/21 15:43:54 mickey Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -83,7 +83,7 @@ readdir(fd, dest) } if (f->f_flags & F_RAW) { - errno = EINVAL; + errno = EOPNOTSUPP; return (-1); } if ((errno = (f->f_ops->readdir)(f, dest))) |