hare

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

commit 5e3f88a25e9785997e0998c9bd5694c999a030eb
parent a3b40e585e28094944e60fb655a5ee537fa055f2
Author: Lorenz (xha) <me@xha.li>
Date:   Sun,  3 Dec 2023 07:03:20 +0100

FreeBSD: truncate files on creation by default

Signed-off-by: Lorenz (xha) <me@xha.li>

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

diff --git a/os/+freebsd/dirfdfs.ha b/os/+freebsd/dirfdfs.ha @@ -190,7 +190,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];