# This series applies on GIT commit 0b0bbe950cc8402363cda1fd5338cebe7f713c0e
autofs-5.0.8-fix-ipv6-link-local-address-handling.patch
autofs-5.0.8-fix-fix-ipv6-libtirpc-getport.patch
autofs-5.0.8-get_nfs_info-should-query-portmapper-if-port-is-not-given.patch
autofs-5.0.8-fix-ipv6-libtirpc-getport-proto-not-set.patch
autofs-5.0.8-fix-portmap-not-trying-proto-v2.patch
autofs-5.0.8-fix-rpc_getport-when-libtirpc-is-disabled.patch
autofs-5.0.8-fix-rpc_getrpcbport-when-libtirpc-is-disabled.patch
autofs-5.0.8-dont-reset-errno.patch
autofs-5.0.8-extend-libldap-serialization.patch
autofs-5.0.8-fix-deadlock-in-init-ldap-connection.patch
autofs-5.0.8-fix-options-compare.patch
autofs-5.0.8-fix-negative-status-being-reset-on-map-read.patch
autofs-5.0.8-check-for-existing-offset-mount-before-mounting.patch
autofs-5.0.8-remove-macro-debug-prints.patch
autofs-5.0.8-fix-max-declaration.patch
autofs-5.0.8-fix-symlink-fail-message-in-mount_bind-c.patch
autofs-5.0.8-fix-cache-readlock-not-taken-on-lookup.patch
autofs-5.0.8-pass-map_source-as-function-paramter-where-possible.patch
autofs-5.0.8-check-for-bind-onto-self-in-mount_bind-c.patch
autofs-5.0.8-fix-symlink-expire.patch
autofs-5.0.8-dont-clobber-mapent-for-negative-cache.patch
autofs-5.0.8-fix-macro_addvar-and-move-init-to-main-thread.patch
autofs-5.0.8-change-walk_tree-to-take-ap.patch
autofs-5.0.8-add-negative-cache-lookup-to-hesiod-lookup.patch
autofs-5.0.8-fix-external-env-configure.patch
autofs-5.0.8-make-autofs-5-consistent-with-auto-master-5.patch
autofs-5.0.8-fix-map-source-with-type-lookup.patch
autofs-5.0.8-fix-lookup_nss_mount-map-lookup.patch
autofs-5.0.8-dont-ignore-null-cache-entries-on-multi-mount-umount.patch
autofs-5.0.8-fix-inconsistent-error-returns-in-handle_packet_missing_direct.patch
autofs-5.0.8-simple-coverity-fixes.patch
autofs-5.0.8-remove-stale-debug-message.patch
autofs-5.0.8 - fix ipv6 link local address handling

Stop the validate_location() function from choking on link local
ipv6 addresses.
autofs-5.0.8 - fix fix ipv6 libtirpc getport

Remove a duplicated case entry and remove redundant check, since it
can never be reached, in rpc_rpcb_getport().
autofs-5.0.8 - get_nfs_info() should query portmapper if port is not given

It shouldn't just assume it can use port 2049.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
autofs-5.0.8 - fix rpc_portmap_getport() proto not set

Recent changes to fix libtirpc usage problems when getting a server
exports list cause later server probing to fail.

When getting an exports list a new rpc client is always created for
the query, which includes setting the protocol in the parameters
structure. But when probing availability the client is reused where
possible and the protocol is not set in the parameters structure in
this case.

The rpc_portmap_getport() changes require that the protocol is set
in oder to function.
autofs-5.0.8 - fix portmap not trying proto v2

The latest change to fix a problem with getting an exports list
from a server doesn't try portmap version 2 when trying to get
a service port number. This causes servers that offer only
version 2 to not be able to provide a service port number.
autofs-5.0.8 - fix rpc_getport() when libtirpc is disabled

Fix an obvious function declaration error with rpc_getport() when
libtirpc usage is disabled.
autofs-5.0.8 - fix rpc_getrpcbport() when libtirpc is disabled

When the rpc_getrpcbport() function was introduced the port number
returned is in network byte order. But, when libtirpc is disabled
the function was returning the port in host byte order instead
causing connection failures.
autofs-5.0.8 - don't reset errno

Do not reset the error code that might just have been set to ENOTDIR.
autofs-5.0.8 - extend libldap serialization

It's necessary to serialize calls to ldap_unbind() as well as the
initial bind.
Fix deadlock in init_ldap_connection()

Commit 9fc20db13 ("fix crash due to thread unsafe use of libldap")
introduced a deadlock in init_ldap_connection(). When TLS is on,
this function will call itself recursively and try to lock a mutex
that's already owned by the thread. Fix the problem by using the
lockless version.
autofs-5.0.8 - fix options compare

When checking for options in mount locations incorrect matches
can occur when the length of the option string is not also used
for the check.
autofs-5.0.8 - fix negative status being reset on map read

The map entry status field, which holds the negative cache timeout,
gets reset on a map re-read.

If the negative map entry was added at the same time as the map
read and it was for an entry that was never in the map, the
status gets reset even though the entry is still a valid
negative entry.

Consequently lookups for non-existent map entries are never
seen as negative and the lookup always continues.
autofs-5.0.8 - check for existing offset mount before mounting

The change that introduced the miscellaneous device for autofs
mount control removed a mount point mounted check from the
mount_autofs_offset() function for when the miscellaneous
device is not used.

But a subsequent change that enabled limited update of the exports
of a hosts mount needed that check. Without it a second occurance
of the offset (corresponding to an export) could be mounted upon
a map re-read.
autofs-5.0.8 - remove macro debug prints

Remove a couple of missed debugging prints from macro_setenv();
autofs-5.0.8 - fix max() declaration

Use a name other than the already defined max().
autofs-5.0.8 - fix symlink fail message in mount_bind.c
autofs-5.0.8 - fix cache readlock not taken on lookup

In modules/lookup_yp.c:check_map_indirect() there's a missing cache
readlock.
autofs-5.0.8 - pass map_source as function paramter where possible

Some unnecessary complexity has been added along the way when passing
the map source to functions in lookup modules. Improve that where
possible.
autofs-5.0.8 - check for bind onto self in mount_bind.c

Check for an obviously impossible request to bind or symlink to the
same patch for source and target.