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

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