summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-31 19:20:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-07-30 23:37:06 +0000
commit39a8ade7eebc945a112c10ba3331bd9a0934dbec (patch)
tree3d054ab4836ac3640d8b82d9df43585aff397e68
parente7ec28bba7bb8573a7719f38b423b16b8d7c07da (diff)
parent853574ddc766da725dd114fe1d1102c59f713f3b (diff)
downloadsystem_core-39a8ade7eebc945a112c10ba3331bd9a0934dbec.zip
system_core-39a8ade7eebc945a112c10ba3331bd9a0934dbec.tar.gz
system_core-39a8ade7eebc945a112c10ba3331bd9a0934dbec.tar.bz2
Merge "Fix sdcard truncates."
-rw-r--r--sdcard/sdcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index e413596..9b55b33 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -903,7 +903,7 @@ static int handle_setattr(struct fuse* fuse, struct fuse_handler* handler,
/* XXX: incomplete implementation on purpose.
* chmod/chown should NEVER be implemented.*/
- if ((req->valid & FATTR_SIZE) && truncate(path, req->size) < 0) {
+ if ((req->valid & FATTR_SIZE) && truncate64(path, req->size) < 0) {
return -errno;
}