r719: Follow the trend - remove more unused functions.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 14 May 2004 05:41:21 +0000 (05:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:53:45 +0000 (12:53 -0500)
Andrew Bartlett
(This used to be commit 62eef851fd79b2739b93b4ed7829514a3dcbf1d0)

source4/auth/auth.c
source4/auth/auth_util.c
source4/libcli/raw/clirewrite.c [deleted file]
source4/smbd/rewrite.c
source4/torture/config.m4

index 83446721e6b96d26918ea2e9e8b24420ce3a3549..5016292e39a5e65a757184c1b6984f91af1c217c 100644 (file)
@@ -133,9 +133,6 @@ static BOOL check_domain_match(const char *user, const char *domain)
  * Check a user's password, as given in the user_info struct and return various
  * interesting details in the server_info struct.
  *
- * This function does NOT need to be in a become_root()/unbecome_root() pair
- * as it makes the calls itself when needed.
- *
  * The return value takes precedence over the contents of the server_info 
  * struct.  When the return is other than NT_STATUS_OK the contents 
  * of that structure is undefined.
index fda8c18fa4abfb6e338787317fdb27fa38445ace..e72368132a71e567c2fa05a8a29a3a0a6b7b3867 100644 (file)
@@ -406,21 +406,6 @@ void debug_nt_user_token(int dbg_class, int dbg_lev, NT_USER_TOKEN *token)
                                               sid_to_string(sid_str, token->user_sids[i])));
 }
 
-/****************************************************************************
- prints a UNIX 'token' to debug output.
-****************************************************************************/
-
-void debug_unix_user_token(int dbg_class, int dbg_lev, uid_t uid, gid_t gid, int n_groups, gid_t *groups)
-{
-       int     i;
-       DEBUGC(dbg_class, dbg_lev, ("UNIX token of user %ld\n", (long int)uid));
-
-       DEBUGADDC(dbg_class, dbg_lev, ("Primary group is %ld and contains %i supplementary groups\n", (long int)gid, n_groups));
-       for (i = 0; i < n_groups; i++)
-               DEBUGADDC(dbg_class, dbg_lev, ("Group[%3i]: %ld\n", i, 
-                       (long int)groups[i]));
-}
-
 /****************************************************************************
  Create the SID list for this user.
 ****************************************************************************/
diff --git a/source4/libcli/raw/clirewrite.c b/source4/libcli/raw/clirewrite.c
deleted file mode 100644 (file)
index 2d2e2e3..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "includes.h"
-
-/*
-
- this is a set of temporary stub functions used during the libsmb rewrite.
- This file will need to go away before the rewrite is complete.
-*/
-
-void become_root(void)
-{}
-
-void unbecome_root(void)
-{}
-
-BOOL become_user_permanently(uid_t uid, gid_t gid)
-{ return True; }
-
-void set_effective_uid(uid_t uid)
-{}
-
-uid_t sec_initial_uid(void)
-{ return 0; }
index e959fd049dcd4147369c9413ab882aec3a55fa06..6dc130d2794e468ffba8b8a7367b47be30e42ba8 100644 (file)
@@ -35,12 +35,6 @@ BOOL init_change_notify(void)
 BOOL pcap_printername_ok(const char *service, char *foo)
 { return True; }
 
-void become_root(void)
-{}
-
-void unbecome_root(void)
-{}
-
 BOOL namecache_enable(void)
 { return True; }
 
index 587840a0f15e10ac5230cc90d7b1558f47a63001..ce88830357e874ef639168f5e00860b7f66e1acb 100644 (file)
@@ -58,7 +58,6 @@ SMB_SUBSYSTEM(TORTURE_NBENCH,[],
 
 SMB_BINARY(smbtorture, [ALL], [BIN],
                [torture/torture.o
-               torture/torture_util.o
-               libcli/raw/clirewrite.o],
+               torture/torture_util.o],
                [],
                [TORTURE_BASIC TORTURE_RAW TORTURE_RPC TORTURE_NBENCH CONFIG LIBCMDLINE LIBBASIC])