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

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