autofs-5.1.9 - remove unused master map field

From: Ian Kent <raven@themaw.net>

When the lookup module entry points were changed to take the current
map source as a parameter the field previously used for the transfer
of this to the module functions was not removed.

Signed-off-by: Ian Kent <raven@themaw.net>
---
 CHANGELOG             |    1 +
 daemon/master.c       |    1 -
 daemon/master_parse.y |    1 -
 include/master.h      |    1 -
 4 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index c9916f0c3..af0736d71 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -53,6 +53,7 @@
 - fix incorrect call in dev_ioctl_requester().
 - use nobind instead of nosymlink.
 - make rmdir_path() more informative.
+- remove unused master map field.
 
 02/11/2023 autofs-5.1.9
 - fix kernel mount status notification.
diff --git a/daemon/master.c b/daemon/master.c
index 817ca6e35..e1357c44b 100644
--- a/daemon/master.c
+++ b/daemon/master.c
@@ -802,7 +802,6 @@ struct master_mapent *master_new_mapent(struct master *master, const char *path,
 
 	entry->age = age;
 	entry->master = master;
-	entry->current = NULL;
 	entry->maps = NULL;
 	entry->ap = NULL;
 
diff --git a/daemon/master_parse.y b/daemon/master_parse.y
index 99279cd74..087ff5b19 100644
--- a/daemon/master_parse.y
+++ b/daemon/master_parse.y
@@ -979,7 +979,6 @@ int master_parse_entry(const char *buffer, unsigned int default_timeout, unsigne
 	source->master_line = lineno;
 
 	entry->age = age;
-	entry->current = NULL;
 
 	if (new)
 		master_add_mapent(master, entry);
diff --git a/include/master.h b/include/master.h
index 7b93c8e94..a5f876e2e 100644
--- a/include/master.h
+++ b/include/master.h
@@ -49,7 +49,6 @@ struct master_mapent {
 	time_t age;
 	struct master *master;
 	pthread_rwlock_t source_lock;
-	struct map_source *current;
 	struct map_source *maps;
 	struct autofs_point *ap;
 	struct list_head list;
