diff options
Diffstat (limited to 'daemon/logind/logind.c')
-rw-r--r-- | daemon/logind/logind.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index 43bbbc53..6c3357ca 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -178,7 +178,9 @@ login_ctx_handle(login_ctx *ctx, int c) return LOGIN_HANDLE_WAIT; } - if (!isascii(c) || !isprint(c) || + // XXX for backward compatibility, + // we'd support non-ASCII characters in PW. + if ( (isascii(c) && !isprint(c)) || l+1 >= sizeof(ctx->passwd)) return LOGIN_HANDLE_BEEP; |