summaryrefslogtreecommitdiffstats
path: root/cpukit/telnetd/check_passwd.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-15 17:37:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-15 17:37:16 +0000
commit1fae7b43d751ca803b12f63d4dfc074f0de8e613 (patch)
tree8dcc632d0a164f8ae4ab0603c7650f66a53fa8d7 /cpukit/telnetd/check_passwd.c
parentRemove. (diff)
downloadrtems-1fae7b43d751ca803b12f63d4dfc074f0de8e613.tar.bz2
2008-10-15 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1331/networking * libmisc/shell/shell.c, telnetd/check_passwd.c, telnetd/telnetd.c, telnetd/telnetd.h: Improve comments and explanation of options to rtems_telnetd_initialize. Add extra newline to login sequence from shell.
Diffstat (limited to 'cpukit/telnetd/check_passwd.c')
-rw-r--r--cpukit/telnetd/check_passwd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/telnetd/check_passwd.c b/cpukit/telnetd/check_passwd.c
index e1df00d2d9..8486058fa0 100644
--- a/cpukit/telnetd/check_passwd.c
+++ b/cpukit/telnetd/check_passwd.c
@@ -78,12 +78,12 @@ static
#endif
int check_passwd(char *peername)
{
-char *pw;
-int rval = -1, tmp, retries;
-struct termios t,told;
-int restore_flags = 0;
-char buf[30], cryptbuf[21];
-char salt[3];
+ char *pw;
+ int rval = -1, tmp, retries;
+ struct termios t,told;
+ int restore_flags = 0;
+ char buf[30], cryptbuf[21];
+ char salt[3];
if ( !(pw=getenv("TELNETD_PASSWD")) || 0 == strlen(pw) )
#ifdef TELNETD_DEFAULT_PASSWD