summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-04 03:47:44 +0000
committerJeremy Allison <jra@samba.org>2001-12-04 03:47:44 +0000
commit708c0a8d16ca86439e451def5f8d37f600ff15f1 (patch)
treeb79fc05899ddbe712362afb934f9842d961222c1
parent5630a988be05c21b60aba6304d4aaadce6024817 (diff)
downloadsamba-708c0a8d16ca86439e451def5f8d37f600ff15f1.tar.gz
samba-708c0a8d16ca86439e451def5f8d37f600ff15f1.tar.xz
samba-708c0a8d16ca86439e451def5f8d37f600ff15f1.zip
Moved name_is_local to the correct place. Ooops.
Jeremy.
-rw-r--r--source/lib/username.c10
-rw-r--r--source/smbd/uid.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/source/lib/username.c b/source/lib/username.c
index 071943f2ffc..fdb942cd234 100644
--- a/source/lib/username.c
+++ b/source/lib/username.c
@@ -25,6 +25,16 @@
static struct passwd *uname_string_combinations(char *s, struct passwd * (*fn) (const char *), int N);
static struct passwd *uname_string_combinations2(char *s, int offset, struct passwd * (*fn) (const char *), int N);
+/*****************************************************************
+ Check if a user or group name is local (this is a *local* name for
+ *local* people, there's nothing for you here...).
+*****************************************************************/
+
+BOOL name_is_local(const char *name)
+{
+ return !strchr_m(name, *lp_winbind_separator());
+}
+
/****************************************************************************
Get a users home directory.
****************************************************************************/
diff --git a/source/smbd/uid.c b/source/smbd/uid.c
index 9a9de0a796e..524ddb15ab2 100644
--- a/source/smbd/uid.c
+++ b/source/smbd/uid.c
@@ -437,16 +437,6 @@ void add_supplementary_nt_login_groups(int *n_groups, gid_t **pp_groups, NT_USER
}
/*****************************************************************
- Check if a user or group name is local (this is a *local* name for
- *local* people, there's nothing for you here...).
-*****************************************************************/
-
-BOOL name_is_local(const char *name)
-{
- return !strchr_m(name, *lp_winbind_separator());
-}
-
-/*****************************************************************
*THE CANONICAL* convert name to SID function.
Tries winbind first - then uses local lookup.
*****************************************************************/