Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2011 19:26:24 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229137 - stable/9/libexec/getty
Message-ID:  <201112311926.pBVJQOOo079023@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 31 19:26:24 2011
New Revision: 229137
URL: http://svn.freebsd.org/changeset/base/229137

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

Modified:
  stable/9/libexec/getty/chat.c
Directory Properties:
  stable/9/libexec/getty/   (props changed)

Modified: stable/9/libexec/getty/chat.c
==============================================================================
--- stable/9/libexec/getty/chat.c	Sat Dec 31 19:19:19 2011	(r229136)
+++ stable/9/libexec/getty/chat.c	Sat Dec 31 19:26:24 2011	(r229137)
@@ -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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112311926.pBVJQOOo079023>