diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-12 15:27:15 +0400 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-12 15:27:15 +0400 |
commit | c2b9186be16e71a2fc5c4f05346a876a30bfbd16 (patch) | |
tree | 0ab685a8742acea4030488cc7e8c66085a1bb67a /networking/telnetd.c | |
parent | 2af30446f17d57b880bbb224bf28d409416f1c94 (diff) |
Fix compile error, Vodz, last_path_113
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r-- | networking/telnetd.c | 12 |
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 @@ -/* $Id: telnetd.c,v 1.7 2003/09/02 02:36:16 bug1 Exp $ +/* $Id: telnetd.c,v 1.8 2003/09/12 11:27:15 bug1 Exp $ * * Simple telnet server * Bjorn Wesen, Axis Communications AB (bjornw@axis.com) @@ -48,11 +48,11 @@ #define BUFSIZE 4000 -static const char *loginpath = +static const char *loginpath #ifdef CONFIG_LOGIN -"/bin/login"; + = "/bin/login"; #else -DEFAULT_SHELL; +; #endif static const char *issuefile = "/etc/issue.net"; @@ -365,6 +365,10 @@ telnetd_main(int argc, char **argv) #endif /* CONFIG_FEATURE_TELNETD_INETD */ int maxlen, w, r; +#ifndef CONFIG_LOGIN + loginpath = DEFAULT_SHELL; +#endif + for (;;) { c = getopt( argc, argv, options); if (c == EOF) break; |