patch, new test rpm: only source one master map
Hello,
I've rolled another test rpm with a patch to only parse one master map. Previously, we concatenated all master maps we found, which caused problems in some environments. Attached is the patch which addresses this, and you can find a new test version of the autofs rpm on my people page:
http://people.redhat.com/~jmoyer/
I've only created rpms for fc3. If you would like to run this on other distributions, feel free to recompile the SRPM.
I am very interested in getting some testing of this. I'm mainly interested in seeing if this causes regressions for anyone (presumably because you were depending on this arguably broken behaviour). Please also note that this rpm includes Ian's experimental map expiry patches, so this is not expected to be super stable. Use at your own risk.
Thanks!
Jeff
samples/rc.autofs.in renamed from samples/rc.autofs.in.one-auto-master +16 -4
@@ -110,21 +110,33 @@ case "$scheme" in files) if [ -z "$filescheme" ] ; then - getfilemounts - filescheme=1 + MOUNTS=`getfilemounts` + if [ -n "$MOUNTS" ] ; then + getfilemounts + return + fi + filescheme=1 export filescheme fi ;; nis) if [ -z "$nisscheme" ] ; then - getnismounts + MOUNTS=`getnismounts` + if [ -n "$MOUNTS" ] ; then + getnismounts + return + fi nisscheme=1 export nisscheme fi ;; ldap*) if [ -z "$ldapscheme" ] ; then - getldapmounts + MOUNTS=`getldapmounts` + if [ -n "$MOUNTS" ] ; then + getldapmounts + return + fi ldapscheme=1 export ldapscheme fi