aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-13 18:24:04 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-13 18:24:04 +0000
commit426f89600c95b662c06f3f8e0bf6ff66bf473534 (patch)
tree727b23eb4fdb19dea59f107c0ca05777c4d0bc07
parentb5810e9449971dd6d8ad2a130fbe855ca16c0a81 (diff)
Notes
-rw-r--r--libexec/rlogind/rlogind.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index c4db3c7ae6bfc..5831a2515b70b 100644
--- a/libexec/rlogind/rlogind.c
+++ b/libexec/rlogind/rlogind.c
@@ -479,18 +479,7 @@ protocol(int f, int p)
void
cleanup(int signo)
{
- char *p;
- p = line + sizeof(_PATH_DEV) - 1;
- if (logout(p))
- logwtmp(p, "", "");
- (void)chflags(line, 0);
- (void)chmod(line, 0666);
- (void)chown(line, 0, 0);
- *p = 'p';
- (void)chflags(line, 0);
- (void)chmod(line, 0666);
- (void)chown(line, 0, 0);
shutdown(netf, SHUT_RDWR);
exit(1);
}