Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fence-agents for openSUSE:Factory 
checked in at 2025-12-25 19:57:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fence-agents (Old)
 and      /work/SRC/openSUSE:Factory/.fence-agents.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fence-agents"

Thu Dec 25 19:57:42 2025 rev:91 rq:1324379 
version:4.16.0+git.1765293331.d30fb54b

Changes:
--------
--- /work/SRC/openSUSE:Factory/fence-agents/fence-agents.changes        
2025-12-10 15:31:15.128078445 +0100
+++ /work/SRC/openSUSE:Factory/.fence-agents.new.1928/fence-agents.changes      
2025-12-25 19:57:55.751934437 +0100
@@ -1,0 +2,10 @@
+Wed Dec 17 17:44:59 UTC 2025 - Peter Varkoly <[email protected]>
+
+- Update to version 4.16.0+git.1765293331.d30fb54b:
+  * fence_ibm_vpc: fix missing statuses
+  * Remove discards const qualifier warnings
+  * build: add support for rust coreutils
+  * fence_virt: print error messages to sderr
+  * fence_virt: cleanup whitespace at end of lines
+
+-------------------------------------------------------------------

Old:
----
  fence-agents-4.16.0+git.1763372689.07285aac.tar.xz

New:
----
  fence-agents-4.16.0+git.1765293331.d30fb54b.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fence-agents.spec ++++++
--- /var/tmp/diff_new_pack.mZJTic/_old  2025-12-25 19:57:57.872020462 +0100
+++ /var/tmp/diff_new_pack.mZJTic/_new  2025-12-25 19:57:57.888021112 +0100
@@ -19,7 +19,7 @@
 %define agent_list aliyun alom apc apc_snmp aws azure_arm bladecenter brocade 
cisco_mds cisco_ucs drac5 dummy eaton_snmp eaton_ssh emerson eps evacuate gce 
hds_cb hpblade ibmblade ibmz ibm_powervs ibm_vpc ifmib ilo ilo_moonshot ilo_mp 
ilo_ssh intelmodular ipdu ipmilan ironic kdump lpar mpath netio nutanix_ahv 
powerman pve raritan rcd_serial redfish rsa rsb sanbox2 sbd scsi vbox virsh 
vmware vmware_rest wti zvm
 Name:           fence-agents
 Summary:        Set of unified programs capable of host isolation ("fencing")
-Version:        4.16.0+git.1763372689.07285aac
+Version:        4.16.0+git.1765293331.d30fb54b
 Release:        0
 License:        GPL-2.0-or-later AND LGPL-2.0-or-later
 Group:          Productivity/Clustering/HA

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.mZJTic/_old  2025-12-25 19:57:58.172032636 +0100
+++ /var/tmp/diff_new_pack.mZJTic/_new  2025-12-25 19:57:58.224034746 +0100
@@ -3,6 +3,6 @@
             <param 
name="url">git://github.com/ClusterLabs/fence-agents.git</param>
           <param 
name="changesrevision">8d746be92f191aa289f13a3703031c122a5e6cf3</param></service><service
 name="tar_scm">
                 <param 
name="url">https://github.com/ClusterLabs/fence-agents</param>
-              <param 
name="changesrevision">07285aacbc2194c6a2dfc7dd62dda9a3308bc243</param></service></servicedata>
+              <param 
name="changesrevision">d30fb54bb7dce92af8c67ca01b3e410552c4183b</param></service></servicedata>
 (No newline at EOF)
 

++++++ fence-agents-4.16.0+git.1763372689.07285aac.tar.xz -> 
fence-agents-4.16.0+git.1765293331.d30fb54b.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/ibm_vpc/fence_ibm_vpc.py 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/ibm_vpc/fence_ibm_vpc.py
--- 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/ibm_vpc/fence_ibm_vpc.py 
    2025-11-17 10:44:49.000000000 +0100
+++ 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/ibm_vpc/fence_ibm_vpc.py 
    2025-12-09 16:15:31.000000000 +0100
@@ -16,6 +16,8 @@
         "stopping": "unknown",
         "restarting": "unknown",
         "pending": "unknown",
+     "deleting": "unknown",
+     "failed": "unknown",
 }
 
 def get_list(conn, options):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/main.c 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/main.c
