summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-17 23:00:27 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-17 23:00:27 +0000
commit3cf04165693e9bfe5ffaf42d928831e497d528b6 (patch)
treef99f5be00aa0a8a7117bce4beedd5122253eb54e /libtrivfs
parent84c8ba45197325fcc4162ca4bf3fa66ee4389d38 (diff)
Formerly io-read.c.~2~
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-read.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libtrivfs/io-read.c b/libtrivfs/io-read.c
index 7813ded9..1fcb584e 100644
--- a/libtrivfs/io-read.c
+++ b/libtrivfs/io-read.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_read (struct protid *cred,
char *data,
@@ -22,5 +24,6 @@ trivfs_S_io_read (struct protid *cred,
off_t off,
int amt)
{
- return EOPNOTSUPP;
+ assert (!trivfs_support_read);
+ return cred ? EBADF : EOPNOTSUPP;
}