diff options
author | Karel Zak | 2006-12-07 00:25:48 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:48 +0100 |
commit | 364cda4857f7dd5e2b4e2eb7583a2eaa279ef4ed (patch) | |
tree | c60dfad813ca42bf619fe2ac8ce893d2331e508f /login-utils/agetty.c | |
parent | Imported from util-linux-2.11b tarball. (diff) | |
download | kernel-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.c | 6 |
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 */ } |