summaryrefslogtreecommitdiffstats
path: root/server/providers/child_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/providers/child_common.c')
-rw-r--r--server/providers/child_common.c6
1 files changed, 3 insertions, 3 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;