--- old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/main.c   
2025-11-17 10:44:49.000000000 +0100
+++ new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/main.c   
2025-12-09 16:15:31.000000000 +0100
@@ -13,7 +13,7 @@
 
   You should have received a copy of the GNU General Public License
   along with this program; see the file COPYING.  If not, write to the
-  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge, 
+  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge,
   MA 02139, USA.
 */
 /*
@@ -95,16 +95,16 @@
 
        args_finalize(&args);
        dset(args.debug);
-       
-       if (args.debug > 0) 
+
+       if (args.debug > 0)
                args_print(&args);
 
        /* Additional validation here */
        if (!args.domain && (args.op != FENCE_DEVSTATUS &&
                             args.op != FENCE_HOSTLIST &&
                             args.op != FENCE_METADATA)) {
-               printf("No domain specified!\n");
-               syslog(LOG_NOTICE, "No domain specified");
+               fprintf(stderr, "No domain specified!\n");
+               syslog(LOG_ERR, "No domain specified");
                args.flags |= F_ERR;
        }
 
@@ -167,28 +167,28 @@
                break;
        case RESP_FAIL:
                if (args.domain) {
-                       syslog(LOG_NOTICE, "Fence operation failed for domain 
\"%s\"",
+                       syslog(LOG_ERR, "Fence operation failed for domain 
\"%s\"",
                                args.domain);
                } else
-                       syslog(LOG_NOTICE, "Fence operation failed");
-               printf("Operation failed\n");
+                       syslog(LOG_ERR, "Fence operation failed");
+               fprintf(stderr, "Operation failed\n");
                break;
        case RESP_PERM:
                if (args.domain) {
-                       syslog(LOG_NOTICE,
+                       syslog(LOG_ERR,
                                "Permission denied for Fence operation for 
domain \"%s\"",
                                args.domain);
                } else
-                       syslog(LOG_NOTICE, "Permission denied for fence 
operation");
-               printf("Permission denied\n");
+                       syslog(LOG_ERR, "Permission denied for fence 
operation");
+               fprintf(stderr, "Permission denied\n");
                break;
        default:
                if (args.domain) {
-                       syslog(LOG_NOTICE, "Unknown response (%d) for domain 
\"%s\"",
+                       syslog(LOG_ERR, "Unknown response (%d) for domain 
\"%s\"",
                                ret, args.domain);
                } else
-                       syslog(LOG_NOTICE, "Unknown response (%d)", ret);
-               printf("Unknown response (%d)\n", ret);
+                       syslog(LOG_ERR, "Unknown response (%d)", ret);
+               fprintf(stderr, "Unknown response (%d)\n", ret);
                break;
        }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/mcast.c 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/mcast.c
--- old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/mcast.c  
2025-11-17 10:44:49.000000000 +0100
+++ new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/mcast.c  
2025-12-09 16:15:31.000000000 +0100
@@ -102,13 +102,13 @@
 
                ret = _select_retry(fd+1, &rfds, NULL, NULL, &tv);
                if (ret == 0) {
-                       printf("Timed out!\n");
+                       fprintf(stderr, "Timed out!\n");
                        break;
                }
 
                ret = _read_retry(fd, &hinfo, sizeof(hinfo), &tv);
                if (ret < sizeof(hinfo)) {
-                       printf("Bad read!\n");
+                       fprintf(stderr, "Bad read!\n");
                        break;
                }
 
@@ -134,14 +134,14 @@
        dbg_printf(3, "Issuing TCP challenge\n");
        if (sock_challenge(fd, auth, key, key_len, timeout) <= 0) {
                /* Challenge failed */
-               printf("Invalid response to challenge\n");
+               fprintf(stderr, "Invalid response to challenge\n");
                return 1;
        }
 
        /* Now they'll send us one, so we need to respond here */
        dbg_printf(3, "Responding to TCP challenge\n");
        if (sock_response(fd, auth, key, key_len, timeout) <= 0) {
-               printf("Invalid response to challenge\n");
+               fprintf(stderr, "Invalid response to challenge\n");
                return 1;
        }
 
@@ -277,14 +277,14 @@
        /* Initialize NSS; required to do hashing, as silly as that
           sounds... */
        if (NSS_NoDB_Init(NULL) != SECSuccess) {
-               printf("Could not initialize NSS\n");
+               fprintf(stderr, "Could not initialize NSS\n");
                return 1;
        }
 
        if (args->net.auth != AUTH_NONE || args->net.hash != HASH_NONE) {
                key_len = read_key_file(args->net.key_file, key, sizeof(key));
                if (key_len < 0) {
-                       printf("Could not read %s; trying without "
+                       fprintf(stderr, "Could not read %s; trying without "
                               "authentication\n", args->net.key_file);
                        args->net.auth = AUTH_NONE;
                        args->net.hash = HASH_NONE;
@@ -294,7 +294,7 @@
 
        /* Do the real work */
        if (ip_build_list(&ipl) < 0) {
-               printf("Error building IP address list\n");
+               fprintf(stderr, "Error building IP address list\n");
                return 1;
        }
 
@@ -320,7 +320,7 @@
                }
 
                if (lfd < 0) {
-                       printf("Failed to listen: %s\n", strerror(errno));
+                       fprintf(stderr, "Failed to listen: %s\n", 
strerror(errno));
                        usleep(args->retr_time * 100000);
                        if (--attempts > 0)
                                goto listen_loop;
@@ -366,10 +366,10 @@
 
        if (fd < 0) {
                if (attempts <= 0) {
-                       printf("Timed out waiting for response\n");
+                       fprintf(stderr, "Timed out waiting for response\n");
                        return 1;
                }
-               printf("Operation failed: %s\n", strerror(errno));
+               fprintf(stderr, "Operation failed: %s\n", strerror(errno));
                return -1;
        }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/options.c 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/options.c
--- 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/options.c    
    2025-11-17 10:44:49.000000000 +0100
+++ 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/options.c    
    2025-12-09 16:15:31.000000000 +0100
@@ -13,7 +13,7 @@
 
   You should have received a copy of the GNU General Public License
   along with this program; see the file COPYING.  If not, write to the
-  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge, 
+  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge,
   MA 02139, USA.
 */
 
@@ -83,7 +83,7 @@
        } else if (!strcasecmp(value, "auto")) {
                args->net.family = 0;
        } else {
-               printf("Unsupported family: '%s'\n", value);
+               fprintf(stderr, "Unsupported family: '%s'\n", value);
                args->flags |= F_ERR;
        }
 }
@@ -134,7 +134,7 @@
 
        ret = strtol(value, &p, 0);
        if (ret <= 0 || ret >= 65536 || *p != '\0') {
-               printf("Invalid port: '%s'\n", value);
+               fprintf(stderr, "Invalid port: '%s'\n", value);
                args->flags |= F_ERR;
        } else
                args->net.port = ret;
@@ -153,7 +153,7 @@
 
        ret = strtoul(value, &p, 0);
        if (!p || *p != '\0' || ret < 2 || ret >= 0xffffffff) {
-               printf("Invalid CID: '%s'\n", value);
+               fprintf(stderr, "Invalid CID: '%s'\n", value);
                args->flags |= F_ERR;
        } else
                args->net.cid = ret;
@@ -169,7 +169,7 @@
 
        ret = if_nametoindex(value);
        if (ret <= 0) {
-               printf("Invalid interface: %s: %s\n", value, strerror(errno));
+               fprintf(stderr, "Invalid interface: %s: %s\n", value, 
strerror(errno));
                args->net.ifindex = 0;
        }
 
@@ -188,7 +188,7 @@
 
        ret = strtol(value, &p, 0);
        if (ret <= 0 || *p != '\0') {
-               printf("Invalid retransmit time: '%s'\n", value);
+               fprintf(stderr, "Invalid retransmit time: '%s'\n", value);
                args->flags |= F_ERR;
        } else
                args->retr_time = ret;
@@ -209,7 +209,7 @@
        } else if (!strcasecmp(value, "sha512")) {
                args->net.hash = HASH_SHA512;
        } else {
-               printf("Unsupported hash: %s\n", value);
+               fprintf(stderr, "Unsupported hash: %s\n", value);
                args->flags |= F_ERR;
        }
 }
@@ -230,7 +230,7 @@
        } else if (!strcasecmp(value, "sha512")) {
                args->net.auth = AUTH_SHA512;
        } else {
-               printf("Unsupported auth type: %s\n", value);
+               fprintf(stderr, "Unsupported auth type: %s\n", value);
                args->flags |= F_ERR;
        }
 }
@@ -248,7 +248,7 @@
        args->net.key_file = strdup(value);
 
        if (stat(value, &st) == -1) {
-               printf("Invalid key file: '%s' (%s)\n", value,
+               fprintf(stderr, "Invalid key file: '%s' (%s)\n", value,
                       strerror(errno));
                args->flags |= F_ERR;
        }
@@ -280,7 +280,7 @@
        } else if (!strcasecmp(value, "validate-all")) {
                args->op = FENCE_VALIDATEALL;
        } else {
-               printf("Unsupported operation: %s\n", value);
+               fprintf(stderr, "Unsupported operation: %s\n", value);
                args->flags |= F_ERR;
        }
 }
