Fix compile error, Vodz, last_path_113
This commit is contained in:
parent
2af30446f1
commit
c2b9186be1
@ -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
|
* Simple telnet server
|
||||||
* Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
|
* Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
|
||||||
@ -48,11 +48,11 @@
|
|||||||
|
|
||||||
#define BUFSIZE 4000
|
#define BUFSIZE 4000
|
||||||
|
|
||||||
static const char *loginpath =
|
static const char *loginpath
|
||||||
#ifdef CONFIG_LOGIN
|
#ifdef CONFIG_LOGIN
|
||||||
"/bin/login";
|
= "/bin/login";
|
||||||
#else
|
#else
|
||||||
DEFAULT_SHELL;
|
;
|
||||||
#endif
|
#endif
|
||||||
static const char *issuefile = "/etc/issue.net";
|
static const char *issuefile = "/etc/issue.net";
|
||||||
|
|
||||||
@ -365,6 +365,10 @@ telnetd_main(int argc, char **argv)
|
|||||||
#endif /* CONFIG_FEATURE_TELNETD_INETD */
|
#endif /* CONFIG_FEATURE_TELNETD_INETD */
|
||||||
int maxlen, w, r;
|
int maxlen, w, r;
|
||||||
|
|
||||||
|
#ifndef CONFIG_LOGIN
|
||||||
|
loginpath = DEFAULT_SHELL;
|
||||||
|
#endif
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
c = getopt( argc, argv, options);
|
c = getopt( argc, argv, options);
|
||||||
if (c == EOF) break;
|
if (c == EOF) break;
|
||||||
|
Loading…
Reference in New Issue
Block a user