diff options
author | dim <dim@FreeBSD.org> | 2011-12-16 15:44:12 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-16 15:44:12 +0000 |
commit | 59dc1f5c983749567b18ae114722b4a41c9f04a2 (patch) | |
tree | c7a72f3b5a46565312b00618c4aba1285bf5007a /libexec/getty/chat.c | |
parent | f8760fc5b21c4099e979782718895766eace5f2c (diff) | |
download | FreeBSD-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/getty/chat.c')
-rw-r--r-- | libexec/getty/chat.c | 2 |
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) { |