summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/libnet/libnet_conf.c8
-rw-r--r--source3/utils/net_conf.c16
2 files changed, 12 insertions, 12 deletions
diff --git a/source3/libnet/libnet_conf.c b/source3/libnet/libnet_conf.c
index 0f11bbbc49..ad9ae4994b 100644
--- a/source3/libnet/libnet_conf.c
+++ b/source3/libnet/libnet_conf.c
@@ -678,9 +678,9 @@ done:
/**
* set a configuration parameter to the value provided.
*/
-WERROR libnet_smbconf_setparm(const char *service,
- const char *param,
- const char *valstr)
+WERROR libnet_conf_set_parameter(const char *service,
+ const char *param,
+ const char *valstr)
{
WERROR werr;
struct registry_key *key = NULL;
@@ -796,6 +796,6 @@ done:
WERROR libnet_smbconf_set_global_param(const char *param,
const char *val)
{
- return libnet_smbconf_setparm(GLOBAL_NAME, param, val);
+ return libnet_conf_set_parameter(GLOBAL_NAME, param, val);
}
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c
index 340cb37541..c8de6a555b 100644
--- a/source3/utils/net_conf.c
+++ b/source3/utils/net_conf.c
@@ -229,9 +229,9 @@ static int import_process_service(TALLOC_CTX *ctx,
if (opt_testmode) {
d_printf("\t%s = %s\n", parm->label, valstr);
} else {
- werr = libnet_smbconf_setparm(servicename,
- parm->label,
- valstr);
+ werr = libnet_conf_set_parameter(servicename,
+ parm->label,
+ valstr);
if (!W_ERROR_IS_OK(werr)) {
d_fprintf(stderr,
"Error setting parameter '%s'"
@@ -642,7 +642,7 @@ static int net_conf_addshare(int argc, const char **argv)
* fill the share with parameters
*/
- werr = libnet_smbconf_setparm(sharename, "path", path);
+ werr = libnet_conf_set_parameter(sharename, "path", path);
if (!W_ERROR_IS_OK(werr)) {
d_fprintf(stderr, "Error setting parameter %s: %s\n",
"path", dos_errstr(werr));
@@ -650,7 +650,7 @@ static int net_conf_addshare(int argc, const char **argv)
}
if (comment != NULL) {
- werr = libnet_smbconf_setparm(sharename, "comment", comment);
+ werr = libnet_conf_set_parameter(sharename, "comment", comment);
if (!W_ERROR_IS_OK(werr)) {
d_fprintf(stderr, "Error setting parameter %s: %s\n",
"comment", dos_errstr(werr));
@@ -658,14 +658,14 @@ static int net_conf_addshare(int argc, const char **argv)
}
}
- werr = libnet_smbconf_setparm(sharename, "guest ok", guest_ok);
+ werr = libnet_conf_set_parameter(sharename, "guest ok", guest_ok);
if (!W_ERROR_IS_OK(werr)) {
d_fprintf(stderr, "Error setting parameter %s: %s\n",
"'guest ok'", dos_errstr(werr));
goto done;
}
- werr = libnet_smbconf_setparm(sharename, "writeable", writeable);
+ werr = libnet_conf_set_parameter(sharename, "writeable", writeable);
if (!W_ERROR_IS_OK(werr)) {
d_fprintf(stderr, "Error setting parameter %s: %s\n",
"writeable", dos_errstr(werr));
@@ -719,7 +719,7 @@ static int net_conf_setparm(int argc, const char **argv)
param = strdup_lower(argv[1]);
value_str = argv[2];
- werr = libnet_smbconf_setparm(service, param, value_str);
+ werr = libnet_conf_set_parameter(service, param, value_str);
if (!W_ERROR_IS_OK(werr)) {
d_fprintf(stderr, "Error setting value '%s': %s\n",