rpms/libsemanage/devel libsemanage-rhat.patch, 1.29, 1.30 libsemanage.spec, 1.142, 1.143

Daniel J Walsh (dwalsh) fedora-extras-commits at redhat.com
Mon Dec 3 19:22:36 UTC 2007


Author: dwalsh

Update of /cvs/extras/rpms/libsemanage/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6120

Modified Files:
	libsemanage-rhat.patch libsemanage.spec 
Log Message:
* Mon Dec 3 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.14-4
- Fix handling of /etc/shells so genhomedircon will work


libsemanage-rhat.patch:

Index: libsemanage-rhat.patch
===================================================================
RCS file: /cvs/extras/rpms/libsemanage/devel/libsemanage-rhat.patch,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- libsemanage-rhat.patch	30 Nov 2007 20:08:17 -0000	1.29
+++ libsemanage-rhat.patch	3 Dec 2007 19:22:31 -0000	1.30
@@ -1,7 +1,15 @@
 diff --exclude-from=exclude -N -u -r nsalibsemanage/src/genhomedircon.c libsemanage-2.0.14/src/genhomedircon.c
 --- nsalibsemanage/src/genhomedircon.c	2007-10-05 13:09:53.000000000 -0400
-+++ libsemanage-2.0.14/src/genhomedircon.c	2007-11-29 12:31:13.000000000 -0500
-@@ -790,7 +790,7 @@
++++ libsemanage-2.0.14/src/genhomedircon.c	2007-12-03 14:20:34.000000000 -0500
+@@ -135,6 +135,7 @@
+ 	if (!shells)
+ 		return default_shell_list();
+ 	while (getline(&temp, &buff_len, shells) >= 0) {
++		temp[strlen(temp)-1]=0;
+ 		if (strcmp(temp, PATH_NOLOGIN_SHELL)) {
+ 			if (semanage_list_push(&list, temp)) {
+ 				free(temp);
+@@ -790,7 +791,7 @@
  	homedir_context_tpl = make_template(s, &HOME_DIR_PRED);
  	homeroot_context_tpl = make_template(s, &HOME_ROOT_PRED);
  	user_context_tpl = make_template(s, &USER_CONTEXT_PRED);
@@ -10,7 +18,7 @@
  		retval = STATUS_ERR;
  		goto done;
  	}
-@@ -828,16 +828,18 @@
+@@ -828,16 +829,18 @@
  
  		ustr_sc_free(&temp);
  	}


Index: libsemanage.spec
===================================================================
RCS file: /cvs/extras/rpms/libsemanage/devel/libsemanage.spec,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -r1.142 -r1.143
--- libsemanage.spec	30 Nov 2007 20:08:17 -0000	1.142
+++ libsemanage.spec	3 Dec 2007 19:22:33 -0000	1.143
@@ -3,7 +3,7 @@
 Summary: SELinux binary policy manipulation library 
 Name: libsemanage
 Version: 2.0.14
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPL
 Group: System Environment/Libraries
 Source: http://www.nsa.gov/selinux/archives/libsemanage-%{version}.tgz
@@ -78,6 +78,9 @@
 %{_mandir}/man3/*
 
 %changelog
+* Mon Dec 3 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.14-4
+- Fix handling of /etc/shells so genhomedircon will work
+
 * Thu Nov 29 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.14-3
 - Allow semanage_genhomedircon to work with out a USER int homedir.template
 




More information about the fedora-extras-commits mailing list