diff options
author | Derrell Lipman <derrell@samba.org> | 2006-01-28 22:53:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:06:18 -0500 |
commit | f2a24de769d1b2266e576597c57a8e3b1e2a2b51 (patch) | |
tree | 7fec57191368a498282d032819b76fc9dbd97bbe /source/torture/t_push_ucs2.c | |
parent | 0e24c701ce3755d71de7fdccb9f4564b381bf996 (diff) | |
download | samba-f2a24de769d1b2266e576597c57a8e3b1e2a2b51.tar.gz |
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/t_push_ucs2.c')
-rw-r--r-- | source/torture/t_push_ucs2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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" |