summaryrefslogtreecommitdiff
path: root/libtrivfs/file-set-size.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-18 17:37:25 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-18 17:37:25 +0000
commit2fbd996bd505fdb633c1dcd210005947dc455fa7 (patch)
tree1f500245c23f054d7b352f17873dd13624f954f6 /libtrivfs/file-set-size.c
parent9722aed6354556224012abca7e332bb1bb792063 (diff)
Formerly file-truncate.c.~2~
Diffstat (limited to 'libtrivfs/file-set-size.c')
-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;
}