Merge "Fix sdcard truncates."
This commit is contained in:
commit
39a8ade7ee
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue