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