diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-17 11:12:36 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:51:06 +0100 |
commit | 32f439bfa458f7936b507cb5a1e3c74bcb8c68bf (patch) | |
tree | 417c255fcd68bfc164e0916772060000fa19309a /source4/lib | |
parent | e956111917a432d5ea1a7c5cc2fef6c0c3dcbcc1 (diff) | |
download | samba-32f439bfa458f7936b507cb5a1e3c74bcb8c68bf.tar.gz samba-32f439bfa458f7936b507cb5a1e3c74bcb8c68bf.tar.bz2 samba-32f439bfa458f7936b507cb5a1e3c74bcb8c68bf.zip |
r26503: Change order of arguments in param interface so it's easier to make the
section name optional. Fix several smaller bits and pieces in the Python code.
(This used to be commit 1b89311e5fa4fcde060df50e580dc221205cc8ca)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/samba3/samba3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/samba3/samba3.c b/source4/lib/samba3/samba3.c index 74985fab8a..4bd08f188a 100644 --- a/source4/lib/samba3/samba3.c +++ b/source4/lib/samba3/samba3.c @@ -36,7 +36,7 @@ NTSTATUS samba3_read_passdb_backends(TALLOC_CTX *ctx, const char *libdir, struct char *dbfile; NTSTATUS status = NT_STATUS_OK; int i; - const char **backends = param_get_string_list(samba3->configuration, NULL, "passdb backend", NULL); + const char **backends = param_get_string_list(samba3->configuration, "passdb backend", NULL, NULL); /* Default to smbpasswd */ if (backends == NULL) @@ -59,7 +59,7 @@ NTSTATUS samba3_read_passdb_backends(TALLOC_CTX *ctx, const char *libdir, struct const char *p = strchr(backends[i], ':'); if (p && p[1]) { dbfile = talloc_strdup(ctx, p+1); - } else if ((p = param_get_string(samba3->configuration, NULL, "smb passwd file"))) { + } else if ((p = param_get_string(samba3->configuration, "smb passwd file", NULL))) { dbfile = talloc_strdup(ctx, p); } else { dbfile = talloc_strdup(ctx, "/etc/samba/smbpasswd"); |