1 --- bsd-finger-0.10/finger/util.c.pts Thu Apr 8 13:49:11 1999
2 +++ bsd-finger-0.10/finger/util.c Thu Apr 8 13:51:49 1999
5 snprintf(tbuf, TBUFLEN, "%s/%s", _PATH_DEV, w->tty);
6 if (stat(tbuf, &sb) < 0) {
12 "finger: %s: %s\n", tbuf, strerror(errno));
18 w->idletime = now < sb.st_atime ? 0 : now - sb.st_atime;
20 --- bsd-finger-0.10/finger/sprint.c.pts Thu Apr 8 14:20:51 1999
21 +++ bsd-finger-0.10/finger/sprint.c Thu Apr 8 14:38:32 1999
23 if (maxlname + maxrname < space-2) { maxlname++; maxrname++; }
25 (void)printf("%-*s %-*s %s\n", maxlname, "Login", maxrname,
26 - "Name", "Tty Idle Login Time Office Office Phone");
27 + "Name", " Tty Idle Login Time Office Office Phone");
28 for (cnt = 0; cnt < entries; ++cnt) {
30 for (w = pn->whead; w != NULL; w = w->next) {
33 (void)putchar(w->info == LOGGEDIN && !w->writable ?
36 - (void)printf("%-2.2s ",
37 - w->tty[0] != 't' || w->tty[1] != 't' ||
38 - w->tty[2] != 'y' ? w->tty : w->tty + 3);
43 + if ((t[0] == 't' && t[1] == 't' && t[2] == 'y')
44 + || (t[0] == 'p' && t[1] == 't' && t[2] == 's'))
46 + (void)printf("%-4.4s ", t);
49 if (w->info == LOGGEDIN) {