return not_supported for windows streams
This commit is contained in:
parent
0020104b95
commit
b40f685286
1 changed files with 18 additions and 0 deletions
|
|
@ -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)) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue