SOURCES: pam-xauth-no-free.patch (NEW) - do not free memory used b...

baggins baggins at pld-linux.org
Sat Oct 27 17:18:10 CEST 2007


Author: baggins                      Date: Sat Oct 27 15:18:10 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- do not free memory used by putenv

---- Files affected:
SOURCES:
   pam-xauth-no-free.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/pam-xauth-no-free.patch
diff -u /dev/null SOURCES/pam-xauth-no-free.patch:1.1
--- /dev/null	Sat Oct 27 17:18:10 2007
+++ SOURCES/pam-xauth-no-free.patch	Sat Oct 27 17:18:04 2007
@@ -0,0 +1,14 @@
+do not free memory sent to putenv 
+https://bugzilla.redhat.com/show_bug.cgi?id=231698
+
+diff -up Linux-PAM-0.99.8.1/modules/pam_xauth/pam_xauth.c.no-free Linux-PAM-0.99.8.1/modules/pam_xauth/pam_xauth.c
+--- Linux-PAM-0.99.8.1/modules/pam_xauth/pam_xauth.c.no-free	2007-09-21 16:02:06.000000000 +0200
++++ Linux-PAM-0.99.8.1/modules/pam_xauth/pam_xauth.c	2007-09-21 16:02:47.000000000 +0200
+@@ -573,6 +573,7 @@ pam_sm_open_session (pam_handle_t *pamh,
+ 				   "can't set environment variable '%s'",
+ 				   xauthority);
+ 		putenv (xauthority); /* The environment owns this string now. */
++		xauthority = NULL;
+ 
+ 		/* set $DISPLAY in pam handle to make su - work */
+ 		{
================================================================


More information about the pld-cvs-commit mailing list