1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

r719: Follow the trend - remove more unused functions.

Andrew Bartlett
(This used to be commit 62eef851fd79b2739b93b4ed7829514a3dcbf1d0)
This commit is contained in:
Andrew Bartlett 2004-05-14 05:41:21 +00:00 committed by Gerald (Jerry) Carter
parent 5767c10773
commit 6b921d1d21
5 changed files with 1 additions and 48 deletions

View 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.

View 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.
****************************************************************************/

View File

@ -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; }

View 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; }

View 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])