if (service == NULL)
return false;
- if (!(*(default_service->pathname))
- || strequal(default_service->pathname, lp_ctx->sDefault->pathname)) {
- service->pathname = talloc_strdup(service, pszHomedir);
+ if (!(*(default_service->path))
+ || strequal(default_service->path, lp_ctx->sDefault->path)) {
+ service->path = talloc_strdup(service, pszHomedir);
} else {
- service->pathname = string_sub_talloc(service, lpcfg_path(default_service, lp_ctx->sDefault), "%H", pszHomedir);
+ service->path = string_sub_talloc(service, lpcfg_path(default_service, lp_ctx->sDefault), "%H", pszHomedir);
}
if (!(*(service->comment))) {
service->browseable = default_service->browseable;
DEBUG(3, ("adding home's share [%s] for user '%s' at '%s'\n",
- pszHomename, user, service->pathname));
+ pszHomename, user, service->path));
return true;
}
.usershare = 0,
.usershare_last_mod = {0, 0},
.szService = NULL,
- .pathname = NULL,
+ .path = NULL,
.username = NULL,
.invalid_users = NULL,
.valid_users = NULL,
if (i < 0)
return false;
- if (!(*(ServicePtrs[iDefaultService]->pathname))
- || strequal(ServicePtrs[iDefaultService]->pathname,
+ if (!(*(ServicePtrs[iDefaultService]->path))
+ || strequal(ServicePtrs[iDefaultService]->path,
lp_path(talloc_tos(), GLOBAL_SECTION_SNUM))) {
- string_set(&ServicePtrs[i]->pathname, pszHomedir);
+ string_set(&ServicePtrs[i]->path, pszHomedir);
}
if (!(*(ServicePtrs[i]->comment))) {
ServicePtrs[i]->autoloaded = true;
DEBUG(3, ("adding home's share [%s] for user '%s' at '%s'\n", pszHomename,
- user, ServicePtrs[i]->pathname ));
+ user, ServicePtrs[i]->path ));
return true;
}
return false;
}
- string_set(&ServicePtrs[i]->pathname, tmpdir());
+ string_set(&ServicePtrs[i]->path, tmpdir());
string_set(&ServicePtrs[i]->username, "");
string_set(&ServicePtrs[i]->comment, comment);
string_set(&ServicePtrs[i]->fstype, "IPC");
ServicePtrs[iService]->browseable = false;
}
- if (ServicePtrs[iService]->pathname[0] == '\0' &&
+ if (ServicePtrs[iService]->path[0] == '\0' &&
strwicmp(ServicePtrs[iService]->szService, HOMES_NAME) != 0 &&
ServicePtrs[iService]->msdfs_proxy[0] == '\0'
) {
}
}
- if (snum != -1 && (strcmp(sharepath, ServicePtrs[snum]->pathname) == 0)) {
+ if (snum != -1 && (strcmp(sharepath, ServicePtrs[snum]->path) == 0)) {
/* Path didn't change, no checks needed. */
*pp_sharepath = sharepath;
*pp_comment = comment;
/* And note when it was loaded. */
ServicePtrs[iService]->usershare_last_mod = sbuf.st_ex_mtime;
- string_set(&ServicePtrs[iService]->pathname, sharepath);
+ string_set(&ServicePtrs[iService]->path, sharepath);
string_set(&ServicePtrs[iService]->comment, comment);
ret = iService;