Blame SOURCES/autofs-5.1.3-fix-strerror_r-parameter-declaration-in-do_program_mount.patch

304803
autofs-5.1.3 - fix strerror_r() parameter declaration in do program_mount()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
Fix an incorrect declaration for an error message buffer on function
304803
program_mount().
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG           |    1 +
304803
 modules/parse_amd.c |    4 ++--
304803
 2 files changed, 3 insertions(+), 2 deletions(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -283,6 +283,7 @@
304803
 - add function construct_argv().
304803
 - add amd mount type program mount support.
304803
 - fix memory leak in umount_amd_ext_mount().
304803
+- fix strerror_r() parameter declaration in do program_mount().
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/modules/parse_amd.c
304803
+++ autofs-5.0.7/modules/parse_amd.c
304803
@@ -1292,8 +1292,8 @@ static int do_program_mount(struct autof
304803
 	} else {
304803
 		rv = mkdir_path(entry->fs, 0555);
304803
 		if (rv && errno != EEXIST) {
304803
-			char *buf[MAX_ERR_BUF];
304803
-			char * estr;
304803
+			char buf[MAX_ERR_BUF];
304803
+			char *estr;
304803
 
304803
 			estr = strerror_r(errno, buf, MAX_ERR_BUF);
304803
 			error(ap->logopt,