Adjusted to v 1.1120

N2009_11_14_FIXES
jpandre 2007-11-20 11:03:57 +00:00
parent 1e8eed2e92
commit bd86c2e445
1 changed files with 4 additions and 2 deletions

View File

@ -614,7 +614,8 @@ static int ntfs_inode_sync_file_name(ntfs_inode *ni)
err = errno;
ntfs_log_perror("Failed to get index ctx, inode %lld",
(long long)index_ni->mft_no);
ntfs_inode_close(index_ni);
if (ni != index_ni && ntfs_inode_close(index_ni) && !err)
err = errno;
continue;
}
if (ntfs_index_lookup(fn, sizeof(FILE_NAME_ATTR), ictx)) {
@ -627,7 +628,8 @@ static int ntfs_inode_sync_file_name(ntfs_inode *ni)
ntfs_log_perror("Index lookup failed, inode %lld",
(long long)index_ni->mft_no);
ntfs_index_ctx_put(ictx);
ntfs_inode_close(index_ni);
if (ni != index_ni && ntfs_inode_close(index_ni) && !err)
err = errno;
continue;
}
/* Update flags and file size. */