return not_supported for windows streams

This commit is contained in:
Olga Kornievskaia 2012-03-23 15:31:51 -04:00 committed by unknown
parent 0020104b95
commit b40f685286

View file

@ -3283,6 +3283,19 @@ BOOLEAN isFilenameTooLong(
return FALSE;
}
BOOLEAN isStream(
PUNICODE_STRING name)
{
LONG i;
PWCH p = name->Buffer;
for (i = 0; i < name->Length / 2; i++) {
if (p[0] == L':') return TRUE;
else if (p[0] == L'\0') return FALSE;
p++;
}
return FALSE;
}
BOOLEAN areOpenParamsValid(NT_CREATE_PARAMETERS *params)
{
/* from ms-fsa page 52 */
@ -3409,6 +3422,11 @@ NTSTATUS nfs41_Create(
goto out;
}
if (isStream(SrvOpen->pAlreadyPrefixedName)) {
status = STATUS_NOT_SUPPORTED;
goto out;
}
if ((pVNetRootContext->read_only ||
((params.FileAttributes & FILE_ATTRIBUTE_READONLY) &&
params.Disposition == FILE_OPEN)) &&