summaryrefslogtreecommitdiffstats
path: root/source/lib/substitute.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-05-25 07:37:44 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-05-25 07:37:44 +0000
commitcdcfe3671eb7570e15649b77f708e6579055e7bc (patch)
tree294743143ff156b33ce2f81e44035273849a6d0c /source/lib/substitute.c
parentbbc69545516f29cc4e05ba6238b03eb504f28226 (diff)
downloadsamba-cdcfe3671eb7570e15649b77f708e6579055e7bc.tar.gz
samba-cdcfe3671eb7570e15649b77f708e6579055e7bc.tar.xz
samba-cdcfe3671eb7570e15649b77f708e6579055e7bc.zip
Clean up a few unused functions, add a bit of static etc.
Importantly: The removal of the silly 'delete user script' behaviour when secuity=domain. I have left the name the same - as it still does the (previously documented, but not in smb.conf(5)) sane behaviour of deleting users on request. When we decide what to do with the 'add user' functionality, we might rename it. Andrew Bartlett
Diffstat (limited to 'source/lib/substitute.c')
-rw-r--r--source/lib/substitute.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c
index 09921c145d8..6c56cdd4808 100644
--- a/source/lib/substitute.c
+++ b/source/lib/substitute.c
@@ -226,7 +226,7 @@ void standard_sub_basic(const char *smb_name, char *str)
Do some standard substitutions in a string.
****************************************************************************/
-void standard_sub_advanced(int snum, const char *user, const char *connectpath, gid_t gid, const char *smb_name, char *str)
+static void standard_sub_advanced(int snum, const char *user, const char *connectpath, gid_t gid, const char *smb_name, char *str)
{
char *p, *s, *home;
@@ -391,20 +391,3 @@ void standard_sub_snum(int snum, char *str)
standard_sub_advanced(snum, cached_user, "", -1, current_user_info.smb_name, str);
}
-/*******************************************************************
- Substitute strings with useful parameters.
-********************************************************************/
-
-void standard_sub_vuser(char *str, user_struct *vuser)
-{
- standard_sub_advanced(-1, vuser->user.unix_name, "", -1, current_user_info.smb_name, str);
-}
-
-/*******************************************************************
- Substitute strings with useful parameters.
-********************************************************************/
-
-void standard_sub_vsnum(char *str, user_struct *vuser, int snum)
-{
- standard_sub_advanced(snum, vuser->user.unix_name, "", -1, current_user_info.smb_name, str);
-}