8211163: UNIX version of Java_java_io_Console_echo does not return a clean boolean
Reviewed-by: shade, alanb
This commit is contained in:
parent
493b31ba91
commit
1ef860cf09
@ -56,7 +56,7 @@ Java_java_io_Console_echo(JNIEnv *env,
|
||||
JNU_ThrowIOExceptionWithLastError(env, "tcgetattr failed");
|
||||
return !on;
|
||||
}
|
||||
old = (tio.c_lflag & ECHO);
|
||||
old = (tio.c_lflag & ECHO) != 0;
|
||||
if (on) {
|
||||
tio.c_lflag |= ECHO;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user