From fc85e66d453c0f066f6cfa48222d20e18ea9b316 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Sun, 23 Dec 2012 23:15:59 -0500 Subject: [PATCH] Windows: SetRenameInfo do not reference deleted name After the Target Dirctory CB has been deleted, it is not safe to reference the FileName component. Use the uniTargetName in the error log message. Change-Id: I83e6db62ffa0cf59d666066cae8f32e93d63d815 Reviewed-on: http://gerrit.openafs.org/8825 Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 5f95988669..3590b219e2 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -3253,7 +3253,7 @@ AFSSetRenameInfo( IN PIRP Irp) AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING, AFS_TRACE_LEVEL_ERROR, "AFSSetRenameInfo Failed to delete section for target file %wZ\n", - &pTargetDirEntry->NameInformation.FileName); + &uniTargetName); } AFSDbgLogMsg( AFS_SUBSYSTEM_LOCK_PROCESSING,