[PATCH hare] cmd/hare: Do not pass fs::flag::CREATE to os::create
Export this patch
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
hare/patches: SUCCESS in 1m36s
[cmd/hare: Do not pass fs::flag::CREATE to os::create][0] from [Alexey Yerin][1]
[0]: https://lists.sr.ht/~sircmpwn/hare-dev/patches/44876
[1]: mailto:yyp@disroot.org
✓ #1059979 SUCCESS hare/patches/alpine.yml https://builds.sr.ht/~sircmpwn/job/1059979
✓ #1059980 SUCCESS hare/patches/freebsd.yml https://builds.sr.ht/~sircmpwn/job/1059980
Thanks!
To git@git.sr.ht:~sircmpwn/hare
d49a7adb..4e3586a1 master -> master