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

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