← Commit list

ca0eb211b

Denys Vlasenko
Denys Vlasenko
2026-03-13
SUCCESS Duration: 144s

Subject

runsv: fix open error check (fd < -1 should be fd < 0)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0
gcc -Wp,-MD,applets/.usage.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer      -Iinclude -Iinclude -o applets/usage applets/usage.c

Build Log

(log yok)

Commit Diff GitHub →

runit/runsv.c+1 -1
@@ -210,7 +210,7 @@ static void update_status(struct svdir *s)
/* stat */
fd = open_trunc_or_warn(fstatnew);
- if (fd < -1)
+ if (fd < 0)
return;
{