diff options
author | Jeremy Allison <jra@samba.org> | 2001-12-04 03:47:44 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-12-04 03:47:44 +0000 |
commit | 8e99888e7b29817e2e242b8fe59a10465500807c (patch) | |
tree | e9045f7afdc268cb7821375508f7adad044688cb /source3/lib | |
parent | 6c3163cc9715188ee8087c6dbf63776f0dc9f1f5 (diff) | |
download | samba-8e99888e7b29817e2e242b8fe59a10465500807c.tar.gz samba-8e99888e7b29817e2e242b8fe59a10465500807c.tar.bz2 samba-8e99888e7b29817e2e242b8fe59a10465500807c.zip |
Moved name_is_local to the correct place. Ooops.
Jeremy.
(This used to be commit 708c0a8d16ca86439e451def5f8d37f600ff15f1)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/username.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c index 071943f2ff..fdb942cd23 100644 --- a/source3/lib/username.c +++ b/source3/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. ****************************************************************************/ |