rpms/autofs/F-12 autofs-5.0.5-fix-timeout-in-connect_nb.patch, NONE, 1.1 autofs.spec, 1.290, 1.291
Ian Kent
iankent at fedoraproject.org
Mon Nov 23 02:23:37 UTC 2009
Author: iankent
Update of /cvs/pkgs/rpms/autofs/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24461
Modified Files:
autofs.spec
Added Files:
autofs-5.0.5-fix-timeout-in-connect_nb.patch
Log Message:
* Mon Nov 23 2009 Ian Kent <ikent at redhat.com> - 1:5.0.5-9
- fix timeout in connect_nb().
autofs-5.0.5-fix-timeout-in-connect_nb.patch:
CHANGELOG | 1 +
lib/rpc_subs.c | 7 +++++++
2 files changed, 8 insertions(+)
--- NEW FILE autofs-5.0.5-fix-timeout-in-connect_nb.patch ---
autofs-5.0.5 - fix timeout in connect_nb()
From: Ian Kent <raven at themaw.net>
When changing the timed wait from using select(2) to poll(2) in
connect_nb(), to overcome the 1024 file handle limit of select(),
the wait timeout was not converted from seconds to milliseconds.
---
CHANGELOG | 1 +
lib/rpc_subs.c | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index ccf2d32..dd093e2 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -11,6 +11,7 @@
- add "preen" fsck for ext4 mounts.
- don't use master_lex_destroy() to clear parse buffer.
- make documentation for set-log-priority clearer.
+- fix timeout in connect_nb().
03/09/2009 autofs-5.0.5
-----------------------
diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c
index cafc775..628f0fc 100644
--- a/lib/rpc_subs.c
+++ b/lib/rpc_subs.c
@@ -161,6 +161,13 @@ static int connect_nb(int fd, struct sockaddr *addr, socklen_t len, struct timev
if (ret == 0)
goto done;
+ if (timeout != -1) {
+ if (timeout >= (INT_MAX - 1)/1000)
+ timeout = INT_MAX - 1;
+ else
+ timeout = timeout * 1000;
+ }
+
pfd[0].fd = fd;
pfd[0].events = POLLOUT;
Index: autofs.spec
===================================================================
RCS file: /cvs/pkgs/rpms/autofs/F-12/autofs.spec,v
retrieving revision 1.290
retrieving revision 1.291
diff -u -p -r1.290 -r1.291
--- autofs.spec 16 Nov 2009 08:03:33 -0000 1.290
+++ autofs.spec 23 Nov 2009 02:23:37 -0000 1.291
@@ -4,7 +4,7 @@
Summary: A tool for automatically mounting and unmounting filesystems
Name: autofs
Version: 5.0.5
-Release: 7%{?dist}
+Release: 9%{?dist}
Epoch: 1
License: GPLv2+
Group: System Environment/Daemons
@@ -21,6 +21,7 @@ Patch8: autofs-5.0.5-fix-stale-init-for-
Patch9: autofs-5.0.5-fix-ext4-fsck-at-mount.patch
Patch10: autofs-5.0.5-dont-use-master_lex_destroy-to-clear-parse-buffer.patch
Patch11: autofs-5.0.5-make-documentation-for-set-log-priority-clearer.patch
+Patch12: autofs-5.0.5-fix-timeout-in-connect_nb.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
@@ -73,6 +74,7 @@ echo %{version}-%{release} > .version
%patch9 -p1
%patch10 -p1
%patch11 -p1
+%patch12 -p1
%build
#CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=%{_libdir}
@@ -125,6 +127,9 @@ fi
%{_libdir}/autofs/
%changelog
+* Mon Nov 23 2009 Ian Kent <ikent at redhat.com> - 1:5.0.5-9
+- fix timeout in connect_nb().
+
* Mon Nov 16 2009 Ian Kent <ikent at redhat.com> - 1:5.0.5-7
- fix ext4 "preen" fsck at mount.
- don't use master_lex_destroy() to clear parse buffer.
More information about the scm-commits
mailing list