From 32f439bfa458f7936b507cb5a1e3c74bcb8c68bf Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 17 Dec 2007 11:12:36 +0100 Subject: 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) --- source4/lib/samba3/samba3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib') 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"); -- cgit