From edbb982c91bcbec9cdb023af620b6d7c3eb4597d Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Tue, 30 Dec 2025 20:55:41 +0100 Subject: [PATCH] [Backport] Recursively create xauth file directory if non-existent Signed-off-by: AnErrupTion --- src/auth.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth.zig b/src/auth.zig index 8f7ae5d..defce47 100644 --- a/src/auth.zig +++ b/src/auth.zig @@ -369,7 +369,7 @@ fn createXauthFile(pwd: []const u8, buffer: []u8) ![]const u8 { const xauthority: []u8 = try std.fmt.bufPrint(buffer, "{s}/{s}", .{ trimmed_xauth_dir, xauth_file }); - std.fs.makeDirAbsolute(trimmed_xauth_dir) catch {}; + std.fs.cwd().makePath(trimmed_xauth_dir) catch {}; const file = try std.fs.createFileAbsolute(xauthority, .{}); file.close();