fix some stupid bugs

(Logical change 1.593)
edge.strict_endians
(none)!yura 2004-10-07 16:40:29 +00:00
parent a929f9f0ba
commit 59407ac0ff
1 changed files with 3 additions and 1 deletions

View File

@ -3751,7 +3751,8 @@ static int ntfs_non_resident_attr_shrink(ntfs_attr *na, const s64 newsize)
"failed. Aborting...\n", __FUNCTION__);
} else if (err == ENOENT)
err = EIO;
goto put_err_out;
errno = err;
return -1;
}
/* The first cluster outside the new allocation. */
@ -3986,6 +3987,7 @@ static int ntfs_non_resident_attr_expand(ntfs_attr *na, const s64 newsize)
ctx = ntfs_attr_get_search_ctx(na->ni, NULL);
if (!ctx) {
err = errno;
if ((na->allocated_size >> vol->cluster_size_bits) !=
first_free_vcn)
goto rollback;