authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-05-27 14:32:03-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-05-27 14:32:12-04:00
log13265cf7c785250fde12b22b5e748258d9b98afd
tree637147173c1e0daf4e39563be5687b0313cd56c0
parent06435535d3e40e4676e98009fad136f98fffbf2e
signature Commit is signed but in an unrecognized format.

std.fs: fix error set regressions on linux


1 files changed, 2 insertions(+), 2 deletions(-)

std/fs.zig+2-2
......@@ -771,14 +771,14 @@ pub fn selfExePathW(out_buffer: *[os.windows.PATH_MAX_WIDE]u16) SelfExePathError
771771
772772/// `selfExeDirPath` except allocates the result on the heap.
773773/// Caller owns returned memory.
774pub fn selfExeDirPathAlloc(allocator: *Allocator) SelfExePathError![]u8 {
774pub fn selfExeDirPathAlloc(allocator: *Allocator) ![]u8 {
775775 var buf: [MAX_PATH_BYTES]u8 = undefined;
776776 return mem.dupe(allocator, u8, try selfExeDirPath(&buf));
777777}
778778
779779/// Get the directory path that contains the current executable.
780780/// Returned value is a slice of out_buffer.
781pub fn selfExeDirPath(out_buffer: *[MAX_PATH_BYTES]u8) ![]const u8 {
781pub fn selfExeDirPath(out_buffer: *[MAX_PATH_BYTES]u8) SelfExePathError![]const u8 {
782782 if (os.linux.is_the_target) {
783783 // If the currently executing binary has been deleted,
784784 // the file path looks something like `/a/b/c/exe (deleted)`