[PATCH] smbd: Remove dead code
Volker Lendecke
Volker.Lendecke at SerNet.DE
Thu Nov 12 20:16:13 UTC 2015
Hi!
Review&push appreciated!
Thanks,
Volker
--
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From 55f0f1fb6b1fb3efb51560e0bf9ff7afbce7afb0 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Thu, 12 Nov 2015 21:09:35 +0100
Subject: [PATCH] smbd: Remove dead code
94f0716fff has removed the dcelogin_atmost_once variable.
Signed-off-by: Volker Lendecke <vl at samba.org>
---
source3/include/smb.h | 5 -----
source3/smbd/server.c | 4 ----
source3/smbd/server_exit.c | 6 ------
3 files changed, 15 deletions(-)
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 751b0e6..d1d7a81 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -484,11 +484,6 @@ Offset Data length.
#define SMB_SUCCESS 0 /* The request was successful. */
-#ifdef WITH_DFS
-void dfs_unlogin(void);
-extern int dcelogin_atmost_once;
-#endif
-
#ifdef NOSTRDUP
char *strdup(char *s);
#endif
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index e75ebc3..d7c4c97 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -101,10 +101,6 @@ extern void start_fssd(struct tevent_context *ev_ctx,
extern void start_mdssd(struct tevent_context *ev_ctx,
struct messaging_context *msg_ctx);
-#ifdef WITH_DFS
-extern int dcelogin_atmost_once;
-#endif /* WITH_DFS */
-
/*******************************************************************
What to do when smb.conf is updated.
********************************************************************/
diff --git a/source3/smbd/server_exit.c b/source3/smbd/server_exit.c
index 7f1bbbd..bf50394 100644
--- a/source3/smbd/server_exit.c
+++ b/source3/smbd/server_exit.c
@@ -178,12 +178,6 @@ static void exit_server_common(enum server_exit_reason how,
serverid_deregister(messaging_server_id(msg_ctx));
}
-#ifdef WITH_DFS
- if (dcelogin_atmost_once) {
- dfs_unlogin();
- }
-#endif
-
#ifdef USE_DMAPI
/* Destroy Samba DMAPI session only if we are master smbd process */
if (am_parent) {
--
1.7.9.5
More information about the samba-technical
mailing list