Return idle time of 0, not -1 for users w/o a tty.
authormillert <millert@openbsd.org>
Thu, 13 Feb 1997 06:22:42 +0000 (06:22 +0000)
committermillert <millert@openbsd.org>
Thu, 13 Feb 1997 06:22:42 +0000 (06:22 +0000)
libexec/rpc.rusersd/rusers_proc.c

index eb504f2..78d8a67 100644 (file)
@@ -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 <signal.h>
@@ -171,7 +171,7 @@ getidle(tty, display)
 #ifdef DEBUG
                        printf("%s: %m\n", devname);
 #endif
-                       return (-1);
+                       return (0);
                }
                time(&now);
 #ifdef DEBUG