ntfsmount: fix errno in truncate() operation

This commit is contained in:
Yura Pakhuchiy 2007-06-08 13:34:16 +03:00
parent 62d49cb175
commit 52d034e5f3

View File

@ -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: