summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/ftpd/ftpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index 98bc1a7fd45..f319b5500e1 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.59 1999/11/29 20:17:09 millert Exp $ */
+/* $OpenBSD: ftpd.c,v 1.60 1999/12/01 06:33:24 millert Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -265,9 +265,6 @@ main(argc, argv, envp)
tzset(); /* in case no timezone database in ~ftp */
- /* set this here so klogin can use it... */
- (void)snprintf(ttyline, sizeof(ttyline), "ftp%d", getpid());
-
while ((ch = getopt(argc, argv, argstr)) != -1) {
switch (ch) {
case 'A':
@@ -428,6 +425,9 @@ main(argc, argv, envp)
}
}
+ /* set this here so klogin can use it... */
+ (void)snprintf(ttyline, sizeof(ttyline), "ftp%d", getpid());
+
(void) signal(SIGHUP, sigquit);
(void) signal(SIGINT, sigquit);
(void) signal(SIGQUIT, sigquit);