From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 29 Oct 2007 17:51:09 -0000 Subject: [Cluster-devel] cluster/rgmanager/src/clulib clulog.c msg_socket.c Message-ID: <20071029175109.14417.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL51 Changes by: rmccabe at sourceware.org 2007-10-29 17:51:09 Modified files: rgmanager/src/clulib: clulog.c msg_socket.c Log message: Whoops. Reverting last commit. Meant to commit to -RHEL5, not RHEL51 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/clulog.c.diff?cvsroot=cluster&only_with_tag=RHEL51&r1=1.5.2.1.2.1&r2=1.5.2.1.2.2 http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/msg_socket.c.diff?cvsroot=cluster&only_with_tag=RHEL51&r1=1.1.6.1&r2=1.1.6.2 --- cluster/rgmanager/src/clulib/clulog.c 2007/10/29 17:48:54 1.5.2.1.2.1 +++ cluster/rgmanager/src/clulib/clulog.c 2007/10/29 17:51:08 1.5.2.1.2.2 @@ -20,7 +20,7 @@ /** @file * Library routines for communicating with the logging daemon. * - * $Id: clulog.c,v 1.5.2.1.2.1 2007/10/29 17:48:54 rmccabe Exp $ + * $Id: clulog.c,v 1.5.2.1.2.2 2007/10/29 17:51:08 rmccabe Exp $ * * Author: Jeff Moyer */ @@ -50,7 +50,7 @@ #include -static const char *version __attribute__ ((unused)) = "$Revision: 1.5.2.1.2.1 $"; +static const char *version __attribute__ ((unused)) = "$Revision: 1.5.2.1.2.2 $"; #ifdef DEBUG #include @@ -283,7 +283,7 @@ fprintf(stdout, "%s", printmsg); } - syslog(severity, "%s", logmsg); + syslog(severity, logmsg); pthread_mutex_unlock(&log_mutex); --- cluster/rgmanager/src/clulib/msg_socket.c 2007/10/29 17:48:54 1.1.6.1 +++ cluster/rgmanager/src/clulib/msg_socket.c 2007/10/29 17:51:08 1.1.6.2 @@ -362,7 +362,7 @@ unlink(RGMGR_SOCK); om = umask(077); su.sun_family = PF_LOCAL; - snprintf(su.sun_path, sizeof(su.sun_path), "%s", path); + snprintf(su.sun_path, sizeof(su.sun_path), path); if (bind(sock, &su, sizeof(su)) < 0) { umask(om);