Hello community,

here is the log from the commit of package pdsh for openSUSE:Factory checked in 
at 2017-02-18 03:20:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pdsh (Old)
 and      /work/SRC/openSUSE:Factory/.pdsh.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pdsh"

Changes:
--------
--- /work/SRC/openSUSE:Factory/pdsh/pdsh.changes        2016-11-28 
15:05:11.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.pdsh.new/pdsh.changes   2017-02-18 
03:20:00.364665142 +0100
@@ -1,0 +2,13 @@
+Thu Feb 16 15:02:15 UTC 2017 - [email protected]
+
+- mcmd-Account-for-start-offset-when-providing-max-bytes-to-read.patch
+  Fix a write past the end of a buffer.
+
+-------------------------------------------------------------------
+Wed Feb 15 16:18:41 UTC 2017 - [email protected]
+
+- Add 'Recommends: mrsh':
+  pdsh should be run using the mrsh protocol but can get by using
+  ssh as well, thus adding as a recommended dependency.
+
+-------------------------------------------------------------------

New:
----
  mcmd-Account-for-start-offset-when-providing-max-bytes-to-read.patch

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

Other differences:
------------------
++++++ pdsh.spec ++++++
--- /var/tmp/diff_new_pack.hmE0n3/_old  2017-02-18 03:20:00.844597354 +0100
+++ /var/tmp/diff_new_pack.hmE0n3/_new  2017-02-18 03:20:00.848596790 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package pdsh
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -33,6 +33,7 @@
 BuildRequires:  munge-devel
 %endif
 BuildRequires:  pam-devel
+Recommends:     mrsh
 %if 0%{?have_genders}
 BuildRequires:  genders > 1.0
 %endif
@@ -44,6 +45,7 @@
 License:        GPL-2.0+
 Group:          Productivity/Clustering/Computing
 Source:         
https://github.com/grondo/%{name}/archive/%{name}-%{version}.tar.gz
+Patch1:         
mcmd-Account-for-start-offset-when-providing-max-bytes-to-read.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 # Prereq: 
 # Set this to 1 to build with genders support and framework for
@@ -57,6 +59,7 @@
 
 %prep
 %setup -q -n %{name}-%{name}-%{version}
+%patch1 -p1
 
 %build
 CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \

++++++ mcmd-Account-for-start-offset-when-providing-max-bytes-to-read.patch 
++++++
From: Egbert Eich <[email protected]>
Date: Thu Feb 16 15:00:35 2017 +0100
Subject: [PATCH]mcmd: Account for start offset when providing max bytes to read
Git-repo: https://github.com/grondo/pdsh
Git-commit: 9769bbb0abb2928d898337a2c7611ec0efa99e20
References: 
Signed-off-by: Egbert Eich <[email protected]>

Signed-off-by: Egbert Eich <[email protected]>
---
 src/modules/mcmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/mcmd.c b/src/modules/mcmd.c
index eaab735..ea050d4 100644
--- a/src/modules/mcmd.c
+++ b/src/modules/mcmd.c
@@ -620,7 +620,7 @@ mcmd(char *ahost, char *addr, char *locuser, char *remuser, 
char *cmd,
 
             memcpy(tptr,(char *) &rand,sizeof(rand));
             tptr += sizeof(rand);
-            if (fd_read_line (s3, tptr, LINEBUFSIZE) < 0)
+            if (fd_read_line (s3, tptr, LINEBUFSIZE - sizeof(rand)) < 0)
                 err("%p: %S: mcmd: Read error from remote host: %m\n", ahost);
             else
                 err("%p: %S: mcmd: Error: %s\n", ahost, &tmpbuf[0]);

Reply via email to