From 50541c922e709424cff5d18ccb445d3b6bb3009e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 16 Dec 2011 15:44:12 +0000 Subject: [PATCH] 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 --- libexec/getty/chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c index 8fb8aad7a56d..4817c977ce1b 100644 --- a/libexec/getty/chat.c +++ b/libexec/getty/chat.c @@ -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) {