| ... | @@ -3295,7 +3295,10 @@ pub fn realpathZ(pathname: [*:0]const u8, out_buffer: *[MAX_PATH_BYTES]u8) RealP | ... | @@ -3295,7 +3295,10 @@ pub fn realpathZ(pathname: [*:0]const u8, out_buffer: *[MAX_PATH_BYTES]u8) RealP |
| 3295 | return realpathW(&pathname_w, out_buffer); | 3295 | return realpathW(&pathname_w, out_buffer); |
| 3296 | } | 3296 | } |
| 3297 | if (builtin.os.tag == .linux and !builtin.link_libc) { | 3297 | if (builtin.os.tag == .linux and !builtin.link_libc) { |
| 3298 | const fd = try openZ(pathname, linux.O_PATH | linux.O_NONBLOCK | linux.O_CLOEXEC, 0); | 3298 | const fd = openZ(pathname, linux.O_PATH | linux.O_NONBLOCK | linux.O_CLOEXEC, 0) catch |err| switch (err) { |
| | 3299 | error.FileLocksNotSupported => unreachable, |
| | 3300 | else => |e| return e, |
| | 3301 | }; |
| 3299 | defer close(fd); | 3302 | defer close(fd); |
| 3300 | | 3303 | |
| 3301 | var procfs_buf: ["/proc/self/fd/-2147483648".len:0]u8 = undefined; | 3304 | var procfs_buf: ["/proc/self/fd/-2147483648".len:0]u8 = undefined; |