commit 452909b22adef931cc1fbf15b561042364c15201 parent 7996854cd93bcd9adcdb11b0842ba4c7a560b9d0 Author: Naveen Narayanan <zerous@nocebo.space> Date: Sat, 25 Sep 2021 23:02:27 +0200 Print hostname as a title Diffstat:
M | finger.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/finger.c b/finger.c @@ -107,6 +107,7 @@ main(int argc, char **argv) msg += n; } while (len > 0); + printf("[%s]\n", hostname); do { n = recv(sockfd, msg, BUFSZ, 0); if (n == -1) {