summaryrefslogtreecommitdiff
path: root/source4/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/param/loadparm.c')
-rw-r--r--source4/param/loadparm.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index f000509e47..1ee1ef157e 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2994,29 +2994,7 @@ BOOL lp_snum_ok(int iService)
static void lp_add_auto_services(char *str)
{
- char *s;
- char *p;
- int homes;
-
- if (!str)
- return;
-
- s = strdup(str);
- if (!s)
- return;
-
- homes = lp_servicenumber(HOMES_NAME);
-
- for (p = strtok(s, LIST_SEP); p; p = strtok(NULL, LIST_SEP)) {
- char *home = get_user_home_dir(p);
-
- if (lp_servicenumber(p) >= 0)
- continue;
-
- if (home && homes >= 0)
- lp_add_home(p, homes, p, home);
- }
- SAFE_FREE(s);
+ return;
}
/***************************************************************************