[PATCH 25/27] autofs-5.1.3 - fix strerror_r() parameter declaration in do program_mount()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix an incorrect declaration for an error message buffer on function
program_mount().

Signed-off-by: Ian Kent <raven@xxxxxxxxxx>
---
 CHANGELOG           |    1 +
 modules/parse_amd.c |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 8a9fdb1f..9b5801fb 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -58,6 +58,7 @@ xx/xx/2017 autofs-5.1.4
 - add function construct_argv().
 - add amd mount type program mount support.
 - fix memory leak in umount_amd_ext_mount().
+- fix strerror_r() parameter declaration in do program_mount().
 
 24/05/2017 autofs-5.1.3
 =======================
diff --git a/modules/parse_amd.c b/modules/parse_amd.c
index 0b2440ea..4a59ed49 100644
--- a/modules/parse_amd.c
+++ b/modules/parse_amd.c
@@ -1290,8 +1290,8 @@ static int do_program_mount(struct autofs_point *ap,
 	} else {
 		rv = mkdir_path(entry->fs, 0555);
 		if (rv && errno != EEXIST) {
-			char *buf[MAX_ERR_BUF];
-			char * estr;
+			char buf[MAX_ERR_BUF];
+			char *estr;
 
 			estr = strerror_r(errno, buf, MAX_ERR_BUF);
 			error(ap->logopt,

--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux