From 3c3814da252cdf45e33446c553e0ea009ea9c9bd Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 15 Jun 2002 12:40:37 +0000 Subject: Unsused function since last commit (This used to be commit 957c865cee7f799145f9f1d30dfd0d0a25d826cf) --- source3/lib/username.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'source3') diff --git a/source3/lib/username.c b/source3/lib/username.c index c83b4eea28..4813c8fd19 100644 --- a/source3/lib/username.c +++ b/source3/lib/username.c @@ -82,40 +82,6 @@ char *get_user_home_dir(const char *user) return(pass->pw_dir); } -/**************************************************************************** - Get a users service home directory. -****************************************************************************/ - -char *get_user_service_home_dir(const char *user) -{ - static struct passwd *pass; - int snum; - - /* Ensure the user exists. */ - - pass = Get_Pwnam(user); - - if (!pass) - return(NULL); - - /* If a path is specified in [homes] then use it instead of the - user's home directory from struct passwd. */ - - if ((snum = lp_servicenumber(HOMES_NAME)) != -1) { - static pstring home_dir; - - pstrcpy(home_dir, lp_pathname(snum)); - standard_sub_home(snum, user, home_dir); - - if (home_dir[0]) - return home_dir; - } - - /* Return home directory from struct passwd. */ - - return(pass->pw_dir); -} - /******************************************************************* Map a username from a dos name to a unix name by looking in the username map. Note that this modifies the name in place. -- cgit