diff options
author | Andrew Bartlett <abartlet@samba.org> | 2013-12-24 16:03:16 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-01-24 16:18:42 -0800 |
commit | 1abe45faac1454662ad0272f5511cf6cc93eecb0 (patch) | |
tree | b672b0cd54ff1ace293c0124742a9f60e656c884 /lib/param/loadparm.c | |
parent | 50cc510584f0a97175c563a96bd641ead874dc93 (diff) | |
download | samba-1abe45faac1454662ad0272f5511cf6cc93eecb0.tar.gz samba-1abe45faac1454662ad0272f5511cf6cc93eecb0.tar.xz samba-1abe45faac1454662ad0272f5511cf6cc93eecb0.zip |
param: Rename variable used for lp_pathname szPath
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/param/loadparm.c')
-rw-r--r-- | lib/param/loadparm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 47acb04a56..a7a11ec5df 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -745,11 +745,11 @@ bool lpcfg_add_home(struct loadparm_context *lp_ctx, if (service == NULL) return false; - if (!(*(default_service->szPath)) - || strequal(default_service->szPath, lp_ctx->sDefault->szPath)) { - service->szPath = talloc_strdup(service, pszHomedir); + if (!(*(default_service->pathname)) + || strequal(default_service->pathname, lp_ctx->sDefault->pathname)) { + service->pathname = talloc_strdup(service, pszHomedir); } else { - service->szPath = string_sub_talloc(service, lpcfg_pathname(default_service, lp_ctx->sDefault), "%H", pszHomedir); + service->pathname = string_sub_talloc(service, lpcfg_pathname(default_service, lp_ctx->sDefault), "%H", pszHomedir); } if (!(*(service->comment))) { @@ -759,7 +759,7 @@ bool lpcfg_add_home(struct loadparm_context *lp_ctx, service->bBrowseable = default_service->bBrowseable; DEBUG(3, ("adding home's share [%s] for user '%s' at '%s'\n", - pszHomename, user, service->szPath)); + pszHomename, user, service->pathname)); return true; } |