X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_socket.c;h=c1073513a0efd8efea3ed7cdaaafb48ce54677e6;hb=e9de08be0dab58a48f9a8ce3d250516cf05d6b8e;hp=7f3db5c8bf59b499ebd4aced678498af1719bc81;hpb=05dac63dbc03dc5a64a7f4b50e24eb3766135916;p=tinc diff --git a/src/net_socket.c b/src/net_socket.c index 7f3db5c8..c1073513 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -306,7 +306,7 @@ static void do_outgoing_pipe(connection_t *c, char *command) { int fd[2]; if(socketpair(AF_UNIX, SOCK_STREAM, 0, fd)) { - logger(DEBUG_ALWAYS, LOG_ERR, "Could not create socketpair: %s\n", strerror(errno)); + logger(DEBUG_ALWAYS, LOG_ERR, "Could not create socketpair: %s", strerror(errno)); return; } @@ -339,7 +339,7 @@ static void do_outgoing_pipe(connection_t *c, char *command) { int result = system(command); if(result < 0) - logger(DEBUG_ALWAYS, LOG_ERR, "Could not execute %s: %s\n", command, strerror(errno)); + logger(DEBUG_ALWAYS, LOG_ERR, "Could not execute %s: %s", command, strerror(errno)); else if(result) logger(DEBUG_ALWAYS, LOG_ERR, "%s exited with non-zero status %d", command, result); exit(result);