am 39a8ade7
: Merge "Fix sdcard truncates."
* commit '39a8ade7eebc945a112c10ba3331bd9a0934dbec': Fix sdcard truncates.
This commit is contained in:
commit
33a5575a58
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue