summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-16 15:44:12 +0000
committerdim <dim@FreeBSD.org>2011-12-16 15:44:12 +0000
commit59dc1f5c983749567b18ae114722b4a41c9f04a2 (patch)
treec7a72f3b5a46565312b00618c4aba1285bf5007a /libexec
parentf8760fc5b21c4099e979782718895766eace5f2c (diff)
downloadFreeBSD-src-59dc1f5c983749567b18ae114722b4a41c9f04a2.zip
FreeBSD-src-59dc1f5c983749567b18ae114722b4a41c9f04a2.tar.gz
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
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/chat.c2
1 files changed, 1 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud