All of lore.kernel.org
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager/src/clulib clulog.c msg_socket.c
Date: 26 Oct 2007 19:02:43 -0000	[thread overview]
Message-ID: <20071026190243.9351.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	rmccabe at sourceware.org	2007-10-26 19:02:43

Modified files:
	rgmanager/src/clulib: clulog.c msg_socket.c 

Log message:
	rgmanager format string fixes

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/clulog.c.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/clulib/msg_socket.c.diff?cvsroot=cluster&r1=1.1&r2=1.2

--- cluster/rgmanager/src/clulib/clulog.c	2007/04/30 11:22:23	1.7
+++ cluster/rgmanager/src/clulib/clulog.c	2007/10/26 19:02:43	1.8
@@ -20,7 +20,7 @@
 /** @file
  * Library routines for communicating with the logging daemon.
  *
- *  $Id: clulog.c,v 1.7 2007/04/30 11:22:23 fabbione Exp $
+ *  $Id: clulog.c,v 1.8 2007/10/26 19:02:43 rmccabe Exp $
  *
  *  Author: Jeff Moyer <moyer@missioncriticallinux.com>
  */
@@ -49,7 +49,7 @@
 #include <string.h>
 
 
-static const char *version __attribute__ ((unused)) = "$Revision: 1.7 $";
+static const char *version __attribute__ ((unused)) = "$Revision: 1.8 $";
 
 #ifdef DEBUG
 #include <assert.h>
@@ -282,7 +282,7 @@
 		fprintf(stdout, "%s", printmsg);
 	}
 
-	syslog(severity, logmsg);
+	syslog(severity, "%s", logmsg);
 
 	pthread_mutex_unlock(&log_mutex);
 
--- cluster/rgmanager/src/clulib/msg_socket.c	2006/07/11 23:52:41	1.1
+++ cluster/rgmanager/src/clulib/msg_socket.c	2007/10/26 19:02:43	1.2
@@ -362,7 +362,7 @@
 	unlink(RGMGR_SOCK);
 	om = umask(077);
 	su.sun_family = PF_LOCAL;
-	snprintf(su.sun_path, sizeof(su.sun_path), path);
+	snprintf(su.sun_path, sizeof(su.sun_path), "%s", path);
 
 	if (bind(sock, &su, sizeof(su)) < 0) {
 		umask(om);



             reply	other threads:[~2007-10-26 19:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-26 19:02 rmccabe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-10-29 17:48 [Cluster-devel] cluster/rgmanager/src/clulib clulog.c msg_socket.c rmccabe
2007-10-29 17:51 rmccabe
2007-10-29 17:52 rmccabe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071026190243.9351.qmail@sourceware.org \
    --to=rmccabe@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.