← Commit list

bbe47d9b9

Denys Vlasenko
Denys Vlasenko
2018-03-11
SUCCESS Duration: 139s

Subject

tcpsvd: fix fallout from opt_complementary removal

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 →

networking/tcpudp.c+8 -3
@@ -270,17 +270,22 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv)
tcp = (applet_name[0] == 't');
+ /* "+": stop on first non-option */
#ifdef SSLSVD
opts = getopt32(argv, "^+"
"c:+C:i:x:u:l:Eb:+hpt:vU:/:Z:K:" /* -c NUM, -b NUM */
+ "\0"
/* 3+ args, -i at most once, -p implies -h, -v is a counter */
- "\0" "-3:i--i:ph:vv",
+ "-3:i--i:ph:vv",
&cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname,
&backlog, &str_t, &ssluser, &root, &cert, &key, &verbose
);
#else
- /* "+": stop on first non-option */
- opts = getopt32(argv, "+c:+C:i:x:u:l:Eb:hpt:v",
+ opts = getopt32(argv, "^+"
+ "c:+C:i:x:u:l:Eb:+hpt:v" /* -c NUM, -b NUM */
+ "\0"
+ /* 3+ args, -i at most once, -p implies -h, -v is a counter */
+ "-3:i--i:ph:vv",
&cmax, &str_C, &instructs, &instructs, &user, &preset_local_hostname,
&backlog, &str_t, &verbose
);