~sircmpwn/hare-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

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

Details
Message ID
<20230919183754.13035-1-yyp@disroot.org>
DKIM signature
missing
Download raw message
Patch: +1 -1
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] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CVN439YPX9GZ.30S2KVFWAN59B@cirno2>
In-Reply-To
<20230919183754.13035-1-yyp@disroot.org> (view parent)
DKIM signature
missing
Download raw message
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]: 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
Details
Message ID
<CVN54YPSCEX1.14HZPO9DZO284@attila>
In-Reply-To
<20230919183754.13035-1-yyp@disroot.org> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/hare
   d49a7adb..4e3586a1  master -> master
Reply to thread Export thread (mbox)