| author | |
| committer | |
| log | beb9d33d6da42be75faed2975cf16e4acbf62be4 |
| tree | 0b65bcec7d0ecb451ced0149dafae010254ac785 |
| parent | 8c9919ec7b409d11ca73ca5764f44282dec0fe25 |
Added OBJECT_NAME_INVALID handling in faccessatW2 files changed, 4 insertions(+), 0 deletions(-)
lib/std/os.zig+1| ... | ... | @@ -3809,6 +3809,7 @@ pub fn faccessatW(dirfd: fd_t, sub_path_w: [*:0]const u16, mode: u32, flags: u32 |
| 3809 | 3809 | .SUCCESS => return, |
| 3810 | 3810 | .OBJECT_NAME_NOT_FOUND => return error.FileNotFound, |
| 3811 | 3811 | .OBJECT_PATH_NOT_FOUND => return error.FileNotFound, |
| 3812 | .OBJECT_NAME_INVALID => return error.BadPathName, | |
| 3812 | 3813 | .INVALID_PARAMETER => unreachable, |
| 3813 | 3814 | .ACCESS_DENIED => return error.PermissionDenied, |
| 3814 | 3815 | .OBJECT_PATH_SYNTAX_BAD => unreachable, |
src/main.zig+3| ... | ... | @@ -1401,6 +1401,9 @@ fn buildOutputType( |
| 1401 | 1401 | _ = system_libs.orderedRemove(i); |
| 1402 | 1402 | continue; |
| 1403 | 1403 | } |
| 1404 | if (std.fs.path.isAbsolute(lib_name)) { | |
| 1405 | fatal("cannot use absolute path as a system library: {}", .{lib_name}); | |
| 1406 | } | |
| 1404 | 1407 | i += 1; |
| 1405 | 1408 | } |
| 1406 | 1409 | } |