Skip to content

[Windows] std.Dir.deleteFile Failed to delete ntfs reparse point (like unix socket) in windows #5652

@codehz

Description

@codehz

error.Unexpected NTSTATUS=0xc0000279

zig/lib/std/os.zig

Lines 1768 to 1780 in 5229f6e

var rc = w.ntdll.NtCreateFile(
&tmp_handle,
w.SYNCHRONIZE | w.DELETE,
&attr,
&io,
null,
0,
w.FILE_SHARE_READ | w.FILE_SHARE_WRITE | w.FILE_SHARE_DELETE,
w.FILE_OPEN,
create_options_flags,
null,
0,
);

PS: It can be deleted by DeleteFile API directly (also std.os.unlinkZ)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-windowsMicrosoft Windowsstandard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions