From 4349e35c2d9b6e76db139ddcf7e77ae939e846bc Mon Sep 17 00:00:00 2001 From: millert Date: Thu, 13 Feb 1997 06:22:42 +0000 Subject: [PATCH] Return idle time of 0, not -1 for users w/o a tty. --- libexec/rpc.rusersd/rusers_proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rpc.rusersd/rusers_proc.c b/libexec/rpc.rusersd/rusers_proc.c index eb504f25192..78d8a67d287 100644 --- a/libexec/rpc.rusersd/rusers_proc.c +++ b/libexec/rpc.rusersd/rusers_proc.c @@ -27,7 +27,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: rusers_proc.c,v 1.3 1996/09/22 08:41:32 tholo Exp $"; +static char rcsid[] = "$Id: rusers_proc.c,v 1.4 1997/02/13 06:22:42 millert Exp $"; #endif /* not lint */ #include @@ -171,7 +171,7 @@ getidle(tty, display) #ifdef DEBUG printf("%s: %m\n", devname); #endif - return (-1); + return (0); } time(&now); #ifdef DEBUG -- 2.20.1