summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-17 23:00:45 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-17 23:00:45 +0000
commit918b241d15762f0bc5ece0e54f73028a5179e791 (patch)
treea8fdba95e5a21804c6d859709cc00bb19bbc5b6f
parent3cf04165693e9bfe5ffaf42d928831e497d528b6 (diff)
Formerly io-write.c.~2~
-rw-r--r--libtrivfs/io-write.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libtrivfs/io-write.c b/libtrivfs/io-write.c
index 47b06fd5..b91aedcf 100644
--- a/libtrivfs/io-write.c
+++ b/libtrivfs/io-write.c
@@ -15,6 +15,8 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#include "priv.h"
+
error_t
trivfs_S_io_write (struct protid *cred,
char *data,
@@ -22,5 +24,6 @@ trivfs_S_io_write (struct protid *cred,
off_t off,
int *amt)
{
- return EOPNOTSUPP;
+ assert (!trivfs_support_write);
+ return cred ? EBADF : EOPNOTSUPP;
}