nfs4: Fix CID 991246: use name of the old entry when reporting removal
This commit is contained in:
@@ -334,7 +334,7 @@ DirectoryCache::NotifyChanges(DirectoryCacheSnapshot* oldSnapshot,
|
|||||||
while (oldCurrent != NULL) {
|
while (oldCurrent != NULL) {
|
||||||
if (fAttrDir) {
|
if (fAttrDir) {
|
||||||
notify_attribute_changed(fInode->GetFileSystem()->DevId(),
|
notify_attribute_changed(fInode->GetFileSystem()->DevId(),
|
||||||
fInode->ID(), newCurrent->fName, B_ATTR_REMOVED);
|
fInode->ID(), oldCurrent->fName, B_ATTR_REMOVED);
|
||||||
} else {
|
} else {
|
||||||
notify_entry_removed(fInode->GetFileSystem()->DevId(), fInode->ID(),
|
notify_entry_removed(fInode->GetFileSystem()->DevId(), fInode->ID(),
|
||||||
oldCurrent->fName, oldCurrent->fNode);
|
oldCurrent->fName, oldCurrent->fNode);
|
||||||
|
|||||||
Reference in New Issue
Block a user