From 59dc1f5c983749567b18ae114722b4a41c9f04a2 Mon Sep 17 00:00:00 2001 From: dim Date: Fri, 16 Dec 2011 15:44:12 +0000 Subject: 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(-) (limited to 'libexec') diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c index 8fb8aad..4817c97 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) { -- cgit v1.1