The branch, master has been updated
       via  a6ff80cdc1b s3:ctdbd_conn: Fix the build on FreeBSD
      from  930695b04d2 fuzz_dcerpc_parse_binding: don't leak

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit a6ff80cdc1b16f32716bc54c052e8fa8b149b4f9
Author: Martin Schwenke <[email protected]>
Date:   Tue Oct 20 14:47:20 2020 +1100

    s3:ctdbd_conn: Fix the build on FreeBSD
    
    Commit 6b9564c1084d8dc7319857fac984808571ef0eb9 broke the build on
    FreeBSD:
    
    [2321/3909] Compiling source3/smbd/process.c
    ../../source3/smbd/process.c:2797:10: error: use of undeclared identifier 
'EREMOTEIO'
                    return EREMOTEIO;
                           ^
    ../../source3/smbd/process.c:2833:14: error: use of undeclared identifier 
'EREMOTEIO'
                    if (ret == EREMOTEIO) {
                               ^
    2 errors generated.
    
    Use one of the POSIX error codes instead.
    
    Signed-off-by: Martin Schwenke <[email protected]>
    Reviewed-by: David Disseldorp <[email protected]>
    
    Autobuild-User(master): Martin Schwenke <[email protected]>
    Autobuild-Date(master): Tue Oct 20 07:22:08 UTC 2020 on sn-devel-184

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

Summary of changes:
 source3/smbd/process.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 4cf53720067..9e861554fa7 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -2794,7 +2794,7 @@ static int match_cluster_movable_ip(uint32_t 
total_ip_count,
        };
 
        if (is_movable_ip && sockaddr_equal(&pub_ip.u.sa, &srv_ip.u.sa)) {
-               return EREMOTEIO;
+               return EADDRNOTAVAIL;
        }
 
        return 0;
@@ -2830,7 +2830,7 @@ static NTSTATUS smbd_register_ips(struct 
smbXsrv_connection *xconn,
                ret = ctdbd_public_ip_foreach(cconn,
                                              match_cluster_movable_ip,
                                              srv);
-               if (ret == EREMOTEIO) {
+               if (ret == EADDRNOTAVAIL) {
                        xconn->has_cluster_movable_ip = true;
                        DBG_DEBUG("cluster movable IP on %s\n",
                                  smbXsrv_connection_dbg(xconn));


-- 
Samba Shared Repository

Reply via email to