diff options
Diffstat (limited to 'src/util/gnunet-config.c')
-rw-r--r-- | src/util/gnunet-config.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util/gnunet-config.c b/src/util/gnunet-config.c index 2b279dda2..4d050cdd3 100644 --- a/src/util/gnunet-config.c +++ b/src/util/gnunet-config.c | |||
@@ -65,10 +65,11 @@ static int list_sections; | |||
65 | static int global_ret; | 65 | static int global_ret; |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * Should we generate a configuration file that is clean and | 68 | * Should the generated configuration file contain the whole configuration, or |
69 | * only contains the deltas to the defaults? | 69 | * just the differences with the defaults? |
70 | * If set to a non-zero value, the full configuration will be written to file. | ||
70 | */ | 71 | */ |
71 | static int rewrite; | 72 | static int rewrite = 0; |
72 | 73 | ||
73 | 74 | ||
74 | /** | 75 | /** |
@@ -157,7 +158,7 @@ run (void *cls, | |||
157 | GNUNET_free (name); | 158 | GNUNET_free (name); |
158 | return; | 159 | return; |
159 | } | 160 | } |
160 | if (rewrite) | 161 | if (!rewrite) |
161 | { | 162 | { |
162 | struct GNUNET_CONFIGURATION_Handle *def; | 163 | struct GNUNET_CONFIGURATION_Handle *def; |
163 | 164 | ||
@@ -315,7 +316,7 @@ main (int argc, char *const *argv) | |||
315 | 'w', | 316 | 'w', |
316 | "rewrite", | 317 | "rewrite", |
317 | gettext_noop ( | 318 | gettext_noop ( |
318 | "write configuration file that only contains delta to defaults"), | 319 | "write the full configuration file, including default values"), |
319 | &rewrite), | 320 | &rewrite), |
320 | GNUNET_GETOPT_OPTION_END }; | 321 | GNUNET_GETOPT_OPTION_END }; |
321 | int ret; | 322 | int ret; |