From 3bdabdf918502a0696ffadb94638d23192e27219 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 5 Nov 2010 14:04:39 -0400 Subject: [PATCH] driver: link and rename print target filename Signed-off-by: Casey Bodley --- sys/nfs41_driver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c index 18e5802..ed700bd 100644 --- a/sys/nfs41_driver.c +++ b/sys/nfs41_driver.c @@ -3686,10 +3686,13 @@ NTSTATUS nfs41_SetFileInformation ( { PFILE_RENAME_INFORMATION rinfo = (PFILE_RENAME_INFORMATION)RxContext->Info.Buffer; + UNICODE_STRING dst = { (USHORT)rinfo->FileNameLength, + (USHORT)rinfo->FileNameLength, rinfo->FileName }; if (rinfo->RootDirectory) { status = STATUS_NOT_SUPPORTED; goto out; } + DbgP("Attempting to rename to '%wZ'\n", dst); nfs41_fcb->Flags = 0; } break; @@ -3697,10 +3700,13 @@ NTSTATUS nfs41_SetFileInformation ( { PFILE_LINK_INFORMATION linfo = (PFILE_LINK_INFORMATION)RxContext->Info.Buffer; + UNICODE_STRING dst = { (USHORT)linfo->FileNameLength, + (USHORT)linfo->FileNameLength, linfo->FileName }; if (linfo->RootDirectory) { status = STATUS_NOT_SUPPORTED; goto out; } + DbgP("Attempting to add link as '%wZ'\n", dst); nfs41_fcb->Flags = 0; } break;