File pacemaker-crmd-valid-fd.patch of Package pacemaker.3577

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

    Fix: crmd: 0 is a valid fd
      makes coverity happy

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);
 
openSUSE Build Service is sponsored by