mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
Remove extra headers, and ensure that we correctly bail out of winbindd if we
can't create the socket. Andrew Bartlett (This used to be commit 13b9af53bff8e42126a38f93c3bdd5b4d9b20aba)
This commit is contained in:
parent
f634f24cf8
commit
8f84d170af
@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb.h"
|
||||
|
||||
/* This is our local master browser list database. */
|
||||
extern ubi_dlList lmb_browserlist[];
|
||||
|
@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb.h"
|
||||
|
||||
extern int ClientNMB;
|
||||
|
||||
|
@ -24,7 +24,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb.h"
|
||||
|
||||
extern int ClientNMB;
|
||||
extern int ClientDGRAM;
|
||||
|
@ -28,7 +28,6 @@
|
||||
also allows us to have more than 1 sync going at once (tridge) */
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb.h"
|
||||
|
||||
struct sync_record {
|
||||
struct sync_record *next, *prev;
|
||||
|
@ -22,7 +22,6 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb.h"
|
||||
|
||||
extern int ClientNMB;
|
||||
|
||||
|
@ -24,8 +24,7 @@
|
||||
Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "winbind_nss_config.h"
|
||||
#include "winbindd_nss.h"
|
||||
#include "winbind_client.h"
|
||||
|
||||
/* Global variables. These are effectively the client state information */
|
||||
|
||||
|
@ -519,6 +519,12 @@ static void process_loop(void)
|
||||
/* Initialise fd lists for select() */
|
||||
|
||||
listen_sock = open_winbindd_socket();
|
||||
|
||||
if (listen_sock == -1) {
|
||||
perror("open_winbind_socket");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
maxfd = listen_sock;
|
||||
|
||||
FD_ZERO(&r_fds);
|
||||
|
Loading…
x
Reference in New Issue
Block a user