aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/telnetd.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 205661ba2..9a60a9a3c 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -1,4 +1,4 @@
1/* $Id: telnetd.c,v 1.7 2003/09/02 02:36:16 bug1 Exp $ 1/* $Id: telnetd.c,v 1.8 2003/09/12 11:27:15 bug1 Exp $
2 * 2 *
3 * Simple telnet server 3 * Simple telnet server
4 * Bjorn Wesen, Axis Communications AB (bjornw@axis.com) 4 * Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
@@ -48,11 +48,11 @@
48 48
49#define BUFSIZE 4000 49#define BUFSIZE 4000
50 50
51static const char *loginpath = 51static const char *loginpath
52#ifdef CONFIG_LOGIN 52#ifdef CONFIG_LOGIN
53"/bin/login"; 53 = "/bin/login";
54#else 54#else
55DEFAULT_SHELL; 55;
56#endif 56#endif
57static const char *issuefile = "/etc/issue.net"; 57static const char *issuefile = "/etc/issue.net";
58 58
@@ -365,6 +365,10 @@ telnetd_main(int argc, char **argv)
365#endif /* CONFIG_FEATURE_TELNETD_INETD */ 365#endif /* CONFIG_FEATURE_TELNETD_INETD */
366 int maxlen, w, r; 366 int maxlen, w, r;
367 367
368#ifndef CONFIG_LOGIN
369 loginpath = DEFAULT_SHELL;
370#endif
371
368 for (;;) { 372 for (;;) {
369 c = getopt( argc, argv, options); 373 c = getopt( argc, argv, options);
370 if (c == EOF) break; 374 if (c == EOF) break;