summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-15 13:05:37 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-15 13:05:37 +0000
commit249368f937406e1c714fff3d44775c414b32ff21 (patch)
tree0d1406b3b5851384bee9df102cffef37975744fd /source3/param/loadparm.c
parent3c3814da252cdf45e33446c553e0ea009ea9c9bd (diff)
downloadsamba-249368f937406e1c714fff3d44775c414b32ff21.tar.gz
samba-249368f937406e1c714fff3d44775c414b32ff21.tar.bz2
samba-249368f937406e1c714fff3d44775c414b32ff21.zip
Simplify this code further. Just substitute %H, and let the normal code
paths handle the rest later. Andrew Bartlett (This used to be commit 09754ec797c4232d2016c7eff2e74044f28ebb7c)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 3c0820491d..5be1fb2762 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1902,8 +1902,7 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService,
pstrcpy(newHomedir, pszHomedir);
} else {
pstrcpy(newHomedir, lp_pathname(iDefaultService));
- standard_sub_home(iDefaultService, pszHomename, user,
- pszHomedir, newHomedir);
+ string_sub(newHomedir,"%H", pszHomedir, sizeof(newHomedir));
}
string_set(&ServicePtrs[i]->szPath, newHomedir);
@@ -1912,7 +1911,7 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService,
{
pstring comment;
slprintf(comment, sizeof(comment) - 1,
- "Home directory of %s", pszHomename);
+ "Home directory of %s", user);
string_set(&ServicePtrs[i]->comment, comment);
}
ServicePtrs[i]->bAvailable = sDefault.bAvailable;
@@ -1921,7 +1920,7 @@ BOOL lp_add_home(const char *pszHomename, int iDefaultService,
DEBUG(3,
("adding home's share [%s] for user %s at %s\n", pszHomename,
user, newHomedir));
-
+
return (True);
}