aboutsummaryrefslogtreecommitdiff
path: root/std/fs.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-05-27 14:32:03 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-05-27 14:32:12 -0400
commit13265cf7c785250fde12b22b5e748258d9b98afd (patch)
tree637147173c1e0daf4e39563be5687b0313cd56c0 /std/fs.zig
parent06435535d3e40e4676e98009fad136f98fffbf2e (diff)
downloadzig-13265cf7c785250fde12b22b5e748258d9b98afd.tar.gz
zig-13265cf7c785250fde12b22b5e748258d9b98afd.zip
std.fs: fix error set regressions on linux
Diffstat (limited to 'std/fs.zig')
-rw-r--r--std/fs.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/fs.zig b/std/fs.zig
index c9147e5cc6..6d5874d7c0 100644
--- a/std/fs.zig
+++ b/std/fs.zig
@@ -771,14 +771,14 @@ pub fn selfExePathW(out_buffer: *[os.windows.PATH_MAX_WIDE]u16) SelfExePathError
/// `selfExeDirPath` except allocates the result on the heap.
/// Caller owns returned memory.
-pub fn selfExeDirPathAlloc(allocator: *Allocator) SelfExePathError![]u8 {
+pub fn selfExeDirPathAlloc(allocator: *Allocator) ![]u8 {
var buf: [MAX_PATH_BYTES]u8 = undefined;
return mem.dupe(allocator, u8, try selfExeDirPath(&buf));
}
/// Get the directory path that contains the current executable.
/// Returned value is a slice of out_buffer.
-pub fn selfExeDirPath(out_buffer: *[MAX_PATH_BYTES]u8) ![]const u8 {
+pub fn selfExeDirPath(out_buffer: *[MAX_PATH_BYTES]u8) SelfExePathError![]const u8 {
if (os.linux.is_the_target) {
// If the currently executing binary has been deleted,
// the file path looks something like `/a/b/c/exe (deleted)`