projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"finger" format suggestion; bug report 4.2BSD/ucb/68
[unix-history]
/
usr
/
src
/
usr.bin
/
finger
/
finger.c
diff --git
a/usr/src/usr.bin/finger/finger.c
b/usr/src/usr.bin/finger/finger.c
index
bde0d03
..
63dcd44
100644
(file)
--- a/
usr/src/usr.bin/finger/finger.c
+++ b/
usr/src/usr.bin/finger/finger.c
@@
-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);