Blame SOURCES/autofs-5.1.5-fix-missing-initialization-of-autofs_point-flags.patch

135b98
autofs-5.1.5 - fix missing initialization of autofs_point flags
135b98
135b98
From: Ian Kent <raven@themaw.net>
135b98
135b98
When adding the "use_ignore_mount_option" configuration option I added
135b98
a "use without initialization" for ap->flags.
135b98
135b98
Signed-off-by: Ian Kent <raven@themaw.net>
135b98
---
135b98
 CHANGELOG    |    1 +
135b98
 lib/master.c |    2 ++
135b98
 2 files changed, 3 insertions(+)
135b98
135b98
--- autofs-5.1.4.orig/CHANGELOG
135b98
+++ autofs-5.1.4/CHANGELOG
135b98
@@ -75,6 +75,7 @@ xx/xx/2018 autofs-5.1.5
135b98
 - use local_getmntent_r() for unlink_mount_tree().
135b98
 - use local getmntent_r() in get_mnt_list().
135b98
 - use local getmntent_r() in tree_make_mnt_list().
135b98
+- fix missing initialization of autofs_point flags.
135b98
 
135b98
 19/12/2017 autofs-5.1.4
135b98
 - fix spec file url.
135b98
--- autofs-5.1.4.orig/lib/master.c
135b98
+++ autofs-5.1.4/lib/master.c
135b98
@@ -101,6 +101,8 @@ int master_add_autofs_point(struct maste
135b98
 		ap->negative_timeout = global_negative_timeout;
135b98
 	ap->exp_timeout = defaults_get_timeout();
135b98
 	ap->exp_runfreq = 0;
135b98
+	ap->flags = 0;
135b98
+
135b98
 	if (defaults_get_use_ignore_mount_option())
135b98
 		ap->flags = MOUNT_FLAG_IGNORE;
135b98
 	if (ghost)