Fixed the return value of ntfs_set_file_attributes()

N2009_11_14_FIXES
jpandre 2009-01-06 11:25:55 +00:00
parent ca6466c6bb
commit 0feae8177a
1 changed files with 2 additions and 1 deletions

View File

@ -4392,7 +4392,8 @@ BOOL ntfs_set_file_attributes(struct SECURITY_API *scapi,
ni->flags = (ni->flags & ~const_cpu_to_le32(0x31a7))
| cpu_to_le32(attrib & 0x31a7);
NInoSetDirty(ni);
ntfs_inode_close(ni);
if (!ntfs_inode_close(ni))
res = -1;
} else
errno = ENOENT;
}