am 33a5575a: am 39a8ade7: Merge "Fix sdcard truncates."

* commit '33a5575a585bdc4000be06f96554309b5d3471ff':
  Fix sdcard truncates.
This commit is contained in:
Elliott Hughes 2014-07-31 22:28:57 +00:00 committed by Android Git Automerger
commit 787a2cce94

View file

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