1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-27 21:15:37 +00:00

Procan: print umask, CC, and couple more new infos

This commit is contained in:
Gerhard Rieger 2023-11-11 17:40:52 +01:00
parent 2cfc39e9e5
commit cd5673dbd0
7 changed files with 264 additions and 24 deletions

View file

@ -310,7 +310,7 @@ int sockname(int fd, FILE *outfile, char style) {
default: sprintf(protoname, "proto%d", proto); break;
}
#endif
#else
#else /* ! (defined(SO_PROTOCOL) || defined(SO_PROTOTYPE)) */
if (opttype == SOCK_STREAM) {
strcpy(protoname, "(stream)");
} else if (opttype == SOCK_DGRAM) {
@ -338,7 +338,7 @@ int sockname(int fd, FILE *outfile, char style) {
} else {
strcpy(protoname, "socket");
}
#endif /* defined(SO_PROTOCOL) || defined(SO_PROTOTYPE) */
#endif /* ! (defined(SO_PROTOCOL) || defined(SO_PROTOTYPE)) */
socknamelen = sizeof(sockname);
result = Getsockname(fd, &sockname.soa, &socknamelen);
if (result < 0) {