diff options
author | 2012-07-09 12:58:01 +0000 | |
---|---|---|
committer | 2012-07-09 12:58:01 +0000 | |
commit | 402e329a2ba82d5f05ae9dd5d1f72dc23cdf91d5 (patch) | |
tree | e28443e70b404f4c6b062f8c3c98df5889eb530b /sys | |
parent | more arg parsing failure (diff) | |
download | wireguard-openbsd-402e329a2ba82d5f05ae9dd5d1f72dc23cdf91d5.tar.xz wireguard-openbsd-402e329a2ba82d5f05ae9dd5d1f72dc23cdf91d5.zip |
Revert previous.
The standards gpds are jealous gods. kettenis@ and beck@ have shown
EROFS is the wrong thing to return. So revert to EACCES until a
better error code is decided on.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index fe94b7b8a47..0cb8b51a30a 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.241 2012/07/08 14:30:59 krw Exp $ */ +/* $OpenBSD: sd.c,v 1.242 2012/07/09 12:58:01 krw Exp $ */ /* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */ /*- @@ -353,7 +353,7 @@ sdopen(dev_t dev, int flag, int fmt, struct proc *p) } if (ISSET(flag, FWRITE) && ISSET(sc_link->flags, SDEV_READONLY)) { device_unref(&sc->sc_dev); - return (EROFS); + return (EACCES); } SC_DEBUG(sc_link, SDEV_DB1, |