autofs/autofs-5.0.6-fix-sss-wildcard-match.patch
Ian Kent 7f83a080cf * Tue May 1 2012 Ian Kent <ikent@redhat.com> - 1:5.0.6-15
- fix typo in libtirpc file name.
- fix rework error return handling in rpc code.
- allow MOUNT_WAIT to override probe.
- improve UDP RPC timeout handling.
- fix segfault in get_query_dn().
- use strtok_r() in linux_version_code().
- fix sss wildcard match.
- fix dlopen() error handling in sss module.
- fix configure string length tests for sss library.
2012-05-01 14:06:07 +08:00

42 lines
1014 B
Diff

autofs-5.0.6 - fix sss wildcard match
From: Ian Kent <ikent@redhat.com>
Check for a wildcard map entry on sss map read and convert to
the usual '*' befone adding to the map entry cache.
---
CHANGELOG | 1 +
modules/lookup_sss.c | 9 +++++++++
2 files changed, 10 insertions(+)
--- autofs-5.0.6.orig/CHANGELOG
+++ autofs-5.0.6/CHANGELOG
@@ -37,6 +37,7 @@
- allow MOUNT_WAIT to override probe.
- improve UDP RPC timeout handling.
- use strtok_r() in linux_version_code().
+- fix sss wildcard match.
28/06/2011 autofs-5.0.6
-----------------------
--- autofs-5.0.6.orig/modules/lookup_sss.c
+++ autofs-5.0.6/modules/lookup_sss.c
@@ -325,6 +325,15 @@ int lookup_read_map(struct autofs_point
continue;
}
+ if (*key == '/' && strlen(key) == 1) {
+ if (ap->type == LKP_DIRECT) {
+ free(key);
+ free(value);
+ continue;
+ }
+ *key = '*';
+ }
+
/*
* TODO: implement sun % hack for key translation for
* mixed case keys in schema that are single case only.