summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-15 12:40:37 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-15 12:40:37 +0000
commit3c3814da252cdf45e33446c553e0ea009ea9c9bd (patch)
treee2e709afd2533c4a22d0ccdd1f4b67bb9e5828f6 /source3/lib
parentac08646c374cd70e47301bce3e031b35cb220347 (diff)
downloadsamba-3c3814da252cdf45e33446c553e0ea009ea9c9bd.tar.gz
samba-3c3814da252cdf45e33446c553e0ea009ea9c9bd.tar.bz2
samba-3c3814da252cdf45e33446c553e0ea009ea9c9bd.zip
Unsused function since last commit
(This used to be commit 957c865cee7f799145f9f1d30dfd0d0a25d826cf)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/username.c34
1 files changed, 0 insertions, 34 deletions
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.