← Commit list

ca54b662e

Denys Vlasenko
Denys Vlasenko
2013-07-28
FAILED Duration: 219s

Subject

nc: use symbolic SHUT_WR instead of literal 1

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.c+1 -1
@@ -261,7 +261,7 @@ int nc_main(int argc, char **argv)
if (nread < 1) {
/* Close outgoing half-connection so they get EOF,
* but leave incoming alone so we can see response */
- shutdown(cfd, 1);
+ shutdown(cfd, SHUT_WR);
FD_CLR(STDIN_FILENO, &readfds);
}
ofd = cfd;