[Debian-ha-commits] [pacemaker] 60/69: Fix: crmd: 0 is a valid fd makes coverity happy

Christoph Berg myon at debian.org
Tue Jan 26 09:14:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch debian/master
in repository pacemaker.

commit 2bf9946f2d4f269ba1d17265f49828142a3f5580
Author: Klaus Wenninger <klaus.wenninger at aon.at>
Date:   Thu Jan 14 17:15:45 2016 +0100

    Fix: crmd: 0 is a valid fd
      makes coverity happy
---
 crmd/te_utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crmd/te_utils.c b/crmd/te_utils.c
index 5824272..3a9f491 100644
--- a/crmd/te_utils.c
+++ b/crmd/te_utils.c
@@ -290,7 +290,7 @@ tengine_stonith_notify(stonith_t * st, stonith_event_t * st_event)
 
         /* In case fenced is already trying to shoot it */
         confirm = open("/var/run/cluster/fenced_override", O_NONBLOCK|O_WRONLY);
-        if (confirm > 0) {
+        if (confirm >= 0) {
             int ignore = 0;
             int len = strlen(target_copy);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/pacemaker.git



More information about the Debian-HA-Commits mailing list