hare

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

commit 4e3586a1475f418ca7561ab79f160f112767dfc7
parent d49a7adb538824ecc4f0071397a6bc14e5439250
Author: Alexey Yerin <yyp@disroot.org>
Date:   Tue, 19 Sep 2023 21:37:52 +0300

cmd/hare: Do not pass fs::flag::CREATE to os::create

It already does that by default.

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mcmd/hare/build/queue.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/hare/build/queue.ha b/cmd/hare/build/queue.ha @@ -114,7 +114,7 @@ fn run_task(ctx: *context, jobs: *[]job, t: *task) (bool | error) = { path::set(&buf, out)?; let tmp = path::push_ext(&buf, "tmp")?; - let lock = os::create(tmp, 0o644, fs::flag::WRONLY | fs::flag::CREATE)?; + let lock = os::create(tmp, 0o644, fs::flag::WRONLY)?; if (!io::lock(lock, false, io::lockop::EXCLUSIVE)?) { io::close(lock)?; return false;