mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-27 03:53:48 +08:00
ntfsmount: fix errno in truncate() operation
This commit is contained in:
parent
62d49cb175
commit
52d034e5f3
@ -759,7 +759,10 @@ static int ntfs_fuse_truncate(const char *org_path, off_t size)
|
||||
res = -errno;
|
||||
goto exit;
|
||||
}
|
||||
res = ntfs_attr_truncate(na, size);
|
||||
if (ntfs_attr_truncate(na, size))
|
||||
res = -errno;
|
||||
else
|
||||
res = 0;
|
||||
ntfs_fuse_mark_free_space_outdated();
|
||||
ntfs_attr_close(na);
|
||||
exit:
|
||||
|
Loading…
Reference in New Issue
Block a user