svn commit: r228582 - head/libexec/getty

Dimitry Andric dim at FreeBSD.org
Fri Dec 16 15:44:13 UTC 2011


Author: dim
Date: Fri Dec 16 15:44:12 2011
New Revision: 228582
URL: http://svn.freebsd.org/changeset/base/228582

Log:
  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

Modified:
  head/libexec/getty/chat.c

Modified: head/libexec/getty/chat.c
==============================================================================
--- head/libexec/getty/chat.c	Fri Dec 16 15:38:11 2011	(r228581)
+++ head/libexec/getty/chat.c	Fri Dec 16 15:44:12 2011	(r228582)
@@ -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) {


More information about the svn-src-all mailing list