← Commit list

69dd61ccb

Denys Vlasenko
Denys Vlasenko
2026-09-26
SUCCESS Duration: 246s

Subject

nc: show connect() errors always, not only with -v or -vv

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/nc_bloaty.c+6 -1
@@ -747,6 +747,11 @@ int nc_main(int argc UNUSED_PARAM, char **argv)
int x;
unsigned cnt_l = 0;
unsigned o_lport = 0;
+ //bbox: always Single=1
+ //nc-1.10 allows "nc HOST PORT1 PORT2..."
+ //and "nc HOST PORT1-PORT2..." forms, in which cases
+ //it unsets this flag:
+ const int Single = 1;
INIT_G();
@@ -912,7 +917,7 @@ int nc_main(int argc UNUSED_PARAM, char **argv)
x = 1; /* exit status */
/* if we're scanning at a "one -v" verbosity level, don't print refusals.
Give it another -v if you want to see everything. */
- if (o_verbose > 1 || (o_verbose && errno != ECONNREFUSED))
+ if (Single || (o_verbose > 1) || (errno != ECONNREFUSED))
bb_perror_msg("%s (%s)", argv[0], themdotted);
}
}