Avoided logging of removal of non-existent extended attribute

N2009_11_14_FIXES
jpandre 2009-01-27 12:59:10 +00:00
parent 12a566eca6
commit 9a5e5bbfe3
1 changed files with 4 additions and 1 deletions

View File

@ -5087,8 +5087,11 @@ int ntfs_attr_remove(ntfs_inode *ni, const ATTR_TYPES type, ntfschar *name,
na = ntfs_attr_open(ni, type, name, name_len);
if (!na) {
ntfs_log_perror("Failed to open attribute 0x%02x of inode "
/* do not log removal of non-existent stream */
if (type != AT_DATA) {
ntfs_log_perror("Failed to open attribute 0x%02x of inode "
"0x%llx", type, (unsigned long long)ni->mft_no);
}
return -1;
}