diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-12-10 23:29:39 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:05:47 -0500 |
commit | c911ac23a94909b61a8e7cdcb4a9e2f7e6b31600 (patch) | |
tree | f31470d188b79f1a445dc6de588a71e799559bea | |
parent | 661c5c741a5285a5ddf8c1fc74ba50335f1c1931 (diff) | |
download | samba-c911ac23a94909b61a8e7cdcb4a9e2f7e6b31600.tar.gz samba-c911ac23a94909b61a8e7cdcb4a9e2f7e6b31600.tar.xz samba-c911ac23a94909b61a8e7cdcb4a9e2f7e6b31600.zip |
r12169: Remove an unused function
(This used to be commit 209e4f8793fe9375fc6af1aedb5bd1fe57193bbc)
-rw-r--r-- | source3/lib/util_sid.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 92bc2fb8931..b94be474a9e 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -156,41 +156,6 @@ const char *get_global_sam_name(void) return global_myname(); } -/************************************************************************** - Splits a name of format \DOMAIN\name or name into its two components. - Sets the DOMAIN name to global_myname() if it has not been specified. -***************************************************************************/ - -void split_domain_name(const char *fullname, char *domain, char *name) -{ - pstring full_name; - const char *sep; - char *p; - - sep = lp_winbind_separator(); - - *domain = *name = '\0'; - - if (fullname[0] == sep[0] || fullname[0] == '\\') - fullname++; - - pstrcpy(full_name, fullname); - p = strchr_m(full_name+1, '\\'); - if (!p) p = strchr_m(full_name+1, sep[0]); - - if (p != NULL) { - *p = 0; - fstrcpy(domain, full_name); - fstrcpy(name, p+1); - } else { - fstrcpy(domain, get_global_sam_name()); - fstrcpy(name, full_name); - } - - DEBUG(10,("split_domain_name:name '%s' split into domain :'%s' and user :'%s'\n", - fullname, domain, name)); -} - /***************************************************************** Convert a SID to an ascii string. *****************************************************************/ |