* Thu Mar 26 2009 Simo Sorce <ssorce@redhat.com> - 3.2.8-0.28
- Fix nmbd init script nmbd reload was causing smbd not nmbd to reload the configuration - Fix upstream bug 6224, nmbd was waiting 5+ minutes before running elections on startup, causing your own machine not to show up in the network for 5 minutes if it was the only client in that workgroup (fix committed upstream)
This commit is contained in:
parent
d15acbce27
commit
5ba7673cc9
2
nmb.init
2
nmb.init
|
@ -64,7 +64,7 @@ restart() {
|
|||
|
||||
reload() {
|
||||
echo -n $"Reloading smb.conf file: "
|
||||
killproc smbd -HUP
|
||||
killproc nmbd -HUP
|
||||
RETVAL=$?
|
||||
echo
|
||||
return $RETVAL
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
From 857c2e4407a0f4fcee721372ffed5366bc3051f9 Mon Sep 17 00:00:00 2001
|
||||
From: Jeremy Allison <jra@samba.org>
|
||||
Date: Thu, 26 Mar 2009 12:13:28 -0700
|
||||
Subject: [PATCH] Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run elections
|
||||
Fix logic bug that causes nmbd to wait 5 minutes before
|
||||
looking for a master browser. This one is *old* :-). Thanks
|
||||
for Simo for bugging me on this.
|
||||
Jeremy.
|
||||
|
||||
---
|
||||
source/nmbd/nmbd_elections.c | 3 ---
|
||||
1 files changed, 0 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/source/nmbd/nmbd_elections.c b/source/nmbd/nmbd_elections.c
|
||||
index b50d215..1ed64f4 100644
|
||||
--- a/source/nmbd/nmbd_elections.c
|
||||
+++ b/source/nmbd/nmbd_elections.c
|
||||
@@ -130,9 +130,6 @@ void check_master_browser_exists(time_t t)
|
||||
struct subnet_record *subrec;
|
||||
const char *workgroup_name = lp_workgroup();
|
||||
|
||||
- if (!lastrun)
|
||||
- lastrun = t;
|
||||
-
|
||||
if (t < (lastrun + (CHECK_TIME_MST_BROWSE * 60)))
|
||||
return;
|
||||
|
||||
--
|
||||
1.6.0.6
|
||||
|
13
samba.spec
13
samba.spec
|
@ -1,4 +1,4 @@
|
|||
%define main_release 27
|
||||
%define main_release 28
|
||||
%define samba_version 3.2.8
|
||||
%define tdb_version 1.1.1
|
||||
%define talloc_version 1.2.0
|
||||
|
@ -46,6 +46,7 @@ Patch107: samba-3.2.0pre1-grouppwd.patch
|
|||
Patch110: samba-3.0.21pre1-smbspool.patch
|
||||
Patch111: samba-3.0.13-smbclient.patch
|
||||
Patch200: samba-3.0.25rc1-inotifiy.patch
|
||||
Patch201: samba-3.2.8-nmbd_lmb_delay.patch
|
||||
|
||||
Requires(pre): samba-common = %{epoch}:%{version}-%{release}
|
||||
Requires: pam >= 0:0.64
|
||||
|
@ -252,6 +253,7 @@ cp %{SOURCE11} packaging/Fedora/
|
|||
#%patch110 -p1 -b .smbspool # FIXME: does not apply
|
||||
#%patch111 -p1 -b .smbclient # FIXME: does not apply
|
||||
#%patch200 -p0 -b .inotify # FIXME: does not compile
|
||||
%patch201 -p1 -b .nmbd_lmb_delay
|
||||
|
||||
mv source/VERSION source/VERSION.orig
|
||||
sed -e 's/SAMBA_VERSION_VENDOR_SUFFIX=$/&\"%{samba_release}\"/' < source/VERSION.orig > source/VERSION
|
||||
|
@ -487,6 +489,8 @@ fi
|
|||
%post common
|
||||
/sbin/ldconfig
|
||||
|
||||
# TODO: should we check the timestamps as well here ??
|
||||
|
||||
# This script must be run always on installs or upgrades
|
||||
# it checks if a previous installation have created files
|
||||
# under /var/cache/samba and move them in that case as the
|
||||
|
@ -824,6 +828,13 @@ exit 0
|
|||
%{_datadir}/pixmaps/samba/logo-small.png
|
||||
|
||||
%changelog
|
||||
* Thu Mar 26 2009 Simo Sorce <ssorce@redhat.com> - 3.2.8-0.28
|
||||
- Fix nmbd init script nmbd reload was causing smbd not nmbd to reload the
|
||||
configuration
|
||||
- Fix upstream bug 6224, nmbd was waiting 5+ minutes before running elections on
|
||||
startup, causing your own machine not to show up in the network for 5 minutes
|
||||
if it was the only client in that workgroup (fix committed upstream)
|
||||
|
||||
* Thu Mar 5 2009 Guenther Deschner <gdeschner@redhat.com> - 3.2.8-0.27
|
||||
- Add libcap-devel to requires list (resolves: #488559)
|
||||
|
||||
|
|
Loading…
Reference in New Issue