From 7ad01eb06f26257ba69585dc835c979691c514a3 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 08:03:55 +0000 Subject: Apply patch autofs-5.1.4-fix-error-return-in-do_nfs_mount.patch patch_name: autofs-5.1.4-fix-error-return-in-do_nfs_mount.patch present_in_specfile: true --- diff --git a/CHANGELOG b/CHANGELOG index 756ef92..d0cfa19 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -6,6 +6,7 @@ xx/xx/2018 autofs-5.1.5 - dont use array for path when not necessary. - fix prefix option handling in expand_entry(). - fix sublink option not set from defaults. +- fix error return in do_nfs_mount(). 19/12/2017 autofs-5.1.4 - fix spec file url. diff --git a/modules/parse_amd.c b/modules/parse_amd.c index 1c962ff..2a5d9a3 100644 --- a/modules/parse_amd.c +++ b/modules/parse_amd.c @@ -1099,7 +1099,7 @@ static int do_nfs_mount(struct autofs_point *ap, const char *name, if (strlen(entry->rhost) + strlen(entry->rfs) + 1 > PATH_MAX) { error(ap->logopt, MODPREFIX "error: rhost + rfs options length is too long"); - return 0; + return 1; } strcpy(target, entry->rhost);