It already does that by default.
Signed-off-by: Alexey Yerin <yyp@disroot.org>
---
cmd/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
index 26b03acd..6e68baab 100644
--- 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;
--
2.42.0