From 6d45c2c683e3e1c9e85a4ba66a92407a95d44ee4 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 21 Aug 1999 18:15:55 +0000 Subject: 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. --- libexec/rlogind/rlogind.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libexec/rlogind') 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); -- cgit v1.1