@@ -310,7 +310,7 @@
 assign_domain(fence_virt_args_t *args, struct arg_info *arg, char *value)
 {
        if (args->domain) {
-               printf("Domain/UUID may not be specified more than once\n");
+               fprintf(stderr, "Domain/UUID may not be specified more than 
once\n");
                args->flags |= F_ERR;
                return;
        }
@@ -321,13 +321,13 @@
        args->domain = strdup(value);
 
        if (strlen(value) <= 0) {
-               printf("Invalid domain name\n");
+               fprintf(stderr, "Invalid domain name\n");
                args->flags |= F_ERR;
        }
 
        if (strlen(value) >= MAX_DOMAINNAME_LENGTH) {
                errno = ENAMETOOLONG;
-               printf("Invalid domain name: '%s' (%s)\n",
+               fprintf(stderr, "Invalid domain name: '%s' (%s)\n",
                       value, strerror(errno));
                args->flags |= F_ERR;
        }
@@ -359,7 +359,7 @@
 
        ret = strtol(value, &p, 0);
        if (ret <= 0 || *p != '\0') {
-               printf("Invalid timeout: '%s'\n", value);
+               fprintf(stderr, "Invalid timeout: '%s'\n", value);
                args->flags |= F_ERR;
        } else
                args->timeout = ret;
@@ -376,7 +376,7 @@
 
        ret = strtol(value, &p, 0);
        if (ret < 0 || *p != '\0') {
-               printf("Invalid delay: '%s'\n", value);
+               fprintf(stderr, "Invalid delay: '%s'\n", value);
                args->flags |= F_ERR;
        } else
                args->delay = ret;
@@ -425,12 +425,12 @@
 
        { '\xff', NULL, "self",
          NULL, 0, 0, "string", NULL,
-         "Not user serviceable", 
+         "Not user serviceable",
          NULL },
 
        { '\xff', NULL, "nodename",
          NULL, 0, 0, "string", NULL,
-         "Not user serviceable", 
+         "Not user serviceable",
          NULL },
 
        { 'd', "-d", "debug",
@@ -473,7 +473,7 @@
          "Network interface name to listen on",
          assign_interface },
 
-       { 'r', "-r <retrans>", "retrans", 
+       { 'r', "-r <retrans>", "retrans",
          NULL, 0, 0, "string", "20",
          "Multicast retransmit time (in 1/10sec; default=20)",
          assign_retrans },
@@ -489,7 +489,7 @@
          assign_auth },
 
        { 'k', "-k <file>", "key_file",
-         NULL, 0, 0, "string", DEFAULT_KEY_FILE, 
+         NULL, 0, 0, "string", DEFAULT_KEY_FILE,
          "Shared key file (default=" DEFAULT_KEY_FILE ")",
          assign_key },
 
@@ -541,12 +541,12 @@
 
        { 'h', "-h", NULL,
          NULL, 0, 0, "boolean", "0",
-         "Help",
+         "Help",
          assign_help },
 
        { '?', "-?", NULL,
          NULL, 0, 0, "boolean", "0",
-         "Help (alternate)", 
+         "Help (alternate)",
          assign_help },
 
        { 'w', "-w <delay>", "delay",
@@ -556,7 +556,7 @@
 
        { 'V', "-V", NULL,
          NULL, 0, 0, "boolean", "0",
-         "Display version and exit", 
+         "Display version and exit",
          assign_version },
 
        /* Terminator */
@@ -819,16 +819,16 @@
 
        printf("</parameters>\n");
        printf("<actions>\n");
-       printf("\t<action name=\"null\" />\n"); 
+       printf("\t<action name=\"null\" />\n");
        printf("\t<action name=\"on\" />\n");
        printf("\t<action name=\"off\" />\n");
        printf("\t<action name=\"reboot\" />\n");
-       printf("\t<action name=\"metadata\" />\n");     
-       printf("\t<action name=\"status\" />\n");       
-       printf("\t<action name=\"monitor\" />\n");      
-       printf("\t<action name=\"list\" />\n"); 
-       printf("\t<action name=\"list-status\" />\n");  
-       printf("\t<action name=\"validate-all\" />\n"); 
+       printf("\t<action name=\"metadata\" />\n");
+       printf("\t<action name=\"status\" />\n");
+       printf("\t<action name=\"monitor\" />\n");
+       printf("\t<action name=\"list\" />\n");
+       printf("\t<action name=\"list-status\" />\n");
+       printf("\t<action name=\"validate-all\" />\n");
        printf("</actions>\n");
        printf("</resource-agent>\n");
 }
@@ -846,7 +846,7 @@
 {
        char *p;
        int x;
-       
+
        /* Remove leading whitespace. */
        p = line;
        for (x = 0; x < linelen; x++) {
@@ -887,7 +887,7 @@
 
 /**
   Parse args from stdin and assign to the specified args structure.
-  
+
   @param optstr                Command line option string in getopt(3) format
   @param args          Args structure to fill in.
  */
@@ -913,7 +913,7 @@
                }
 
                arg = find_arg_by_string(name);
-               if (!arg || (arg->opt != '\xff' && 
+               if (!arg || (arg->opt != '\xff' &&
                             arg->opt != SCHEMA_COMPAT &&
                             !strchr(optstr, arg->opt))) {
                        fprintf(stderr,
@@ -930,7 +930,7 @@
 
 /**
   Parse args from stdin and assign to the specified args structure.
-  
+
   @param optstr                Command line option string in getopt(3) format
   @param args          Args structure to fill in.
  */
@@ -979,7 +979,7 @@
                args->net.addr = addr;
 
        if (!args->net.addr) {
-               printf("No multicast address available\n");
+               fprintf(stderr, "No multicast address available\n");
                args->flags |= F_ERR;
        }
 
@@ -994,7 +994,7 @@
        if (strchr(args->net.addr, '.'))
                args->net.family = PF_INET;
        if (!args->net.family) {
-               printf("Could not determine address family\n");
+               fprintf(stderr, "Could not determine address family\n");
                args->flags |= F_ERR;
        }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/serial.c 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/serial.c
--- old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/serial.c 
2025-11-17 10:44:49.000000000 +0100
+++ new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/serial.c 
2025-12-09 16:15:31.000000000 +0100
@@ -1,11 +1,11 @@
-/* 
+/*
  * Copyright (C) 2002-2003, 2009 Red Hat, Inc.
  *
  * License: GPLv2+
  *
  * Written by Lon Hohberger <[email protected]>
  *
- * Serial client for fence_virt (incomplete, but 
+ * Serial client for fence_virt (incomplete, but
  * a good start)
  *
  * Based on:
@@ -100,7 +100,7 @@
                        sb_f = CSTOPB;
                        break;
                default:
-                       printf("Fail: %c\n", param[x]);
+                       fprintf(stderr, "Fail: %c\n", param[x]);
                        errno = EINVAL;
                        return -1;
                }
@@ -147,7 +147,7 @@
                perror("tcsetattr");
                close(fd);
                return -1;
-       }                             
+       }
 
        (void) tcflush(fd, TCIOFLUSH);
 
@@ -171,7 +171,7 @@
                perror("ioctl2");
                return;
        }
-       
+
        usleep(delay);
 
        bits |= (TIOCM_DTR | TIOCM_CTS | TIOCM_RTS | TIOCM_DSR | TIOCM_CD);
@@ -233,7 +233,7 @@
                        *flags = 0;
                        flags++;
                }
-       
+
                fd = open_port(args->serial.device, speed, flags);
                if (fd == -1) {
                        perror("open_port");
@@ -251,7 +251,7 @@
 
                if (fd < 0) {
                        perror("vmchannel connect");
-                       printf("Failed to connect to %s:%d\n", 
args->serial.address,
+                       fprintf(stderr, "Failed to connect to %s:%d\n", 
args->serial.address,
                               args->net.port);
                        return -1;
                }
@@ -264,9 +264,9 @@
        gettimeofday(&tv, NULL);
        req.seqno = (int)tv.tv_usec;
 
-       if (args->domain) 
+       if (args->domain)
                strncpy((char *)req.domain, args->domain, sizeof(req.domain) - 
1);
-       
+
        tv.tv_sec = 3;
        tv.tv_usec = 0;
        swab_serial_req_t(&req);
@@ -276,7 +276,7 @@
                        close(fd);
                        return ret;
                }
-               printf("Failed to send request\n");
+               fprintf(stderr, "Failed to send request\n");
        }
 
        tv.tv_sec = args->timeout;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/tcp.c 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/tcp.c
--- old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/tcp.c    
2025-11-17 10:44:49.000000000 +0100
+++ new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/tcp.c    
2025-12-09 16:15:31.000000000 +0100
@@ -13,7 +13,7 @@
 
   You should have received a copy of the GNU General Public License
   along with this program; see the file COPYING.  If not, write to the
-  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge, 
+  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge,
   MA 02139, USA.
 */
 
@@ -53,14 +53,14 @@
        dbg_printf(3, "Issuing TCP challenge\n");
        if (sock_challenge(fd, auth, key, key_len, timeout) <= 0) {
                /* Challenge failed */
-               printf("Invalid response to challenge\n");
+               fprintf(stderr, "Invalid response to challenge\n");
                return 1;
        }
 
        /* Now they'll send us one, so we need to respond here */
        dbg_printf(3, "Responding to TCP challenge\n");
        if (sock_response(fd, auth, key, key_len, timeout) <= 0) {
-               printf("Invalid response to challenge\n");
+               fprintf(stderr, "Invalid response to challenge\n");
                return 1;
        }
 
@@ -102,14 +102,14 @@
        /* Initialize NSS; required to do hashing, as silly as that
           sounds... */
        if (NSS_NoDB_Init(NULL) != SECSuccess) {
-               printf("Could not initialize NSS\n");
+               fprintf(stderr, "Could not initialize NSS\n");
                return 1;
        }
 
        if (args->net.auth != AUTH_NONE || args->net.hash != HASH_NONE) {
                key_len = read_key_file(args->net.key_file, key, sizeof(key));
                if (key_len < 0) {
-                       printf("Could not read %s; trying without "
+                       fprintf(stderr, "Could not read %s; trying without "
                               "authentication\n", args->net.key_file);
                        args->net.auth = AUTH_NONE;
                        args->net.hash = HASH_NONE;
@@ -138,7 +138,7 @@
        }
 
        if (fd < 0) {
-               printf("Unable to connect to fence_virtd host %s:%d %s\n",
+               fprintf(stderr, "Unable to connect to fence_virtd host %s:%d 
%s\n",
                        args->net.ipaddr, args->net.port, strerror(errno));
                return 1;
        }
@@ -158,7 +158,7 @@
                        ret = tcp_exchange(fd, args->net.auth, key, key_len,
                                            args->timeout);
                        break;
-               /* case AUTH_X509: 
+               /* case AUTH_X509:
                        return ssl_exchange(...); */
                default:
                        dbg_printf(3, "Unknown auth type: %d\n", 
args->net.auth);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/vsock.c 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/vsock.c
--- old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/client/vsock.c  
2025-11-17 10:44:49.000000000 +0100
+++ new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/client/vsock.c  
2025-12-09 16:15:31.000000000 +0100
@@ -13,7 +13,7 @@
 
   You should have received a copy of the GNU General Public License
   along with this program; see the file COPYING.  If not, write to the
-  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge, 
+  Free Software Foundation, Inc.,  675 Mass Ave, Cambridge,
   MA 02139, USA.
 */
 
@@ -54,14 +54,14 @@
        dbg_printf(3, "Issuing challenge\n");
        if (sock_challenge(fd, auth, key, key_len, timeout) <= 0) {
                /* Challenge failed */
-               printf("Invalid response to challenge\n");
+               fprintf(stderr, "Invalid response to challenge\n");
                return 1;
        }
 
        /* Now they'll send us one, so we need to respond here */
        dbg_printf(3, "Responding to challenge\n");
        if (sock_response(fd, auth, key, key_len, timeout) <= 0) {
-               printf("Invalid response to challenge\n");
+               fprintf(stderr, "Invalid response to challenge\n");
                return 1;
        }
 
@@ -102,14 +102,14 @@
        /* Initialize NSS; required to do hashing, as silly as that
           sounds... */
        if (NSS_NoDB_Init(NULL) != SECSuccess) {
-               printf("Could not initialize NSS\n");
+               fprintf(stderr, "Could not initialize NSS\n");
                return 1;
        }
 
        if (args->net.auth != AUTH_NONE || args->net.hash != HASH_NONE) {
                key_len = read_key_file(args->net.key_file, key, sizeof(key));
                if (key_len < 0) {
-                       printf("Could not read %s; trying without "
+                       fprintf(stderr, "Could not read %s; trying without "
                               "authentication\n", args->net.key_file);
                        args->net.auth = AUTH_NONE;
                        args->net.hash = HASH_NONE;
@@ -132,7 +132,7 @@
 
        fd = socket(PF_VSOCK, SOCK_STREAM, 0);
        if (fd < 0) {
-               printf("Unable to create vsock: %s", strerror(errno));
+               fprintf(stderr, "Unable to create vsock: %s", strerror(errno));
                return 1;
        }
 
@@ -142,7 +142,7 @@
        svm.svm_port = args->net.port;
 
        if (connect(fd, (struct sockaddr *) &svm, sizeof(svm)) < 0) {
-               printf("Unable to connect to fence_virtd host %d:%d %s\n",
+               fprintf(stderr, "Unable to connect to fence_virtd host %d:%d 
%s\n",
                        args->net.cid, args->net.port, strerror(errno));
                close(fd);
                return 1;
@@ -163,7 +163,7 @@
                        ret = sock_exchange(fd, args->net.auth, key, key_len,
                                            args->timeout);
                        break;
-               /* case AUTH_X509: 
+               /* case AUTH_X509:
                        return ssl_exchange(...); */
                default:
                        dbg_printf(3, "Unknown auth type: %d\n", 
args->net.auth);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/server/virt-serial.c
 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/server/virt-serial.c
--- 
old/fence-agents-4.16.0+git.1763372689.07285aac/agents/virt/server/virt-serial.c
    2025-11-17 10:44:49.000000000 +0100
+++ 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/agents/virt/server/virt-serial.c
    2025-12-09 16:15:31.000000000 +0100
@@ -55,7 +55,7 @@
 static int
 is_in_directory(const char *dir, const char *pathspec)
 {
-       char *last_slash = NULL;
+       const char *last_slash = NULL;
        size_t dirlen, pathlen;
 
        if (!dir || !pathspec)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fence-agents-4.16.0+git.1763372689.07285aac/m4/ax_prog_date.m4 
new/fence-agents-4.16.0+git.1765293331.d30fb54b/m4/ax_prog_date.m4
--- old/fence-agents-4.16.0+git.1763372689.07285aac/m4/ax_prog_date.m4  
2025-11-17 10:44:49.000000000 +0100
+++ new/fence-agents-4.16.0+git.1765293331.d30fb54b/m4/ax_prog_date.m4  
2025-12-09 16:15:31.000000000 +0100
@@ -1,4 +1,7 @@
-# ===========================================================================
+#
+# Customized version to support uutils from Ubuntu
+#
+## ===========================================================================
 #       https://www.gnu.org/software/autoconf-archive/ax_prog_date.html
 # ===========================================================================
 #
@@ -13,7 +16,7 @@
 #
 #   The type is determined as follow:
 #
-#     * If the version string contains "GNU", then:
+#     * If the version string contains "GNU" or "uutils", then:
 #       - The variable ax_cv_prog_date_gnu is set to "yes".
 #       - The variable ax_cv_prog_date_type is set to "gnu".
 #
@@ -78,7 +81,7 @@
 AC_DEFUN([AX_PROG_DATE], [dnl
   AC_CACHE_CHECK([for GNU date], [ax_cv_prog_date_gnu], [
     ax_cv_prog_date_gnu=no
-    if date --version 2>/dev/null | head -1 | grep -q GNU
+    if date --version 2>/dev/null | head -1 | grep -q "\(GNU\|uutils\)"
     then
       ax_cv_prog_date_gnu=yes
     fi

Reply via email to