autofs-5.1.2 - Fix typos in error messages From: Tomohiro Kusumi Signed-off-by: Tomohiro Kusumi Signed-off-by: Ian Kent --- CHANGELOG | 1 + daemon/automount.c | 4 ++-- daemon/state.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 7aa7b4a..a0a2c46 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -10,6 +10,7 @@ xx/xx/2016 autofs-5.1.3 - Change .requestor to .requester for consistency. - fix file map changed check. - Remove unused local 2KB buffer. +- Fix typos in error messages. 15/06/2016 autofs-5.1.2 ======================= diff --git a/daemon/automount.c b/daemon/automount.c index 1bdc3aa..e51909c 100644 --- a/daemon/automount.c +++ b/daemon/automount.c @@ -945,7 +945,7 @@ static int set_log_priority(const char *path, int priority) if (priority > LOG_DEBUG || priority < LOG_EMERG) { fprintf(stderr, "Log priority %d is invalid.\n", priority); - fprintf(stderr, "Please spcify a number in the range 0-7.\n"); + fprintf(stderr, "Please specify a number in the range 0-7.\n"); return -1; } @@ -1078,7 +1078,7 @@ int do_expire(struct autofs_point *ap, const char *name, int namelen) } if (!len) { - crit(ap->logopt, "path to long for buffer"); + crit(ap->logopt, "path too long for buffer"); return 1; } diff --git a/daemon/state.c b/daemon/state.c index ed533da..5d81438 100644 --- a/daemon/state.c +++ b/daemon/state.c @@ -575,7 +575,7 @@ static unsigned int st_readmap(struct autofs_point *ap) ra = malloc(sizeof(struct readmap_args)); if (!ra) { - error(ap->logopt, "failed to malloc reamap cond struct"); + error(ap->logopt, "failed to malloc readmap cond struct"); /* It didn't work: return to ready */ st_ready(ap); if (!ap->submount) @@ -600,7 +600,7 @@ static unsigned int st_readmap(struct autofs_point *ap) status = pthread_create(&thid, &th_attr_detached, do_readmap, ra); if (status) { - error(ap->logopt, "read map thread create failed"); + error(ap->logopt, "readmap thread create failed"); st_readmap_cleanup(ra); free(ra); /* It didn't work: return to ready */