diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-11 01:21:20 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-06-11 01:21:20 +0800 |
commit | 0969783e09d01c37db14f3044189331b1f701c3f (patch) | |
tree | 388b4cb5e9653f4e1107e61ca0bf81f6e8e36db3 /daemon/logind | |
parent | 3f4c96467675024faf913e8ff96c3f2527cd387d (diff) | |
download | pttbbs-0969783e09d01c37db14f3044189331b1f701c3f.tar pttbbs-0969783e09d01c37db14f3044189331b1f701c3f.tar.gz pttbbs-0969783e09d01c37db14f3044189331b1f701c3f.tar.bz2 pttbbs-0969783e09d01c37db14f3044189331b1f701c3f.tar.lz pttbbs-0969783e09d01c37db14f3044189331b1f701c3f.tar.xz pttbbs-0969783e09d01c37db14f3044189331b1f701c3f.tar.zst pttbbs-0969783e09d01c37db14f3044189331b1f701c3f.zip |
* after checking visio, we found we rejected non-ascii in password...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4556 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon/logind')
-rw-r--r-- | daemon/logind/logind.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index fa2be4e0..db6d8006 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -252,9 +252,8 @@ login_ctx_handle(login_ctx *ctx, int c) return LOGIN_HANDLE_WAIT; } - // XXX for backward compatibility, - // we'd support non-ASCII characters in PW. - if ( (isascii(c) && !isprint(c)) || + // XXX check VGET_PASSWD = VGET_NOECHO|VGET_ASCIIONLY + if ( (!isascii(c) || !isprint(c)) || l+1 >= sizeof(ctx->passwd)) return LOGIN_HANDLE_BEEP; |