diff --git a/autofs-5.0.4-fix-bad-token-declare.patch b/autofs-5.0.4-fix-bad-token-declare.patch new file mode 100644 index 0000000..3787ddc --- /dev/null +++ b/autofs-5.0.4-fix-bad-token-declare.patch @@ -0,0 +1,39 @@ +autofs-5.0.4 - fix bad token declaration + +From: Ian Kent + +Fix an incorrect %token declaration in the master map parser. +In some rare cases this can cause the timeout sent from the tokenizer +to the parser to always be zero. +--- + + CHANGELOG | 1 + + lib/master_parse.y | 2 +- + 2 files changed, 2 insertions(+), 1 deletions(-) + + +diff --git a/CHANGELOG b/CHANGELOG +index 0ce2a56..fdde400 100644 +--- a/CHANGELOG ++++ b/CHANGELOG +@@ -26,6 +26,7 @@ + - cleanup configure defines for libtirpc. + - add WITH_LIBTIRPC to -V status report. + - add nfs mount protocol default configuration option. ++- fix bad token declaration in master map parser. + + 4/11/2008 autofs-5.0.4 + ----------------------- +diff --git a/lib/master_parse.y b/lib/master_parse.y +index 3e598d9..454a2ed 100644 +--- a/lib/master_parse.y ++++ b/lib/master_parse.y +@@ -122,7 +122,7 @@ static int master_fprintf(FILE *, char *, ...); + %token MAPNULL + %token MAPXFN + %token MAPNAME +-%token NUMBER ++%token NUMBER + %token OPTION + + %start file diff --git a/autofs.spec b/autofs.spec index 963fc33..ac12a3d 100644 --- a/autofs.spec +++ b/autofs.spec @@ -4,7 +4,7 @@ Summary: A tool for automatically mounting and unmounting filesystems Name: autofs Version: 5.0.4 -Release: 16 +Release: 17 Epoch: 1 License: GPLv2+ Group: System Environment/Daemons @@ -36,6 +36,7 @@ Patch23: autofs-5.0.4-easy-alloca-replacements-fix.patch Patch24: autofs-5.0.4-libxml2-workaround-fix.patch Patch25: autofs-5.0.4-configure-libtirpc-fix.patch Patch26: autofs-5.0.4-add-nfs-mount-proto-default-conf-option.patch +Patch27: autofs-5.0.4-fix-bad-token-declare.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, hesiod-devel, openldap-devel, bison, flex, libxml2-devel, cyrus-sasl-devel, openssl-devel module-init-tools util-linux nfs-utils e2fsprogs libtirpc-devel Requires: kernel >= 2.6.17 @@ -103,6 +104,7 @@ echo %{version}-%{release} > .version %patch24 -p1 %patch25 -p1 %patch26 -p1 +%patch27 -p1 %build #CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir} @@ -155,6 +157,9 @@ fi %{_libdir}/autofs/ %changelog +* Wed Feb 25 2009 Ian Kent - 1:5.0.4-17 +- fix bad token declaration in master map parser. + * Wed Feb 25 2009 Ian Kent - 1:5.0.4-16 - correct mkdir command in %%install section, bz481132.