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
This commit is contained in:
parent
5d0ce6a552
commit
50541c922e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228582
@ -388,7 +388,7 @@ chat_send(char const *str)
|
|||||||
{
|
{
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
|
||||||
if (chat_debug && CHATDEBUG_SEND)
|
if (chat_debug & CHATDEBUG_SEND)
|
||||||
syslog(LOG_DEBUG, "chat_send '%s'", cleanstr(str, strlen(str)));
|
syslog(LOG_DEBUG, "chat_send '%s'", cleanstr(str, strlen(str)));
|
||||||
|
|
||||||
if (*str) {
|
if (*str) {
|
||||||
|
Loading…
Reference in New Issue
Block a user