From 816724fb39ba1d13f553704b2deaa3e8e716c5ab Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 9 Jul 2003 03:32:07 +0000 Subject: more compile fixes for become/unbecome_root() (This used to be commit f005f1cf12b839f3985ab00315da63c584ce803e) --- source3/rpcclient/rpcclient.c | 15 +++++++++++++++ source3/utils/net.c | 15 +++++++++++++++ source3/utils/pdbedit.c | 15 +++++++++++++++ source3/utils/smbpasswd.c | 15 +++++++++++++++ 4 files changed, 60 insertions(+) diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index a1b0a8cd34..7c382a9813 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -37,6 +37,21 @@ static struct cmd_list { struct cmd_set *cmd_set; } *cmd_list; +/***************************************************************************** + stubb functions +****************************************************************************/ + +void become_root( void ) +{ + return; +} + +void unbecome_root( void ) +{ + return; +} + + /**************************************************************************** handle completion of commands for readline ****************************************************************************/ diff --git a/source3/utils/net.c b/source3/utils/net.c index 25a752179f..e643a3d10d 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -77,6 +77,21 @@ static int opt_machine_pass = 0; BOOL opt_have_ip = False; struct in_addr opt_dest_ip; +/***************************************************************************** + stubb functions +****************************************************************************/ + +void become_root( void ) +{ + return; +} + +void unbecome_root( void ) +{ + return; +} + + uint32 get_sec_channel_type(const char *param) { if (!(param && *param)) { diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index 2f57470c4a..83f61769e2 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -51,6 +51,21 @@ #define MASK_ALWAYS_GOOD 0x0000001F #define MASK_USER_GOOD 0x00401F00 +/***************************************************************************** + stubb functions +****************************************************************************/ + +void become_root( void ) +{ + return; +} + +void unbecome_root( void ) +{ + return; +} + + /********************************************************* Add all currently available users to another db ********************************************************/ diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 0b2714cbf8..2781e630f5 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -37,6 +37,21 @@ static const char *remote_machine = NULL; static fstring ldap_secret; +/***************************************************************************** + stubb functions +****************************************************************************/ + +void become_root( void ) +{ + return; +} + +void unbecome_root( void ) +{ + return; +} + + /********************************************************* Print command usage on stderr and die. **********************************************************/ -- cgit