summaryrefslogtreecommitdiff
path: root/storeio/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'storeio/io.c')
-rw-r--r--storeio/io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/storeio/io.c b/storeio/io.c
index c79f6ba3..eaa20def 100644
--- a/storeio/io.c
+++ b/storeio/io.c
@@ -178,6 +178,8 @@ trivfs_S_file_set_size (struct trivfs_protid *cred,
{
if (! cred)
return EOPNOTSUPP;
+ else if (size < 0)
+ return EINVAL;
else
return 0;
}