In libexec/getty/chat.c, replace && with & in chat_send(). The intent

is to test if the CHATDEBUG_SEND bit is set in the chat_debug global.

MFC after:	1 week
This commit is contained in:
dim 2011-12-16 15:44:12 +00:00
parent f8760fc5b2
commit 59dc1f5c98

View File

@ -388,7 +388,7 @@ chat_send(char const *str)
{
int r = 0;
if (chat_debug && CHATDEBUG_SEND)
if (chat_debug & CHATDEBUG_SEND)
syslog(LOG_DEBUG, "chat_send '%s'", cleanstr(str, strlen(str)));
if (*str) {