Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected status 'OBJECT_PATH_INVALID' #22178

Open
nedaras opened this issue Dec 7, 2024 · 2 comments
Open

Unexpected status 'OBJECT_PATH_INVALID' #22178

nedaras opened this issue Dec 7, 2024 · 2 comments
Labels
bug Observed behavior contradicts documented or intended behavior contributor friendly This issue is limited in scope and/or knowledge of Zig internals. standard library This issue involves writing Zig code for the standard library.
Milestone

Comments

@nedaras
Copy link

nedaras commented Dec 7, 2024

Zig Version

master

Steps to Reproduce and Observed Behavior

On windows while opening \\server file, zig return unexpected status.
error.Unexpected NTSTATUS=0xc0000039

Though when opening \\server\... im getting error.NetworkNotFound as expected.

_ = try std.fs.cwd().openFile("\\server\", .{}); // error.Unexpected NTSTATUS=0xc0000039
_ = try std.fs.cwd().openFile("\\server\a", .{}); // error.NetworkNotFound

Expected Behavior

Expected to get back a valid error, like error.BadPathName or error.NetworkNotFound.

@nedaras nedaras added the bug Observed behavior contradicts documented or intended behavior label Dec 7, 2024
@alexrp alexrp added standard library This issue involves writing Zig code for the standard library. contributor friendly This issue is limited in scope and/or knowledge of Zig internals. labels Dec 7, 2024
@nedaras
Copy link
Author

nedaras commented Dec 7, 2024

It seems to happen too, when opening files with invalid paths like: \\\\.

@squeek502
Copy link
Collaborator

Potentially a duplicate of #15607

@alexrp alexrp added this to the 0.15.0 milestone Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior contributor friendly This issue is limited in scope and/or knowledge of Zig internals. standard library This issue involves writing Zig code for the standard library.
Projects
None yet
Development

No branches or pull requests

3 participants