"finger" format suggestion; bug report 4.2BSD/ucb/68
[unix-history] / usr / src / usr.bin / finger / finger.c
index bde0d03..63dcd44 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)finger.c   5.9 (Berkeley) %G%";
+static char sccsid[] = "@(#)finger.c   5.10 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -1042,13 +1042,13 @@ netfinger(name)
                perror("socket");
                return (1);
        }
                perror("socket");
                return (1);
        }
-       printf("[%s]", hp->h_name); fflush(stdout);
+       printf("[%s]\n", hp->h_name);
+       fflush(stdout);
        if (connect(s, (char *)&sin, sizeof (sin)) < 0) {
                perror("connect");
                close(s);
                return (1);
        }
        if (connect(s, (char *)&sin, sizeof (sin)) < 0) {
                perror("connect");
                close(s);
                return (1);
        }
-       putchar('\n');
        if (large) write(s, "/W ", 3);
        write(s, name, strlen(name));
        write(s, "\r\n", 2);
        if (large) write(s, "/W ", 3);
        write(s, name, strlen(name));
        write(s, "\r\n", 2);