[SCM] Samba Shared Repository - branch v4-5-test updated

Stefan Metzmacher metze at samba.org
Thu Jan 12 22:23:02 UTC 2017


The branch, v4-5-test has been updated
       via  45125a4d messaging: Fix dead but not cleaned-up-yet destination sockets
      from  0996b58 s3:librpc/gse: make use of gss_krb5_import_cred() instead of gss_acquire_cred()

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-5-test


- Log -----------------------------------------------------------------
commit 45125a4db8c14239e158f59fce1c5e9cba5d34c7
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Jan 10 12:30:54 2017 +0000

    messaging: Fix dead but not cleaned-up-yet destination sockets
    
    Bug: https://bugzilla.samba.org/show_bug.cgi?id=12509
    
    Signed-off-by: Volker Lendecke <vl at samba.org>
    Reviewed-by: Stefan Metzmacher <metze at samba.org>
    
    Autobuild-User(master): Stefan Metzmacher <metze at samba.org>
    Autobuild-Date(master): Tue Jan 10 17:40:58 CET 2017 on sn-devel-144
    
    (cherry picked from commit e84e44ce923e5dc7529bb813e10a2890528a4ab0)
    
    Autobuild-User(v4-5-test): Stefan Metzmacher <metze at samba.org>
    Autobuild-Date(v4-5-test): Thu Jan 12 23:22:28 CET 2017 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 source3/lib/messages.c | 11 +++++++++++
 1 file changed, 11 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 98bcf82..8e404f7 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -470,6 +470,17 @@ int messaging_send_iov_from(struct messaging_context *msg_ctx,
 	ret = messaging_dgm_send(dst.pid, iov2, iovlen+1, fds, num_fds);
 	unbecome_root();
 
+	if (ret == ECONNREFUSED) {
+		/*
+		 * Linux returns this when a socket exists in the file
+		 * system without a listening process. This is not
+		 * documented in susv4 or the linux manpages, but it's
+		 * easily testable. For the higher levels this is the
+		 * same as "destination does not exist"
+		 */
+		ret = ENOENT;
+	}
+
 	return ret;
 }
 


-- 
Samba Shared Repository



More information about the samba-cvs mailing list