summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtrivfs/file-set-size.c3
1 files changed, 2 insertions, 1 deletions
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;
}