am 39a8ade7: Merge "Fix sdcard truncates."

* commit '39a8ade7eebc945a112c10ba3331bd9a0934dbec':
  Fix sdcard truncates.
This commit is contained in:
Elliott Hughes 2014-07-31 19:36:40 +00:00 committed by Android Git Automerger
commit 33a5575a58

View file

@ -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;
}