s/open/create/
This commit is contained in:
parent
8a889eff57
commit
9ab254e09b
|
@ -590,7 +590,7 @@ fhandler_base::open (int flags, mode_t mode)
|
||||||
create_disposition, create_options, NULL, 0);
|
create_disposition, create_options, NULL, 0);
|
||||||
if (!NT_SUCCESS (status))
|
if (!NT_SUCCESS (status))
|
||||||
{
|
{
|
||||||
/* Trying to open a directory should return EISDIR, not ENOENT. */
|
/* Trying to create a directory should return EISDIR, not ENOENT. */
|
||||||
PUNICODE_STRING upath = pc.get_nt_native_path ();
|
PUNICODE_STRING upath = pc.get_nt_native_path ();
|
||||||
if (status == STATUS_OBJECT_NAME_INVALID
|
if (status == STATUS_OBJECT_NAME_INVALID
|
||||||
&& upath->Buffer[upath->Length / sizeof (WCHAR) - 1] == '\\')
|
&& upath->Buffer[upath->Length / sizeof (WCHAR) - 1] == '\\')
|
||||||
|
|
Loading…
Reference in New Issue