Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/ac Pull up revision 1.9 (requested by mrg):
details: https://anonhg.NetBSD.org/src/rev/aa3a0a543818
branches: netbsd-1-4
changeset: 469577:aa3a0a543818
user: he <he%NetBSD.org@localhost>
date: Tue Oct 12 19:56:08 1999 +0000
description:
Pull up revision 1.9 (requested by mrg):
Fix "dty" vs "tty" problems that have existed since "dty"s were
invented sometime before 1.4 was released.
diffstat:
usr.sbin/ac/ac.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 20806c5cd8f0 -r aa3a0a543818 usr.sbin/ac/ac.c
--- a/usr.sbin/ac/ac.c Tue Oct 12 01:40:39 1999 +0000
+++ b/usr.sbin/ac/ac.c Tue Oct 12 19:56:08 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ac.c,v 1.8 1998/04/02 11:54:03 kleink Exp $ */
+/* $NetBSD: ac.c,v 1.8.2.1 1999/10/12 19:56:08 he Exp $ */
/*
* Copyright (c) 1994 Christopher G. Demetriou.
@@ -17,7 +17,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ac.c,v 1.8 1998/04/02 11:54:03 kleink Exp $");
+__RCSID("$NetBSD: ac.c,v 1.8.2.1 1999/10/12 19:56:08 he Exp $");
#endif
#include <sys/types.h>
@@ -513,7 +513,8 @@
* or this tty is a login tty [eg. a console]
*/
if (*usr.ut_name) {
- if (strncmp(usr.ut_line, "tty", 3) != 0 ||
+ if ((strncmp(usr.ut_line, "tty", 3) != 0 &&
+ strncmp(usr.ut_line, "dty", 3) != 0) ||
strchr("pqrstuvwxyzPQRST", usr.ut_line[3]) == 0 ||
*usr.ut_host != '\0' ||
is_login_tty(usr.ut_line))
Home |
Main Index |
Thread Index |
Old Index