summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-30 04:23:59 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-30 04:23:59 +0000
commitd91cbdac92ca52c96148bc14b109865353728728 (patch)
treed5fc1e84fa37820ec18e291177d42775d4d3cad3 /source3/param
parenta46793938082f8abed4a3b8e8fa608bb50f5de46 (diff)
downloadsamba-d91cbdac92ca52c96148bc14b109865353728728.tar.gz
samba-d91cbdac92ca52c96148bc14b109865353728728.tar.bz2
samba-d91cbdac92ca52c96148bc14b109865353728728.zip
These pointers should be for the service we just cloned, not the new service
as it might actually not be a clone, but a 'found' service. Previously this meant that a second session setup on the same TCP/IP connection for a user would write '' as the home directory. Instead, I want it to update the share to be there current home directory (so that this can be updated without the need to reboot the client for example). Andrew Bartlett (This used to be commit 84c1a5b0f046fa0375563120da117a8e76fb5b8c)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 98e358704d..33e57e36e2 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1914,8 +1914,8 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService,
if (i < 0)
return (False);
- if (!(*(ServicePtrs[i]->szPath))
- || strequal(ServicePtrs[i]->szPath, lp_pathname(-1))) {
+ if (!(*(ServicePtrs[iDefaultService]->szPath))
+ || strequal(ServicePtrs[iDefaultService]->szPath, lp_pathname(-1))) {
pstrcpy(newHomedir, pszHomedir);
} else {
pstrcpy(newHomedir, lp_pathname(iDefaultService));