← Commit list

e6f3a3b38

Christian Franke
Christian Franke
2024-12-09
SUCCESS Duration: 160s

Subject

chpst: fix error check of nice(2) call

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

—

Build Log

(log yok)

Commit Diff GitHub →

runit/chpst.c+2 -1
@@ -466,7 +466,8 @@ int chpst_main(int argc UNUSED_PARAM, char **argv)
/* nice should be done before xsetuid */
if (opt & OPT_n) {
errno = 0;
- if (nice(xatoi(nicestr)) == -1)
+ nice(xatoi(nicestr));
+ if (errno)
bb_simple_perror_msg_and_die("nice");
}