mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 17:26:09 +03:00
write_*_file
actions default to mode 0600
This commit changes the default filemode for the write actions so that it is only readable and writable by the user running Ghostty.
This commit is contained in:
@ -4242,7 +4242,7 @@ fn writeScreenFile(
|
|||||||
const filename = try std.fmt.bufPrint(&filename_buf, "{s}.txt", .{@tagName(loc)});
|
const filename = try std.fmt.bufPrint(&filename_buf, "{s}.txt", .{@tagName(loc)});
|
||||||
|
|
||||||
// Open our scrollback file
|
// Open our scrollback file
|
||||||
var file = try tmp_dir.dir.createFile(filename, .{});
|
var file = try tmp_dir.dir.createFile(filename, .{ .mode = 0o600 });
|
||||||
defer file.close();
|
defer file.close();
|
||||||
|
|
||||||
// Screen.dumpString writes byte-by-byte, so buffer it
|
// Screen.dumpString writes byte-by-byte, so buffer it
|
||||||
|
Reference in New Issue
Block a user