summaryrefslogtreecommitdiff
path: root/libexec/getty/subr.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-12-17 19:33:56 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-12-17 19:33:56 +0000
commit2c3b215724f01fd9421173a8aff38c4ebad61df0 (patch)
tree4895cfbfc2c417aecd8318aa9c24d6a6331c23e4 /libexec/getty/subr.c
parent04c9aff5680eafa3b2249b01b56a24169e56715a (diff)
Add traditional handling of all upper-case input
Diffstat (limited to 'libexec/getty/subr.c')
-rw-r--r--libexec/getty/subr.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c
index 14ed2aa2079..4c7c36499a0 100644
--- a/libexec/getty/subr.c
+++ b/libexec/getty/subr.c
@@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: subr.c,v 1.6 1996/12/16 20:04:45 tholo Exp $";
+static char rcsid[] = "$Id: subr.c,v 1.7 1996/12/17 19:33:55 tholo Exp $";
#endif /* not lint */
/*
@@ -264,10 +264,11 @@ setflags(n)
}
} /* else, leave as is */
-#if 0
- if (UC)
- f |= LCASE;
-#endif
+ if (UC) {
+ SET(iflag, IUCLC);
+ SET(oflag, OLCUC);
+ SET(lflag, XCASE);
+ }
if (HC)
SET(cflag, HUPCL);
@@ -388,7 +389,7 @@ register long flags;
SET(oflag, OXTABS);
else
CLR(oflag, OXTABS);
- if (ISSET(flags, LCASE))
+ if (ISSET(flags, LCASE)) {
SET(iflag, IUCLC);
SET(oflag, OLCUC);
SET(lflag, XCASE);