nfs4: Fix CID 991246: use name of the old entry when reporting removal

This commit is contained in:
Pawel Dziepak 2013-03-19 01:15:27 +01:00
parent b42b242f62
commit b0e5bfeab5

View File

@ -334,7 +334,7 @@ DirectoryCache::NotifyChanges(DirectoryCacheSnapshot* oldSnapshot,
while (oldCurrent != NULL) {
if (fAttrDir) {
notify_attribute_changed(fInode->GetFileSystem()->DevId(),
fInode->ID(), newCurrent->fName, B_ATTR_REMOVED);
fInode->ID(), oldCurrent->fName, B_ATTR_REMOVED);
} else {
notify_entry_removed(fInode->GetFileSystem()->DevId(), fInode->ID(),
oldCurrent->fName, oldCurrent->fNode);