summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/param/param_functions.c2
-rw-r--r--lib/param/param_table.c6
-rw-r--r--source3/smbd/process.c10
3 files changed, 9 insertions, 9 deletions
diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c
index bc6746b25b3..e028b207382 100644
--- a/lib/param/param_functions.c
+++ b/lib/param/param_functions.c
@@ -402,7 +402,7 @@ FN_GLOBAL_STRING(perfcount_module, perfcount_module)
FN_GLOBAL_STRING(remote_announce, remote_announce)
FN_GLOBAL_STRING(remote_browse_sync, remote_browse_sync)
FN_GLOBAL_STRING(rename_user_script, rename_user_script)
-FN_GLOBAL_STRING(rootdir, rootdir)
+FN_GLOBAL_STRING(root_directory, root_directory)
FN_GLOBAL_STRING(server_string, server_string)
FN_GLOBAL_STRING(set_primary_group_script, set_primary_group_script)
FN_GLOBAL_STRING(set_quota_command, set_quota_command)
diff --git a/lib/param/param_table.c b/lib/param/param_table.c
index 746d8e4ad8d..d5ef200e4cc 100644
--- a/lib/param/param_table.c
+++ b/lib/param/param_table.c
@@ -556,7 +556,7 @@ static struct parm_struct parm_table[] = {
.label = "root directory",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(rootdir),
+ .offset = GLOBAL_VAR(root_directory),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_ADVANCED,
@@ -565,7 +565,7 @@ static struct parm_struct parm_table[] = {
.label = "root dir",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(rootdir),
+ .offset = GLOBAL_VAR(root_directory),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,
@@ -574,7 +574,7 @@ static struct parm_struct parm_table[] = {
.label = "root",
.type = P_STRING,
.p_class = P_GLOBAL,
- .offset = GLOBAL_VAR(rootdir),
+ .offset = GLOBAL_VAR(root_directory),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 1e1b8738b4f..f5ca2f95948 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -3513,17 +3513,17 @@ void smbd_process(struct tevent_context *ev_ctx,
exit_server("Could not open account policy tdb.\n");
}
- if (*lp_rootdir(talloc_tos())) {
- if (chroot(lp_rootdir(talloc_tos())) != 0) {
+ if (*lp_root_directory(talloc_tos())) {
+ if (chroot(lp_root_directory(talloc_tos())) != 0) {
DEBUG(0,("Failed to change root to %s\n",
- lp_rootdir(talloc_tos())));
+ lp_root_directory(talloc_tos())));
exit_server("Failed to chroot()");
}
if (chdir("/") == -1) {
- DEBUG(0,("Failed to chdir to / on chroot to %s\n", lp_rootdir(talloc_tos())));
+ DEBUG(0,("Failed to chdir to / on chroot to %s\n", lp_root_directory(talloc_tos())));
exit_server("Failed to chroot()");
}
- DEBUG(0,("Changed root to %s\n", lp_rootdir(talloc_tos())));
+ DEBUG(0,("Changed root to %s\n", lp_root_directory(talloc_tos())));
}
if (!srv_init_signing(sconn)) {