From: millert Date: Thu, 13 Feb 1997 06:22:42 +0000 (+0000) Subject: Return idle time of 0, not -1 for users w/o a tty. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4349e35c2d9b6e76db139ddcf7e77ae939e846bc;p=openbsd Return idle time of 0, not -1 for users w/o a tty. --- 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