cvsdist 2ec9252
--- bsd-finger-0.16/finger/util.c.pts	Tue Sep 28 18:53:58 1999
cvsdist 2ec9252
+++ bsd-finger-0.16/finger/util.c	Tue Dec 21 14:12:56 1999
cvsdist 2ec9252
@@ -71,8 +71,13 @@
cvsdist 2ec9252
 	}
cvsdist 2ec9252
 	snprintf(tbuf, TBUFLEN, "%s/%s", _PATH_DEV, w->tty);
cvsdist 2ec9252
 	if (stat(tbuf, &sb) < 0) {
cvsdist 2ec9252
+	    switch (errno) {
cvsdist 2ec9252
+	    case ENOENT:
cvsdist 2ec9252
+		break;
cvsdist 2ec9252
+	    default:
cvsdist 2ec9252
 		eprintf("finger: %s: %s\n", tbuf, strerror(errno));
cvsdist 2ec9252
 		return;
cvsdist 2ec9252
+	    }
cvsdist 2ec9252
 	}
cvsdist 2ec9252
 	w->idletime = now < sb.st_atime ? 0 : now - sb.st_atime;
cvsdist 2ec9252