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

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