summaryrefslogtreecommitdiffstats
path: root/login-utils/agetty.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:48 +0100
committerKarel Zak2006-12-07 00:25:48 +0100
commit364cda4857f7dd5e2b4e2eb7583a2eaa279ef4ed (patch)
treec60dfad813ca42bf619fe2ac8ce893d2331e508f /login-utils/agetty.c
parentImported from util-linux-2.11b tarball. (diff)
downloadkernel-qcow2-util-linux-364cda4857f7dd5e2b4e2eb7583a2eaa279ef4ed.tar.gz
kernel-qcow2-util-linux-364cda4857f7dd5e2b4e2eb7583a2eaa279ef4ed.tar.xz
kernel-qcow2-util-linux-364cda4857f7dd5e2b4e2eb7583a2eaa279ef4ed.zip
Imported from util-linux-2.11f tarball.
Diffstat (limited to 'login-utils/agetty.c')
-rw-r--r--login-utils/agetty.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/login-utils/agetty.c b/login-utils/agetty.c
index 3a30b16ba..c7f0f3d26 100644
--- a/login-utils/agetty.c
+++ b/login-utils/agetty.c
@@ -683,8 +683,12 @@ open_tty(tty, tp, local)
* access for group tty) after the login has succeeded.
*/
+ /*
+ * Let us use 0600 for Linux for the period between getty and login
+ */
+
(void) chown(tty, 0, 0); /* root, sys */
- (void) chmod(tty, 0622); /* crw--w--w- */
+ (void) chmod(tty, 0600); /* 0622: crw--w--w- */
errno = 0; /* ignore above errors */
}