we don't need the separate lp_status() connection records any more
authorAndrew Tridgell <tridge@samba.org>
Fri, 17 Nov 2000 03:31:03 +0000 (03:31 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 17 Nov 2000 03:31:03 +0000 (03:31 +0000)
(This used to be commit 209e20365e562371aafafea301b4ffecc3d4c3ed)

source3/smbd/service.c

index ba381a40e8218e79726e11ea2f119065533a2e5a..2dbb2c0d17e14da72196897eb296aeadaf61b72f 100644 (file)
@@ -468,10 +468,6 @@ connection_struct *make_connection(char *service,char *user,char *password, int
                return NULL;
        }  
                
-       if (lp_status(SNUM(conn)))
-               claim_connection(conn,"",
-                                MAXSTATUS,False);
-
        conn->nt_user_token = create_nt_token(conn->uid, conn->gid, conn->ngroups, conn->groups);
 
        /* Initialise VFS function pointers */
@@ -520,9 +516,6 @@ connection_struct *make_connection(char *service,char *user,char *password, int
                yield_connection(conn,
                                 lp_servicename(SNUM(conn)),
                                 lp_max_connections(SNUM(conn)));
-               if (lp_status(SNUM(conn))) {
-                       yield_connection(conn,"",MAXSTATUS);
-               }
                conn_free(conn);
                *ecode = ERRbadpw;
                return NULL;
@@ -535,8 +528,6 @@ connection_struct *make_connection(char *service,char *user,char *password, int
                yield_connection(conn,
                                 lp_servicename(SNUM(conn)),
                                 lp_max_connections(SNUM(conn)));
-               if (lp_status(SNUM(conn))) 
-                       yield_connection(conn,"",MAXSTATUS);
                conn_free(conn);
                *ecode = ERRnosuchshare;
                return NULL;
@@ -630,9 +621,6 @@ void close_cnum(connection_struct *conn, uint16 vuid)
                         lp_servicename(SNUM(conn)),
                         lp_max_connections(SNUM(conn)));
 
-       if (lp_status(SNUM(conn)))
-               yield_connection(conn,"",MAXSTATUS);
-
        file_close_conn(conn);
        dptr_closecnum(conn);