From 2fbd996bd505fdb633c1dcd210005947dc455fa7 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 18 Feb 1994 17:37:25 +0000 Subject: Formerly file-truncate.c.~2~ --- libtrivfs/file-set-size.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libtrivfs/file-set-size.c') diff --git a/libtrivfs/file-set-size.c b/libtrivfs/file-set-size.c index 2ec330e4..56085790 100644 --- a/libtrivfs/file-set-size.c +++ b/libtrivfs/file-set-size.c @@ -20,5 +20,6 @@ error_t diskfs_S_file_truncate (struct protid *cred, off_t size) { - return cred ? 0 : EOPNOTSUPP; + assert (!trivfs_support_write); + return cred ? EBADF : EOPNOTSUPP; } -- cgit v1.2.3