summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-01-28 22:53:04 +0000
committerDerrell Lipman <derrell@samba.org>2006-01-28 22:53:04 +0000
commit8e40f54fbc0f18732b98730c16022923b37c65b7 (patch)
tree7fec57191368a498282d032819b76fc9dbd97bbe /source/torture
parent6c1e874935c285a278ae18351b4bde309ba32bca (diff)
downloadsamba-8e40f54fbc0f18732b98730c16022923b37c65b7.tar.gz
samba-8e40f54fbc0f18732b98730c16022923b37c65b7.tar.xz
samba-8e40f54fbc0f18732b98730c16022923b37c65b7.zip
r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500
lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/locktest.c2
-rw-r--r--source/torture/locktest2.c2
-rw-r--r--source/torture/masktest.c2
-rw-r--r--source/torture/msgtest.c2
-rw-r--r--source/torture/rpctorture.c2
-rw-r--r--source/torture/t_push_ucs2.c2
-rw-r--r--source/torture/t_strcmp.c2
-rw-r--r--source/torture/t_strstr.c2
-rw-r--r--source/torture/torture.c2
-rw-r--r--source/torture/vfstest.c4
10 files changed, 11 insertions, 11 deletions
diff --git a/source/torture/locktest.c b/source/torture/locktest.c
index c8336ebaf66..913df885bae 100644
--- a/source/torture/locktest.c
+++ b/source/torture/locktest.c
@@ -586,7 +586,7 @@ static void usage(void)
argc -= NSERVERS;
argv += NSERVERS;
- lp_load(dyn_CONFIGFILE,True,False,False);
+ lp_load(dyn_CONFIGFILE,True,False,False,True);
load_interfaces();
if (getenv("USER")) {
diff --git a/source/torture/locktest2.c b/source/torture/locktest2.c
index fc180bfafe2..519acebe8e8 100644
--- a/source/torture/locktest2.c
+++ b/source/torture/locktest2.c
@@ -498,7 +498,7 @@ static void usage(void)
argc -= 4;
argv += 4;
- lp_load(dyn_CONFIGFILE,True,False,False);
+ lp_load(dyn_CONFIGFILE,True,False,False,True);
load_interfaces();
if (getenv("USER")) {
diff --git a/source/torture/masktest.c b/source/torture/masktest.c
index 07bfe691217..ffc9a20e71c 100644
--- a/source/torture/masktest.c
+++ b/source/torture/masktest.c
@@ -454,7 +454,7 @@ static void usage(void)
argc -= 1;
argv += 1;
- lp_load(dyn_CONFIGFILE,True,False,False);
+ lp_load(dyn_CONFIGFILE,True,False,False,True);
load_interfaces();
if (getenv("USER")) {
diff --git a/source/torture/msgtest.c b/source/torture/msgtest.c
index d691ab32f1d..f7c47ddbbf8 100644
--- a/source/torture/msgtest.c
+++ b/source/torture/msgtest.c
@@ -41,7 +41,7 @@ void pong_message(int msg_type, struct process_id src, void *buf, size_t len)
setup_logging(argv[0],True);
- lp_load(dyn_CONFIGFILE,False,False,False);
+ lp_load(dyn_CONFIGFILE,False,False,False,True);
message_init();
diff --git a/source/torture/rpctorture.c b/source/torture/rpctorture.c
index 28067c1a0ae..d69cc8eb8df 100644
--- a/source/torture/rpctorture.c
+++ b/source/torture/rpctorture.c
@@ -242,7 +242,7 @@ enum client_action
*term_code = 0;
#endif /* KANJI */
- if (!lp_load(dyn_CONFIGFILE,True, False, False))
+ if (!lp_load(dyn_CONFIGFILE,True, False, False, True))
{
fprintf(stderr, "Can't load %s - run testparm to debug it\n", dyn_CONFIGFILE);
}
diff --git a/source/torture/t_push_ucs2.c b/source/torture/t_push_ucs2.c
index 8bfc6f7ad9e..8d327acfa56 100644
--- a/source/torture/t_push_ucs2.c
+++ b/source/torture/t_push_ucs2.c
@@ -33,7 +33,7 @@ int main(int argc, char *argv[])
int count = 1;
/* Needed to initialize character set */
- lp_load("/dev/null", True, False, False);
+ lp_load("/dev/null", True, False, False, True);
if (argc < 2) {
fprintf(stderr, "usage: %s STRING1 [COUNT]\n"
diff --git a/source/torture/t_strcmp.c b/source/torture/t_strcmp.c
index bc8640ee550..318423b8be0 100644
--- a/source/torture/t_strcmp.c
+++ b/source/torture/t_strcmp.c
@@ -12,7 +12,7 @@ int main(int argc, char *argv[])
int iters = 1;
/* Needed to initialize character set */
- lp_load("/dev/null", True, False, False);
+ lp_load("/dev/null", True, False, False, True);
if (argc < 3) {
fprintf(stderr, "usage: %s STRING1 STRING2 [ITERS]\n"
diff --git a/source/torture/t_strstr.c b/source/torture/t_strstr.c
index 7b928fb26be..49180b219f7 100644
--- a/source/torture/t_strstr.c
+++ b/source/torture/t_strstr.c
@@ -14,7 +14,7 @@ int main(int argc, char *argv[])
const char *ret = NULL;
/* Needed to initialize character set */
- lp_load("/dev/null", True, False, False);
+ lp_load("/dev/null", True, False, False, True);
if (argc < 3) {
fprintf(stderr, "usage: %s STRING1 STRING2 [ITERS]\n"
diff --git a/source/torture/torture.c b/source/torture/torture.c
index e995c3cc58a..0b3bfc18f4a 100644
--- a/source/torture/torture.c
+++ b/source/torture/torture.c
@@ -4916,7 +4916,7 @@ static void usage(void)
load_case_tables();
- lp_load(dyn_CONFIGFILE,True,False,False);
+ lp_load(dyn_CONFIGFILE,True,False,False,True);
load_interfaces();
if (argc < 2) {
diff --git a/source/torture/vfstest.c b/source/torture/vfstest.c
index 1914a4acb50..023e656c672 100644
--- a/source/torture/vfstest.c
+++ b/source/torture/vfstest.c
@@ -113,7 +113,7 @@ static NTSTATUS cmd_conf(struct vfs_state *vfs, TALLOC_CTX *mem_ctx,
return NT_STATUS_OK;
}
- if (!lp_load(argv[1], False, True, False)) {
+ if (!lp_load(argv[1], False, True, False, True)) {
printf("Error loading \"%s\"\n", argv[1]);
return NT_STATUS_OK;
}
@@ -448,7 +448,7 @@ BOOL reload_services(BOOL test)
lp_killunused(conn_snum_used);
- ret = lp_load(dyn_CONFIGFILE, False, False, True);
+ ret = lp_load(dyn_CONFIGFILE, False, False, True, True);
/* perhaps the config filename is now set */
if (!test)