mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 07:09:13 +02:00
[Backport] Recursively create xauth file directory if non-existent
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
80fb07daa8
commit
edbb982c91
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue