← Commit list

7cf45ae10

Denys Vlasenko
Denys Vlasenko
2016-06-20
SUCCESS Duration: 237s

Subject

setsid: fix broken -c

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 →

miscutils/setsid.c+1 -1
@@ -29,7 +29,7 @@ int setsid_main(int argc UNUSED_PARAM, char **argv)
unsigned opt;
opt_complementary = "-1"; /* at least one arg */
- opt = getopt32(argv, "c");
+ opt = getopt32(argv, "+c"); /* +: stop on first non-opt */
argv += optind;
/* setsid() is allowed only when we are not a process group leader.