hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit e096d232c631eb6d1b8874637fd87949cdef5939
parent 43ff632b3fe95a18029987e6eaaba697423733a8
Author: Ember Sawady <ecs@d2evs.net>
Date:   Sat,  2 Dec 2023 23:08:23 +0000

OpenBSD: truncate files on creation by default

Signed-off-by: Ember Sawady <ecs@d2evs.net>

Diffstat:
Mos/+openbsd/dirfdfs.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/os/+openbsd/dirfdfs.ha b/os/+openbsd/dirfdfs.ha @@ -134,7 +134,7 @@ fn fs_create_file( ) (io::file | fs::error) = { let oflags: fs::flag = 0; if (len(flags) == 0z) { - oflags |= fs::flag::WRONLY; + oflags |= fs::flag::WRONLY | fs::flag::TRUNC; }; for (let i = 0z; i < len(flags); i += 1z) { oflags |= flags[i];