From ed49e4ec0f4c64c0520c53f0c184fbe6798e300d Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 31 Dec 2011 19:26:24 +0000 Subject: [PATCH] MFC r228582: 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. git-svn-id: svn://svn.freebsd.org/base/stable/9@229137 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- 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 8fb8aad7a..4817c977c 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) { -- 2.45.0