| ... | ... | @@ -1183,7 +1183,7 @@ pub fn realC(out_buffer: *[os.MAX_PATH_BYTES]u8, pathname: [*]const u8) RealErro |
| 1183 | 1183 | const fd = try os.posixOpenC(pathname, posix.O_PATH | posix.O_NONBLOCK | posix.O_CLOEXEC, 0); |
| 1184 | 1184 | defer os.close(fd); |
| 1185 | 1185 | |
| 1186 | | var buf: ["/proc/self/fd/-2147483648".len]u8 = undefined; |
| 1186 | var buf: ["/proc/self/fd/-2147483648\x00".len]u8 = undefined; |
| 1187 | 1187 | const proc_path = fmt.bufPrint(buf[0..], "/proc/self/fd/{}\x00", fd) catch unreachable; |
| 1188 | 1188 | |
| 1189 | 1189 | return os.readLinkC(out_buffer, proc_path.ptr); |