aboutsummaryrefslogtreecommitdiffstats
path: root/fuse
diff options
context:
space:
mode:
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>2010-02-13 08:57:16 +0000
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>2010-02-13 08:57:16 +0000
commitd88a1e4a609eacae33b2461db849dd16dba3d8dd (patch)
tree93eeb9c90a924ac7d1a2bbda43c003dc4c084a92 /fuse
parentdd2ecb5d2a0eb6ed3703248aaa7f0314050dc2f7 (diff)
downloadandroid_external_exfat-d88a1e4a609eacae33b2461db849dd16dba3d8dd.tar.gz
android_external_exfat-d88a1e4a609eacae33b2461db849dd16dba3d8dd.tar.bz2
android_external_exfat-d88a1e4a609eacae33b2461db849dd16dba3d8dd.zip
Fixed truncate(): it always returned 0 instead of actual result.
git-svn-id: http://exfat.googlecode.com/svn/trunk@122 60bc1c72-a15a-11de-b98f-4500b42dc123
Diffstat (limited to 'fuse')
-rw-r--r--fuse/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuse/main.c b/fuse/main.c
index a37256d..409e503 100644
--- a/fuse/main.c
+++ b/fuse/main.c
@@ -72,9 +72,9 @@ static int fuse_exfat_truncate(const char* path, off_t size)
if (rc != 0)
return rc;
- exfat_truncate(&ef, node, size);
+ rc = exfat_truncate(&ef, node, size);
exfat_put_node(&ef, node);
- return 0;
+ return rc;
}
static int fuse_exfat_readdir(const char* path, void* buffer,