| ... | @@ -490,8 +490,7 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 { | ... | @@ -490,8 +490,7 @@ pub fn selfExePath(out_buffer: []u8) SelfExePathError![]u8 { |
| 490 | const resolved_path = std.fmt.bufPrintSentinel(&resolved_path_buf, "{s}/{s}", .{ | 490 | const resolved_path = std.fmt.bufPrintSentinel(&resolved_path_buf, "{s}/{s}", .{ |
| 491 | a_path, | 491 | a_path, |
| 492 | std.os.argv[0], | 492 | std.os.argv[0], |
| 493 | 0, | 493 | }, 0) catch continue; |
| 494 | }) catch continue; | | |
| 495 | | 494 | |
| 496 | var real_path_buf: [max_path_bytes]u8 = undefined; | 495 | var real_path_buf: [max_path_bytes]u8 = undefined; |
| 497 | if (posix.realpathZ(resolved_path, &real_path_buf)) |real_path| { | 496 | if (posix.realpathZ(resolved_path, &real_path_buf)) |real_path| { |