summaryrefslogtreecommitdiff
path: root/source3/smbd/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/service.c')
-rw-r--r--source3/smbd/service.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index ac2e2ee548..a9b9a9d4d9 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -84,7 +84,7 @@ int add_home_service(const char *service, const char *homedir)
int iHomeService;
int iService;
fstring new_service;
- char *usr_p = NULL;
+ fstring domain;
if (!service || !homedir)
return -1;
@@ -99,11 +99,7 @@ int add_home_service(const char *service, const char *homedir)
* include any macros.
*/
- fstrcpy(new_service, service);
-
- if ((usr_p = strchr_m(service,*lp_winbind_separator())) != NULL)
- fstrcpy(new_service, usr_p+1);
-
+ split_domain_and_name(service, domain, new_service);
lp_add_home(new_service, iHomeService, homedir);
iService = lp_servicenumber(new_service);