diff options
Diffstat (limited to 'server/providers')
-rw-r--r-- | server/providers/child_common.c | 6 | ||||
-rw-r--r-- | server/providers/krb5/krb5_child.c | 2 | ||||
-rw-r--r-- | server/providers/ldap/ldap_child.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/server/providers/child_common.c b/server/providers/child_common.c index 154f56dd7..2ad0f04e3 100644 --- a/server/providers/child_common.c +++ b/server/providers/child_common.c @@ -297,7 +297,7 @@ static errno_t prepare_child_argv(TALLOC_CTX *mem_ctx, bool child_debug_timestamps = debug_timestamps; if (child_debug_to_file) argc++; - if (child_debug_timestamps) argc++; + if (!child_debug_timestamps) argc++; /* program name, debug_level, * debug_to_file, debug_timestamps @@ -326,8 +326,8 @@ static errno_t prepare_child_argv(TALLOC_CTX *mem_ctx, } } - if (child_debug_timestamps) { - argv[--argc] = talloc_strdup(argv, "--debug-timestamps"); + if (!child_debug_timestamps) { + argv[--argc] = talloc_strdup(argv, "--debug-timestamps=0"); if (argv[argc] == NULL) { ret = ENOMEM; goto fail; diff --git a/server/providers/krb5/krb5_child.c b/server/providers/krb5/krb5_child.c index 8ff9259bf..a1a32eaef 100644 --- a/server/providers/krb5/krb5_child.c +++ b/server/providers/krb5/krb5_child.c @@ -925,7 +925,7 @@ int main(int argc, const char *argv[]) POPT_AUTOHELP {"debug-level", 'd', POPT_ARG_INT, &debug_level, 0, "Debug level", NULL}, - {"debug-timestamps", 0, POPT_ARG_NONE, &debug_timestamps, 0, + {"debug-timestamps", 0, POPT_ARG_INT, &debug_timestamps, 0, "Add debug timestamps", NULL}, {"debug-fd", 0, POPT_ARG_INT, &debug_fd, 0, "Add debug timestamps", NULL}, diff --git a/server/providers/ldap/ldap_child.c b/server/providers/ldap/ldap_child.c index 4a577b87f..fad075e74 100644 --- a/server/providers/ldap/ldap_child.c +++ b/server/providers/ldap/ldap_child.c @@ -325,7 +325,7 @@ int main(int argc, const char *argv[]) POPT_AUTOHELP {"debug-level", 'd', POPT_ARG_INT, &debug_level, 0, "Debug level", NULL}, - {"debug-timestamps", 0, POPT_ARG_NONE, &debug_timestamps, 0, + {"debug-timestamps", 0, POPT_ARG_INT, &debug_timestamps, 0, "Add debug timestamps", NULL}, {"debug-fd", 0, POPT_ARG_INT, &debug_fd, 0, "Add debug timestamps", NULL}, |