diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-12-01 03:14:30 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-12-01 03:14:30 +0000 |
commit | 13b9af53bff8e42126a38f93c3bdd5b4d9b20aba (patch) | |
tree | bd0328efa0f3579002dd17c6d7710d48d2867136 /source/nsswitch | |
parent | ea18d02036b4e0502e5ecb057c9fe381709a07d8 (diff) | |
download | samba-13b9af53bff8e42126a38f93c3bdd5b4d9b20aba.tar.gz samba-13b9af53bff8e42126a38f93c3bdd5b4d9b20aba.tar.xz samba-13b9af53bff8e42126a38f93c3bdd5b4d9b20aba.zip |
Remove extra headers, and ensure that we correctly bail out of winbindd if we
can't create the socket.
Andrew Bartlett
Diffstat (limited to 'source/nsswitch')
-rw-r--r-- | source/nsswitch/wb_common.c | 3 | ||||
-rw-r--r-- | source/nsswitch/winbindd.c | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/source/nsswitch/wb_common.c b/source/nsswitch/wb_common.c index e0cae0abe3e..89c751a4efb 100644 --- a/source/nsswitch/wb_common.c +++ b/source/nsswitch/wb_common.c @@ -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 */ diff --git a/source/nsswitch/winbindd.c b/source/nsswitch/winbindd.c index 57c1fc84b57..b4d1773e9ce 100644 --- a/source/nsswitch/winbindd.c +++ b/source/nsswitch/winbindd.c @@ -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); |