rpms/libsemanage/devel libsemanage-rhat.patch, 1.30, 1.31 libsemanage.spec, 1.143, 1.144
Daniel J Walsh (dwalsh)
fedora-extras-commits at redhat.com
Mon Dec 3 20:55:18 UTC 2007
- Previous message (by thread): rpms/libsemanage/F-8 libsemanage-rhat.patch, 1.28, 1.29 libsemanage.spec, 1.139, 1.140 sources, 1.85, 1.86
- Next message (by thread): rpms/nss/devel nss-unix_rand.patch,NONE,1.1 nss.spec,1.31,1.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: dwalsh
Update of /cvs/extras/rpms/libsemanage/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20463
Modified Files:
libsemanage-rhat.patch libsemanage.spec
Log Message:
* Mon Dec 3 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.14-5
- 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.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- libsemanage-rhat.patch 3 Dec 2007 19:22:31 -0000 1.30
+++ libsemanage-rhat.patch 3 Dec 2007 20:55:15 -0000 1.31
@@ -1,15 +1,22 @@
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-12-03 14:20:34.000000000 -0500
-@@ -135,6 +135,7 @@
++++ libsemanage-2.0.14/src/genhomedircon.c 2007-12-03 15:47:19.000000000 -0500
+@@ -130,11 +130,13 @@
+ char *temp = NULL;
+ semanage_list_t *list = NULL;
+ size_t buff_len = 0;
++ int len;
+
+ shells = fopen(PATH_SHELLS_FILE, "r");
if (!shells)
return default_shell_list();
- while (getline(&temp, &buff_len, shells) >= 0) {
-+ temp[strlen(temp)-1]=0;
+- while (getline(&temp, &buff_len, shells) >= 0) {
++ while ((len = getline(&temp, &buff_len, shells)) > 0) {
++ if (temp[len-1] == '\n') temp[len-1] = 0;
if (strcmp(temp, PATH_NOLOGIN_SHELL)) {
if (semanage_list_push(&list, temp)) {
free(temp);
-@@ -790,7 +791,7 @@
+@@ -790,7 +792,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);
@@ -18,7 +25,7 @@
retval = STATUS_ERR;
goto done;
}
-@@ -828,16 +829,18 @@
+@@ -828,16 +830,18 @@
ustr_sc_free(&temp);
}
Index: libsemanage.spec
===================================================================
RCS file: /cvs/extras/rpms/libsemanage/devel/libsemanage.spec,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -r1.143 -r1.144
--- libsemanage.spec 3 Dec 2007 19:22:33 -0000 1.143
+++ libsemanage.spec 3 Dec 2007 20:55:15 -0000 1.144
@@ -3,7 +3,7 @@
Summary: SELinux binary policy manipulation library
Name: libsemanage
Version: 2.0.14
-Release: 4%{?dist}
+Release: 5%{?dist}
License: GPL
Group: System Environment/Libraries
Source: http://www.nsa.gov/selinux/archives/libsemanage-%{version}.tgz
@@ -78,7 +78,7 @@
%{_mandir}/man3/*
%changelog
-* Mon Dec 3 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.14-4
+* Mon Dec 3 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.14-5
- Fix handling of /etc/shells so genhomedircon will work
* Thu Nov 29 2007 Dan Walsh <dwalsh at redhat.com> - 2.0.14-3
- Previous message (by thread): rpms/libsemanage/F-8 libsemanage-rhat.patch, 1.28, 1.29 libsemanage.spec, 1.139, 1.140 sources, 1.85, 1.86
- Next message (by thread): rpms/nss/devel nss-unix_rand.patch,NONE,1.1 nss.spec,1.31,1.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list