From 9a5e5bbfe3c1d7bca1e4f2ea75b8ced9f9270877 Mon Sep 17 00:00:00 2001 From: jpandre Date: Tue, 27 Jan 2009 12:59:10 +0000 Subject: [PATCH] Avoided logging of removal of non-existent extended attribute --- libntfs-3g/attrib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 249c500a..9fa2df56 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -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; }