aboutsummaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/finger/util.c')
-rw-r--r--usr.bin/finger/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c
index a2b6dd3e2dcb..30e996511188 100644
--- a/usr.bin/finger/util.c
+++ b/usr.bin/finger/util.c
@@ -55,7 +55,9 @@ find_idle_and_ttywrite(w)
struct stat sb;
char *strerror();
- (void)sprintf(tbuf, "%s/%s", _PATH_DEV, w->tty);
+ if (!strncmp(w->tty, "uu", 2))
+ return;
+ (void)sprintf(tbuf, "%s%s", _PATH_DEV, w->tty);
if (stat(tbuf, &sb) < 0) {
(void)fprintf(stderr,
"finger: %s: %s\n", tbuf, strerror(errno));