diff options
-rw-r--r-- | source3/param/loadparm.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 348abcc9e7..3d0aebf230 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2296,13 +2296,8 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService, if (!(*(ServicePtrs[iDefaultService]->szPath)) || strequal(ServicePtrs[iDefaultService]->szPath, lp_pathname(GLOBAL_SECTION_SNUM))) { pstrcpy(newHomedir, pszHomedir); - } else { - pstrcpy(newHomedir, lp_pathname(iDefaultService)); - string_sub(newHomedir,"%H", pszHomedir, sizeof(newHomedir)); - string_sub(newHomedir,"%S", pszHomename, sizeof(newHomedir)); - } - - string_set(&ServicePtrs[i]->szPath, newHomedir); + string_set(&ServicePtrs[i]->szPath, newHomedir); + } if (!(*(ServicePtrs[i]->comment))) { pstring comment; |