rpms/autofs/devel autofs-5.0.2-add-krb5-include.patch, NONE, 1.1 autofs-5.0.2-bad-proto-init.patch, NONE, 1.1 autofs.spec, 1.205, 1.206

Ian Kent (iankent) fedora-extras-commits at redhat.com
Wed Jun 20 04:07:05 UTC 2007


Author: iankent

Update of /cvs/pkgs/rpms/autofs/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv16423

Modified Files:
	autofs.spec 
Added Files:
	autofs-5.0.2-add-krb5-include.patch 
	autofs-5.0.2-bad-proto-init.patch 
Log Message:
* Wed Jun 20 2007 Ian Kent <ikent at redhat.com> - 5.0.2-2
- include krb5.h in lookup_ldap.h (some openssl doesn't implicitly include it).
- correct initialization of local var in parse_server_string.


autofs-5.0.2-add-krb5-include.patch:

--- NEW FILE autofs-5.0.2-add-krb5-include.patch ---
diff --git a/include/lookup_ldap.h b/include/lookup_ldap.h
index e1c5b4e..0a9deca 100644
--- a/include/lookup_ldap.h
+++ b/include/lookup_ldap.h
@@ -7,6 +7,7 @@
 #include <openssl/err.h>
 #include <sasl/sasl.h>
 #include <libxml/tree.h>
+#include <krb5.h>
 #endif
 
 struct lookup_context {

autofs-5.0.2-bad-proto-init.patch:

--- NEW FILE autofs-5.0.2-bad-proto-init.patch ---
diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c
index 06506a0..de8d515 100644
--- a/modules/lookup_ldap.c
+++ b/modules/lookup_ldap.c
@@ -549,7 +549,7 @@ static int parse_server_string(const char *url, struct lookup_context *ctxt)
 	const char *ptr, *name;
 	int l, al_len;
 
-	*proto = '\0';
+	memset(proto, 0, 9);
 	ptr = url;
 
 	debug(LOGOPT_NONE,
@@ -620,7 +620,7 @@ static int parse_server_string(const char *url, struct lookup_context *ctxt)
 	} else if (strchr(ptr, ':') != NULL) {
 		char *q = NULL;
 
-		/* Isolate the server(s). Include the port spec */
+		/* Isolate the server. Include the port spec */
 		q = strchr(ptr, ':');
 		if (isdigit(*q))
 			while (isdigit(*q))
@@ -633,7 +633,7 @@ static int parse_server_string(const char *url, struct lookup_context *ctxt)
 		}
 
 		l = q - ptr;
-		if (proto) {
+		if (*proto) {
 			al_len = l + strlen(proto) + 2;
 			tmp = malloc(al_len);
 		} else {


Index: autofs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/autofs/devel/autofs.spec,v
retrieving revision 1.205
retrieving revision 1.206
diff -u -r1.205 -r1.206
--- autofs.spec	18 Jun 2007 12:28:59 -0000	1.205
+++ autofs.spec	20 Jun 2007 04:06:30 -0000	1.206
@@ -4,12 +4,14 @@
 Summary: A tool for automatically mounting and unmounting filesystems
 Name: autofs
 Version: 5.0.2
-Release: 1
+Release: 2
 Epoch: 1
 License: GPL
 Group: System Environment/Daemons
 URL: http://wiki.autofs.net/
 Source: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/autofs-%{version}.tar.bz2
+Patch0: autofs-5.0.2-add-krb5-include.patch
+Patch1: autofs-5.0.2-bad-proto-init.patch
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: autoconf, hesiod-devel, openldap-devel, bison, flex, libxml2-devel, cyrus-sasl-devel, openssl-devel
 Conflicts: kernel < 2.6.17
@@ -51,6 +53,8 @@
 %prep
 %setup -q
 echo %{version}-%{release} > .version
+%patch0 -p1
+%patch1 -p1
 
 %build
 #CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir}
@@ -103,6 +107,10 @@
 %{_libdir}/autofs/
 
 %changelog
+* Wed Jun 20 2007 Ian Kent <ikent at redhat.com> - 5.0.2-2
+- include krb5.h in lookup_ldap.h (some openssl doesn't implicitly include it).
+- correct initialization of local var in parse_server_string.
+
 * Mon Jun 18 2007 Ian Kent <ikent at redhat.com> - 5.0.2-1
 - Update to upstream release 5.0.2.
 




More information about the fedora-extras-commits mailing list