Skip to content

Commit 1906186

Browse files
committed
[0.4.8] [RDBSS] avoid CORE-13938
Pierre recommended this hack-fix for 0.4.8rls before. Avoids "GetVolumeInformation now fails on NFS volume" I will not retest any RDBSS functionality myself in my tests, maybe some other tester would be kind enough to retest this? Please note that I replaced #if 0 with #if 1 as discussed with Pierre. That's different to the patch in ticket.
1 parent 6b8b704 commit 1906186

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sdk/lib/drivers/rdbsslib/rdbss.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8173,6 +8173,16 @@ RxQueryNameInfo(
81738173
return STATUS_BUFFER_OVERFLOW;
81748174
}
81758175

8176+
#if 1 // CORE-13938, rfb: please note I replaced 0 with 1 here
8177+
if (NodeType(Fcb) == RDBSS_NTC_STORAGE_TYPE_DIRECTORY &&
8178+
RxContext->Info.LengthRemaining >= sizeof(WCHAR))
8179+
{
8180+
NameInfo->FileName[NameInfo->FileNameLength / sizeof(WCHAR)] = L'\\';
8181+
NameInfo->FileNameLength += sizeof(WCHAR);
8182+
RxContext->Info.LengthRemaining -= sizeof(WCHAR);
8183+
}
8184+
#endif
8185+
81768186
/* All correct */
81778187
return STATUS_SUCCESS;
81788188
}

0 commit comments

Comments
 (0)