summaryrefslogtreecommitdiff
path: root/sdcard
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-07-31 22:28:57 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-07-31 22:28:57 +0000
commit787a2cce94d61cfc2f2e87a71c3d0f9bb00fc088 (patch)
tree34d3d8553010b03a0db9e7d37022fdb183d8ebb5 /sdcard
parent614b923241420f8d05e6a3a6dd238f0e775b2782 (diff)
parent33a5575a585bdc4000be06f96554309b5d3471ff (diff)
am 33a5575a: am 39a8ade7: Merge "Fix sdcard truncates."
* commit '33a5575a585bdc4000be06f96554309b5d3471ff': Fix sdcard truncates.
Diffstat (limited to 'sdcard')
-rw-r--r--sdcard/sdcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index 587a4cd9e..7bf63943f 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -910,7 +910,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;
}