summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/file-set-size.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtrivfs/file-set-size.c b/libtrivfs/file-set-size.c
index 64dc30c0..583df658 100644
--- a/libtrivfs/file-set-size.c
+++ b/libtrivfs/file-set-size.c
@@ -23,5 +23,5 @@ kern_return_t
trivfs_S_file_truncate (struct trivfs_protid *cred, off_t size)
{
assert (!trivfs_support_write);
- return cred ? EBADF : EOPNOTSUPP;
+ return EOPNOTSUPP;
}