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

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