[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via a0bf884 Remove outdated section from support/index.html from 730dc84 Add missing p. Thx to Dave ddiss! http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit a0bf8847b977ae8f6314887ffcbf0da51182 Author: Lars Müller l...@samba.org Date: Thu Aug 11 08:15:13 2011 +0200 Remove outdated section from support/index.html Acked-by: John jht I suggest we simply drop that from the page. --- Summary of changes: support/index.html |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/support/index.html b/support/index.html index 6231561..0d7cb91 100644 --- a/support/index.html +++ b/support/index.html @@ -13,9 +13,9 @@ There are a number of areas for you to look when searching for Samba support: pCompany and individual listings claiming to provide Commercial Samba support are listed separately by country. If any company listed is found no longer to be contactable please notify a href=mailto:j...@samba.org;John H Terpstra/a so that the listing can be removed. Thank you./p -pListings for and by companies and individuals who claim to provide commercial support for Samba have been updated as of February 22, 2010./p - -pThe Commercial Support listings will soon be updated into a new presentation format. Forthcoming changes will help those who have particular support needs to rapidly find the most appropriate support provider in their geographic area./p +pUp to date information will help those who have particular support +needs to rapidly find the most appropriate support provider in their +geographic area. Therefore we need your input!/p h3Notice/h3 -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via e964167 Add pointers to news/releases/3.6.0.html from a0bf884 Remove outdated section from support/index.html http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit e964167ecbdcb7b5b71711800b9bf25310be2908 Author: Lars Müller l...@samba.org Date: Thu Aug 11 11:52:41 2011 +0200 Add pointers to news/releases/3.6.0.html --- Summary of changes: generated_news/latest_10_bodies.html| 29 ++--- generated_news/latest_10_headlines.html |4 ++-- generated_news/latest_2_bodies.html | 19 ++- 3 files changed, 22 insertions(+), 30 deletions(-) Changeset truncated at 500 lines: diff --git a/generated_news/latest_10_bodies.html b/generated_news/latest_10_bodies.html index a7e60ec..63b6e22 100644 --- a/generated_news/latest_10_bodies.html +++ b/generated_news/latest_10_bodies.html @@ -1,3 +1,13 @@ + h5a name=3.6.0_highlights09 August 2011/a/h5 + p class=headlineThe highlights of Samba 3.6/p + pThe major new release of the award-winning Free Software is the first +free software SMB2 server, with improved printing and cluster file server +support, simplified identity mapping, greater reliability, and extensively +enhanced library components./p + + pYou like to know more details about the +a href=/samba/news/releases/3.6.0.htmlhighlights/a of 3.6?/p + h5a name=3.6.009 August 2011/a/h5 p class=headlineSamba 3.6.0 Available for Download/p pThis is the latest stable release of the Samba 3.6 series./p @@ -133,22 +143,3 @@ now/a. A a href=http://samba.org/samba/ftp/patches/patch-3.5.8-3.5.9.diffs.g Precompiled packages will be made available on a volunteer basis and can be found in the a href=http://samba.org/samba/ftp/Binary_Packages/;Binary_Packages download area/a./p - - h5a name=3.6.0pre326 April 2011/a/h5 - p class=headlineSamba 3.6.0pre3 Available for Download/p - pSamba 3.6.0pre3 is available for download. This is a - preview of the next upgrade production release version of Samba. - It is intended for btesting purposes only/b. Please test and - a href=https://bugzilla.samba.org/;report any bugs that you - find/a. Please read the changes in the - a href=http://samba.org/samba/ftp/pre/WHATSNEW-3-6-0pre3.txt;Release Notes/a - for details on new features and difference in behavior from - previous releases./p - - pThe a href=http://samba.org/samba/ftp/pre/samba-3.6.0pre3.tar.gz;Samba 3.6.0pre3 - source code/a can be downloaded now. The a - href=http://samba.org/samba/ftp/pre/samba-3.6.0pre3.tar.asc;GnuPG - signature is for the emun/emcompressed tarball/a. - Precompiled packages will - be made available on a volunteer basis and can be found in the - a href=http://samba.org/samba/ftp/Binary_Packages/;Binary_Packages download area/a./p diff --git a/generated_news/latest_10_headlines.html b/generated_news/latest_10_headlines.html index 9906b17..4f089cb 100644 --- a/generated_news/latest_10_headlines.html +++ b/generated_news/latest_10_headlines.html @@ -1,4 +1,6 @@ ul + li 09 August 2011 a href=/samba/news/releases/3.6.0.htmlThe highlights of Samba 3.6/a/li + li 09 August 2011 a href=#3.6.0Samba 3.6.0 Available for Download/a/li li 04 August 2011 a href=#3.5.11Samba 3.5.11 Available for Download/a/li @@ -16,6 +18,4 @@ li 7 June 2011 a href=#3.6.0rc2Samba 3.6.0rc2 Available for Download/a/li li 17 May 2011 a href=#3.6.0rc1Samba 3.6.0rc1 Available for Download/a/li - - li 26 April 2011 a href=#3.6.0pre3Samba 3.6.0pre3 Available for Download/a/li /ul diff --git a/generated_news/latest_2_bodies.html b/generated_news/latest_2_bodies.html index d4b2501..ce86ef4 100644 --- a/generated_news/latest_2_bodies.html +++ b/generated_news/latest_2_bodies.html @@ -1,3 +1,13 @@ + h5a name=3.6.0_highlights09 August 2011/a/h5 + p class=headlineThe highlights of Samba 3.6/p + pThe major new release of the award-winning Free Software is the first +free software SMB2 server, with improved printing and cluster file server +support, simplified identity mapping, greater reliability, and extensively +enhanced library components./p + + pYou like to know more details about the +a href=/samba/news/releases/3.6.0.htmlhighlights/a of 3.6?/p + h5a name=3.6.009 August 2011/a/h5 p class=headlineSamba 3.6.0 Available for Download/p pThis is the latest stable release of the Samba 3.6 series./p @@ -6,12 +16,3 @@ using GnuPG (ID 6568B7EA). The source code can be a href=http://samba.org/samba/ftp/stable/samba-3.6.0.tar.gz;downloaded now/a. A a href=http://samba.org/samba/ftp/patches/patch-3.5.11-3.6.0.diffs.gz;patch against Samba 3.5.11/a is also available. See a
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via d8b6a15 Make the link a bit longer as suggested by Kai from e964167 Add pointers to news/releases/3.6.0.html http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit d8b6a153a60e20f1209a3581dbfc94bf35c4b794 Author: Lars Müller l...@samba.org Date: Thu Aug 11 12:18:07 2011 +0200 Make the link a bit longer as suggested by Kai --- Summary of changes: generated_news/latest_10_bodies.html |2 +- generated_news/latest_2_bodies.html |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/generated_news/latest_10_bodies.html b/generated_news/latest_10_bodies.html index 63b6e22..dc7b076 100644 --- a/generated_news/latest_10_bodies.html +++ b/generated_news/latest_10_bodies.html @@ -6,7 +6,7 @@ support, simplified identity mapping, greater reliability, and extensively enhanced library components./p pYou like to know more details about the -a href=/samba/news/releases/3.6.0.htmlhighlights/a of 3.6?/p +a href=/samba/news/releases/3.6.0.htmlhighlights of 3.6/a?/p h5a name=3.6.009 August 2011/a/h5 p class=headlineSamba 3.6.0 Available for Download/p diff --git a/generated_news/latest_2_bodies.html b/generated_news/latest_2_bodies.html index ce86ef4..ab1cf75 100644 --- a/generated_news/latest_2_bodies.html +++ b/generated_news/latest_2_bodies.html @@ -6,7 +6,7 @@ support, simplified identity mapping, greater reliability, and extensively enhanced library components./p pYou like to know more details about the -a href=/samba/news/releases/3.6.0.htmlhighlights/a of 3.6?/p +a href=/samba/news/releases/3.6.0.htmlhighlights of 3.6/a?/p h5a name=3.6.009 August 2011/a/h5 p class=headlineSamba 3.6.0 Available for Download/p -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via dcb03e3 Add h2 at the beginning as suggested by Andreas from d8b6a15 Make the link a bit longer as suggested by Kai http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit dcb03e3fa25c9c3388a9ab291a671f0fc8511b0c Author: Lars Müller l...@samba.org Date: Thu Aug 11 12:25:55 2011 +0200 Add h2 at the beginning as suggested by Andreas --- Summary of changes: support/index.html |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/support/index.html b/support/index.html index 0d7cb91..b85447e 100644 --- a/support/index.html +++ b/support/index.html @@ -2,6 +2,8 @@ titleSamba Commercial Support Providers/title !--#include virtual=header_support.html -- +h2Samba Support/h2 + There are a number of areas for you to look when searching for Samba support: ul lia href=/samba/archives.htmlSamba related mailing lists/a/li -- Samba Website Repository
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via b0785dc Remove align=center as suggested by Andreas from dcb03e3 Add h2 at the beginning as suggested by Andreas http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit b0785dc3f0abaa38c4f3a7ef3bc36710d3961424 Author: Lars Müller l...@samba.org Date: Thu Aug 11 12:29:10 2011 +0200 Remove align=center as suggested by Andreas --- Summary of changes: vendors/index.html |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/vendors/index.html b/vendors/index.html index 99a0c40..f500295 100755 --- a/vendors/index.html +++ b/vendors/index.html @@ -2,7 +2,7 @@ titleSamba-based Commercial Products/title !--#include virtual=/samba/header_wide.html -- -H2 align=centerSamba Vendors/H2 +H2Samba Vendors/H2 PQuite a few vendors use Samba as part of a larger product. This gives them a top-quality SMB server with the flexibility to modify the server to -- Samba Website Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 91a4549 s3:build(autoconf): fix bug #8369: remove irritating . targets when recent system libs exist from f7b820c Adapt tally_histogram to Samba coding conventions http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 91a45490a57e160acd3cbecd58cf2c614cda70be Author: Michael Adam ob...@samba.org Date: Thu Aug 11 10:49:30 2011 +0200 s3:build(autoconf): fix bug #8369: remove irritating . targets when recent system libs exist Autobuild-User: Michael Adam ob...@samba.org Autobuild-Date: Thu Aug 11 13:26:27 CEST 2011 on sn-devel-104 --- Summary of changes: source3/Makefile.in | 18 +- source3/configure.in |4 source3/m4/aclocal.m4 |6 ++ 3 files changed, 19 insertions(+), 9 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/Makefile.in b/source3/Makefile.in index 4a79f97..41bd45d 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -2054,8 +2054,8 @@ LIBTALLOC_OBJ = $(LIBTALLOC_OBJ0) $(LIBREPLACE_OBJ) LIBTALLOC_SHARED_TARGET=@LIBTALLOC_SHARED_TARGET@ LIBTALLOC_SOVER=@LIBTALLOC_SOVER@ LIBTALLOC_FULLVER=@LIBTALLOC_FULLVER@ -LIBTALLOC_SHARED_TARGET_SONAME=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_SOVER) -LIBTALLOC_SHARED_TARGET_FULLVER=$(LIBTALLOC_SHARED_TARGET).$(LIBTALLOC_FULLVER) +LIBTALLOC_SHARED_TARGET_SONAME=@LIBTALLOC_SHARED_TARGET_SOVER@ +LIBTALLOC_SHARED_TARGET_FULLVER=@LIBTALLOC_SHARED_TARGET_FULLVER@ LIBTALLOC_STATIC_TARGET=@LIBTALLOC_STATIC_TARGET@ LIBTALLOC_SYMS=$(srcdir)/exports/libtalloc.@SYMSEXT@ LIBTALLOC_HEADERS=$(srcdir)/@tallocdir@/talloc.h @@ -2145,8 +2145,8 @@ LIBTDB_OBJ = $(LIBTDB_OBJ0) $(LIBREPLACE_OBJ) LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@ LIBTDB_SOVER=@LIBTDB_SOVER@ LIBTDB_FULLVER=@LIBTDB_FULLVER@ -LIBTDB_SHARED_TARGET_SONAME=$(LIBTDB_SHARED_TARGET).$(LIBTDB_SOVER) -LIBTDB_SHARED_TARGET_FULLVER=$(LIBTDB_SHARED_TARGET).$(LIBTDB_FULLVER) +LIBTDB_SHARED_TARGET_SONAME=@LIBTDB_SHARED_TARGET_SOVER@ +LIBTDB_SHARED_TARGET_FULLVER=@LIBTDB_SHARED_TARGET_FULLVER@ LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@ LIBTDB_SYMS=$(srcdir)/exports/libtdb.@SYMSEXT@ LIBTDB_HEADERS=$(srcdir)/@tdbdir@/include/tdb.h @@ -2251,7 +2251,7 @@ LIBWBCLIENT_OBJ = $(LIBWBCLIENT_OBJ0) \ LIBWBCLIENT_SHARED_TARGET=@LIBWBCLIENT_SHARED_TARGET@ LIBWBCLIENT_SOVER=@LIBWBCLIENT_SOVER@ LIBWBCLIENT_FULLVER=@LIBWBCLIENT_FULLVER@ -LIBWBCLIENT_SHARED_TARGET_SONAME=$(LIBWBCLIENT_SHARED_TARGET).$(LIBWBCLIENT_SOVER) +LIBWBCLIENT_SHARED_TARGET_SONAME=@LIBWBCLIENT_SHARED_TARGET_SOVER@ LIBWBCLIENT_STATIC_TARGET=@LIBWBCLIENT_STATIC_TARGET@ LIBWBCLIENT_SYMS=$(srcdir)/exports/libwbclient.@SYMSEXT@ LIBWBCLIENT_HEADERS=$(srcdir)/../nsswitch/libwbclient/wbclient.h @@ -2331,7 +2331,7 @@ showlibs:: showlibwbclient LIBADDNS_SHARED_TARGET=@LIBADDNS_SHARED_TARGET@ LIBADDNS_SOVER=@LIBADDNS_SOVER@ LIBADDNS_FULLVER=@LIBADDNS_FULLVER@ -LIBADDNS_SHARED_TARGET_SONAME=$(LIBADDNS_SHARED_TARGET).$(LIBADDNS_SOVER) +LIBADDNS_SHARED_TARGET_SONAME=@LIBADDNS_SHARED_TARGET_SOVER@ LIBADDNS_STATIC_TARGET=@LIBADDNS_STATIC_TARGET@ LIBADDNS=@LIBADDNS_STATIC@ @LIBADDNS_SHARED@ #LIBADDNS_SYMS=$(srcdir)/exports/libaddns.@SYMSEXT@ @@ -2440,7 +2440,7 @@ LIBNETAPI_OBJ = $(LIBNETAPI_OBJ0) $(LIBNET_OBJ) \ LIBNETAPI_SHARED_TARGET=@LIBNETAPI_SHARED_TARGET@ LIBNETAPI_SOVER=@LIBNETAPI_SOVER@ LIBNETAPI_FULLVER=@LIBNETAPI_FULLVER@ -LIBNETAPI_SHARED_TARGET_SONAME=$(LIBNETAPI_SHARED_TARGET).$(LIBNETAPI_SOVER) +LIBNETAPI_SHARED_TARGET_SONAME=@LIBNETAPI_SHARED_TARGET_SOVER@ LIBNETAPI_STATIC_TARGET=@LIBNETAPI_STATIC_TARGET@ LIBNETAPI_SYMS=$(srcdir)/exports/libnetapi.@SYMSEXT@ LIBNETAPI_HEADERS=$(srcdir)/lib/netapi/netapi.h @@ -2520,7 +2520,7 @@ showlibs:: showlibnetapi LIBSMBCLIENT_SHARED_TARGET=@LIBSMBCLIENT_SHARED_TARGET@ LIBSMBCLIENT_SOVER=@LIBSMBCLIENT_SOVER@ LIBSMBCLIENT_FULLVER=@LIBSMBCLIENT_FULLVER@ -LIBSMBCLIENT_SHARED_TARGET_SONAME=$(LIBSMBCLIENT_SHARED_TARGET).$(LIBSMBCLIENT_SOVER) +LIBSMBCLIENT_SHARED_TARGET_SONAME=@LIBSMBCLIENT_SHARED_TARGET_SOVER@ LIBSMBCLIENT_STATIC_TARGET=@LIBSMBCLIENT_STATIC_TARGET@ LIBSMBCLIENT=@LIBSMBCLIENT_STATIC@ @LIBSMBCLIENT_SHARED@ LIBSMBCLIENT_SYMS=$(srcdir)/exports/libsmbclient.@SYMSEXT@ @@ -2608,7 +2608,7 @@ LIBSMBSHAREMODES_OBJ = $(LIBSMBSHAREMODES_OBJ0) LIBSMBSHAREMODES_SHARED_TARGET=@LIBSMBSHAREMODES_SHARED_TARGET@ LIBSMBSHAREMODES_SOVER=@LIBSMBSHAREMODES_SOVER@ LIBSMBSHAREMODES_FULLVER=@LIBSMBSHAREMODES_FULLVER@ -LIBSMBSHAREMODES_SHARED_TARGET_SONAME=$(LIBSMBSHAREMODES_SHARED_TARGET).$(LIBSMBSHAREMODES_SOVER) +LIBSMBSHAREMODES_SHARED_TARGET_SONAME=@LIBSMBSHAREMODES_SHARED_TARGET_SOVER@ LIBSMBSHAREMODES_STATIC_TARGET=@LIBSMBSHAREMODES_STATIC_TARGET@ LIBSMBSHAREMODES=@LIBSMBSHAREMODES_STATIC@ @LIBSMBSHAREMODES_SHARED@ LIBSMBSHAREMODES_SYMS=$(srcdir)/exports/libsmbsharemodes.@SYMSEXT@ diff --git
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via d52343a s3-messaging: Do not register to classes we are not going to use. via 9f12575 s3-messaging: Change classification of MSG_SMB_CONF_UPDATED. via b706fd3 s3-messaging: Fix messaging classes. via cb1af61 s3-messaging: Remove obsolete class. from 91a4549 s3:build(autoconf): fix bug #8369: remove irritating . targets when recent system libs exist http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit d52343a9673a55e0e11d35f904808c0007405fa4 Author: Simo Sorce i...@samba.org Date: Wed Aug 10 23:28:09 2011 -0400 s3-messaging: Do not register to classes we are not going to use. Signed-off-by: Andreas Schneider a...@samba.org Autobuild-User: Andreas Schneider a...@cryptomilk.org Autobuild-Date: Thu Aug 11 17:09:30 CEST 2011 on sn-devel-104 commit 9f12575712fc2d5fb44558562f482cd8459140e8 Author: Simo Sorce i...@samba.org Date: Wed Aug 10 23:25:56 2011 -0400 s3-messaging: Change classification of MSG_SMB_CONF_UPDATED. smbd is not the only daemon interested in smb.conf changes. Move this message to the GENERAL class so that all interested partied (nmbd, winbindd, spoolssd, etc..) can receive this notification. Signed-off-by: Andreas Schneider a...@samba.org commit b706fd37f6d0e7e66718488d069053687ad0664c Author: Simo Sorce i...@samba.org Date: Wed Aug 10 23:10:48 2011 -0400 s3-messaging: Fix messaging classes. This has been broken since ff0ac5b0 (May 2007). Basically all messages were belonging to the General class except for CTDB messages. This fixed the message_send_all() function to correctly compute the class, and fixes registrations to include all they need to cope with the fact not all messages are of calss general (registrations rotted a bit because as long as FLAG_MSG_GENERAL was defined the process woould receive all messages). Signed-off-by: Andreas Schneider a...@samba.org commit cb1af61cb1988931654ad14c787d2493ef629a58 Author: Simo Sorce i...@samba.org Date: Wed Aug 10 23:36:06 2011 -0400 s3-messaging: Remove obsolete class. The FLAG_MSG_PRINT_NOTIFY class is actually obsolete and never used, as the only message belonging to it is not used either. Signed-off-by: Andreas Schneider a...@samba.org --- Summary of changes: source3/include/messages.h |3 +-- source3/lib/messages.c | 21 +++-- source3/librpc/idl/messaging.idl|9 ++--- source3/nmbd/nmbd.c |4 +++- source3/printing/queue_process.c|4 ++-- source3/printing/spoolssd.c |3 --- source3/rpc_server/epmd.c |4 ++-- source3/rpc_server/spoolss/srv_spoolss_nt.c | 13 - source3/winbindd/winbindd.c |4 +++- 9 files changed, 28 insertions(+), 37 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/include/messages.h b/source3/include/messages.h index 41d5bb1..c15dadc 100644 --- a/source3/include/messages.h +++ b/source3/include/messages.h @@ -42,12 +42,11 @@ #define FLAG_MSG_GENERAL 0x0001 #define FLAG_MSG_SMBD 0x0002 #define FLAG_MSG_NMBD 0x0004 -#define FLAG_MSG_PRINT_NOTIFY 0x0008 +#define FLAG_MSG_WINBIND 0x0008 #define FLAG_MSG_PRINT_GENERAL 0x0010 /* dbwrap messages 4001-4999 */ #define FLAG_MSG_DBWRAP0x0020 - /* * ctdb gives us 64-bit server ids for messaging_send. This is done to avoid * pid clashes and to be able to register for special messages like all diff --git a/source3/lib/messages.c b/source3/lib/messages.c index d66af39..57a2e22 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -146,20 +146,21 @@ bool message_send_all(struct messaging_context *msg_ctx, struct msg_all msg_all; msg_all.msg_type = msg_type; - if (msg_type 1000) + if (msg_type 0x100) { msg_all.msg_flag = FLAG_MSG_GENERAL; - else if (msg_type 1000 msg_type 2000) + } else if (msg_type 0x100 msg_type 0x200) { msg_all.msg_flag = FLAG_MSG_NMBD; - else if (msg_type 2000 msg_type 2100) - msg_all.msg_flag = FLAG_MSG_PRINT_NOTIFY; - else if (msg_type 2100 msg_type 3000) + } else if (msg_type 0x200 msg_type 0x300) { msg_all.msg_flag = FLAG_MSG_PRINT_GENERAL; - else if (msg_type 3000 msg_type 4000) + } else if (msg_type 0x300 msg_type 0x400) { msg_all.msg_flag = FLAG_MSG_SMBD; - else if (msg_type 4000 msg_type 5000) + } else if (msg_type 0x400 msg_type 0x600) { +
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via ce93b4f tevent: fix documentation for tevent_context_init_byname() via 158b208 tevent: Set FD_CLOEXEC on epoll handle from d52343a s3-messaging: Do not register to classes we are not going to use. http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit ce93b4f4645b15e204590633a8047c2bfec13154 Author: Sumit Bose sb...@redhat.com Date: Thu Aug 11 12:39:57 2011 +0200 tevent: fix documentation for tevent_context_init_byname() Signed-off-by: Simo Sorce i...@samba.org Autobuild-User: Simo Sorce i...@samba.org Autobuild-Date: Thu Aug 11 21:56:37 CEST 2011 on sn-devel-104 commit 158b208dfd75c04698f9f9196161322b16a020a2 Author: Sumit Bose sb...@redhat.com Date: Thu Aug 11 12:30:48 2011 +0200 tevent: Set FD_CLOEXEC on epoll handle If an application using libtevent starts a new process the epoll file descriptor is leaked to the new process if the event context is not freed explicitly. By setting FD_CLOEXEC this is not needed anymore. Signed-off-by: Simo Sorce i...@samba.org --- Summary of changes: lib/tevent/tevent.h |4 ++-- lib/tevent/tevent_epoll.c| 19 +-- lib/tevent/tevent_standard.c | 17 + lib/tevent/tevent_util.c | 17 + lib/tevent/tevent_util.h |1 + 5 files changed, 54 insertions(+), 4 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 6e3ed76..c38f7c3 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -111,7 +111,7 @@ typedef void (*tevent_signal_handler_t)(struct tevent_context *ev, struct tevent_context *tevent_context_init(TALLOC_CTX *mem_ctx); /** - * @brief Create a event_context structure and name it. + * @brief Create a event_context structure and select a specific backend. * * This must be the first events call, and all subsequent calls pass this * event_context as the first element. Event handlers also receive this as @@ -119,7 +119,7 @@ struct tevent_context *tevent_context_init(TALLOC_CTX *mem_ctx); * * @param[in] mem_ctx The memory context to use. * - * @param[in] name The name for the tevent context. + * @param[in] name The name of the backend to use. * * @return An allocated tevent context, NULL on error. */ diff --git a/lib/tevent/tevent_epoll.c b/lib/tevent/tevent_epoll.c index 3ab8283..33e1d3f 100644 --- a/lib/tevent/tevent_epoll.c +++ b/lib/tevent/tevent_epoll.c @@ -78,11 +78,20 @@ static int epoll_ctx_destructor(struct epoll_event_context *epoll_ev) static int epoll_init_ctx(struct epoll_event_context *epoll_ev) { epoll_ev-epoll_fd = epoll_create(64); - epoll_ev-pid = getpid(); - talloc_set_destructor(epoll_ev, epoll_ctx_destructor); if (epoll_ev-epoll_fd == -1) { + tevent_debug(epoll_ev-ev, TEVENT_DEBUG_FATAL, +Failed to create epoll handle.\n); return -1; } + + if (!ev_set_close_on_exec(epoll_ev-epoll_fd)) { + tevent_debug(epoll_ev-ev, TEVENT_DEBUG_WARNING, +Failed to set close-on-exec, file descriptor may be leaked to children.\n); + } + + epoll_ev-pid = getpid(); + talloc_set_destructor(epoll_ev, epoll_ctx_destructor); + return 0; } @@ -108,6 +117,12 @@ static void epoll_check_reopen(struct epoll_event_context *epoll_ev) Failed to recreate epoll handle after fork\n); return; } + + if (!ev_set_close_on_exec(epoll_ev-epoll_fd)) { + tevent_debug(epoll_ev-ev, TEVENT_DEBUG_WARNING, +Failed to set close-on-exec, file descriptor may be leaked to children.\n); + } + epoll_ev-pid = getpid(); for (fde=epoll_ev-ev-fd_events;fde;fde=fde-next) { epoll_add_event(epoll_ev, fde); diff --git a/lib/tevent/tevent_standard.c b/lib/tevent/tevent_standard.c index 35f7ded..e2ca44f 100644 --- a/lib/tevent/tevent_standard.c +++ b/lib/tevent/tevent_standard.c @@ -100,6 +100,17 @@ static int epoll_ctx_destructor(struct std_event_context *std_ev) static void epoll_init_ctx(struct std_event_context *std_ev) { std_ev-epoll_fd = epoll_create(64); + if (std_ev-epoll_fd == -1) { + tevent_debug(std_ev-ev, TEVENT_DEBUG_FATAL, +Failed to create epoll handle.\n); + return; + } + + if (!ev_set_close_on_exec(std_ev-epoll_fd)) { + tevent_debug(std_ev-ev, TEVENT_DEBUG_WARNING, +Failed to set close-on-exec, file descriptor may be leaked to children.\n); + } + std_ev-pid = getpid();
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 4aba775 tevent: don't force the nesting flag to false in the destructor via f444eeb s4-dbcheck: offer to fix dsServiceName to be in GUID form via fb490d8 s4-dsdb: don't cache the NTDS settings DN via bb6214d s4-join: make dsServiceName a GUID in @ROOTDSE on join via d79ee18 s4-provision: create dsServiceName in @ROOTDSE in GUID form via ccba16c s4-dsdb: expand dsServiceName from GUID form at runtime via f7902d7 s4-dsdb: remove the naming_fsmo and pdc_fsmo modules via f9d10a3 s4-dsdb: calculate validFSMOs at runtime instead of pre-computing from ce93b4f tevent: fix documentation for tevent_context_init_byname() http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 4aba7752195ffda980abf4a98b870d113615f662 Author: Andrew Tridgell tri...@samba.org Date: Fri Aug 12 11:56:28 2011 +1000 tevent: don't force the nesting flag to false in the destructor the tevent destructor is called in tevent_re_initialise(), to reset the event context back to its original state for creating child processes. We need the nesting flag to stay the same Pair-Programmed-With: Andrew Bartlett abart...@samba.org Autobuild-User: Andrew Tridgell tri...@samba.org Autobuild-Date: Fri Aug 12 05:18:25 CEST 2011 on sn-devel-104 commit f444eeb51c358a8062ba6e00101f88b753d69fc7 Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 16:59:11 2011 +1000 s4-dbcheck: offer to fix dsServiceName to be in GUID form this fixes the dsServiceName so it can handle server renames Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit fb490d88c1b43ae95ef8be7c32be4f3562eba4e2 Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 16:29:24 2011 +1000 s4-dsdb: don't cache the NTDS settings DN this DN can change due to a server rename, so we cannot cache it. It is set by provision, but not anywhere else. This seems to not have a large performance impact Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit bb6214d63440d52227ea94d1788b6875b4d4742c Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 16:05:11 2011 +1000 s4-join: make dsServiceName a GUID in @ROOTDSE on join when joining another domain as a DC we should setup our dsServiceName in @ROOTDSE to be a GUID so we can cope with later server renames Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit d79ee18f988d1f43eb1f76752e749385b9b9c251 Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 15:45:43 2011 +1000 s4-provision: create dsServiceName in @ROOTDSE in GUID form this allows for handling of server renames as the GUID doesn't change Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit ccba16c4b8de285f55683011c1527af3f6f48460 Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 15:44:32 2011 +1000 s4-dsdb: expand dsServiceName from GUID form at runtime this allows dsServiceName to be stored as an extended DN or GUID form in @ROOTDSE, and its string form will be found at runtime. Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit f7902d766a0866d92e728449377a406f8e202b2a Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 15:43:22 2011 +1000 s4-dsdb: remove the naming_fsmo and pdc_fsmo modules these are not needed now that the rootdse modules calculates the validFSMOs attribute at runtime Pair-Programmed-With: Andrew Bartlett abart...@samba.org commit f9d10a304d0197cc1ef5b14ab523d6462040088a Author: Andrew Tridgell tri...@samba.org Date: Thu Aug 11 15:40:53 2011 +1000 s4-dsdb: calculate validFSMOs at runtime instead of pre-computing this changes the rootdse to compute the validFSMOs attribute at runtime by checking the fSMORoleOwner attribute on the appropriate DN. This avoids the need for the pdc_fsmo and naming_fsmo modules. Pair-Programmed-With: Andrew Bartlett abart...@samba.org --- Summary of changes: lib/tevent/tevent.c| 10 +- source4/dsdb/common/util.c | 17 +-- source4/dsdb/samdb/ldb_modules/naming_fsmo.c | 108 source4/dsdb/samdb/ldb_modules/pdc_fsmo.c | 113 source4/dsdb/samdb/ldb_modules/rootdse.c | 135 ++- source4/dsdb/samdb/ldb_modules/samba_dsdb.c| 12 -- source4/dsdb/samdb/ldb_modules/wscript_build | 20 --- source4/dsdb/samdb/samdb.h | 10 -- source4/scripting/python/samba/dbchecker.py| 43 ++ source4/scripting/python/samba/join.py |8 +-