diff options
author | imp <imp@FreeBSD.org> | 1999-08-21 18:15:55 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-08-21 18:15:55 +0000 |
commit | 6d45c2c683e3e1c9e85a4ba66a92407a95d44ee4 (patch) | |
tree | 565ab58005d86b34d8d35392ba0a0298ca16eb55 /libexec | |
parent | ef881e61276732e62d9101fc77f7df8bdb01ce0d (diff) | |
download | FreeBSD-src-6d45c2c683e3e1c9e85a4ba66a92407a95d44ee4.zip FreeBSD-src-6d45c2c683e3e1c9e85a4ba66a92407a95d44ee4.tar.gz |
Remove all flags from devices before we try to assert ownership and
set permissions.
Bug not fixed:
We silently ignore failures of chflags, chmod and chown.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rlogind/rlogind.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index 8740d14..866cbb0 100644 --- a/libexec/rlogind/rlogind.c +++ b/libexec/rlogind/rlogind.c @@ -42,7 +42,7 @@ static const char copyright[] = static const char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93"; #endif static const char rcsid[] = - "$Id: rlogind.c,v 1.22 1999/04/07 08:27:42 brian Exp $"; + "$Id: rlogind.c,v 1.23 1999/04/25 22:23:37 imp Exp $"; #endif /* not lint */ /* @@ -549,9 +549,11 @@ cleanup(signo) p = line + sizeof(_PATH_DEV) - 1; if (logout(p)) logwtmp(p, "", ""); + (void)cflags(line, 0); (void)chmod(line, 0666); (void)chown(line, 0, 0); *p = 'p'; + (void)cflags(line, 0); (void)chmod(line, 0666); (void)chown(line, 0, 0); shutdown(netf, 2); |