diff options
-rw-r--r-- | mbbsd/mbbsd.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index e68aae26..1ea9b1b8 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1,4 +1,4 @@ -/* $Id: mbbsd.c,v 1.84 2003/06/26 01:28:02 kcwu Exp $ */ +/* $Id: mbbsd.c,v 1.85 2003/06/26 03:16:10 kcwu Exp $ */ #include "bbs.h" #define SOCKET_QLEN 4 @@ -551,7 +551,12 @@ login_query() } else if (uid[0] == '\0' || !dosearchuser(uid)) { outs(err_uid); } else if (strcmp(uid, STR_GUEST)) { - getdata(21, 0, MSG_PASSWD, passbuf, sizeof(passbuf), NOECHO); + if(getenv("SSH_CLIENT")) + getdata(21, 0, MSG_PASSWD, + passbuf, sizeof(passbuf), NOECHO); + else + getdata(21, 0, MSG_PASSWD"(注意: 使用未加密的傳輸方式, 連線內容可能被監聽)", + passbuf, sizeof(passbuf), NOECHO); passbuf[8] = '\0'; if (!checkpasswd(cuser.passwd, passbuf) |