Hello community,

here is the log from the commit of package rsh for openSUSE:Factory
checked in at Thu Oct 13 12:25:50 CEST 2011.



--------
--- openSUSE:Factory/rsh/rsh.changes    2011-09-23 12:44:44.000000000 +0200
+++ rsh/rsh.changes     2011-10-12 17:13:47.000000000 +0200
@@ -1,0 +2,5 @@
+Wed Oct 12 17:12:07 CEST 2011 - [email protected]
+
+- Fix invalid memory free in rshd with pam (bnc#723593)
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


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

Other differences:
------------------
++++++ rsh.spec ++++++
--- /var/tmp/diff_new_pack.7EeOyj/_old  2011-10-13 12:25:46.000000000 +0200
+++ /var/tmp/diff_new_pack.7EeOyj/_new  2011-10-13 12:25:46.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package rsh (Version 0.17)
+# spec file for package rsh
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -87,7 +87,7 @@
 %patch
 %patch1
 %patch2
-%patch3
+%patch3 -p1
 %patch4
 %patch5
 %patch6

++++++ netkit-rsh-0.17-pam-env.diff ++++++
--- /var/tmp/diff_new_pack.7EeOyj/_old  2011-10-13 12:25:46.000000000 +0200
+++ /var/tmp/diff_new_pack.7EeOyj/_new  2011-10-13 12:25:46.000000000 +0200
@@ -1,5 +1,9 @@
---- rshd/rshd.c
-+++ rshd/rshd.c
+---
+ rshd/rshd.c |   12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+--- a/rshd/rshd.c
++++ b/rshd/rshd.c
 @@ -504,6 +504,18 @@
                exit(1);
        }
@@ -9,12 +13,12 @@
 +        const char *const *penv=
 +          (const char *const *)pam_getenvlist(pamh);
 +
-+        if(penv!=NULL)
-+          while(*penv!=NULL) {
-+            putenv(*penv);
-+            penv++;
-+          }
-+        pam_misc_drop_env(penv);
++        if(penv!=NULL) {
++          const char *const *p;
++          for (p = penv; *p; p++)
++            putenv(*p);
++          pam_misc_drop_env(penv);
++        }
 +      }
  
        strncat(homedir, pwd->pw_dir, sizeof(homedir)-6);

continue with "q"...



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to