From b8445cbf0a6d2b904de2c0a8e2458120256bfb59 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 9 Mar 2019 01:59:22 +0100 Subject: make no creation time the default --- src/fs/gnunet-publish.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c index eb8a7ed19..fbf32c2a7 100644 --- a/src/fs/gnunet-publish.c +++ b/src/fs/gnunet-publish.c @@ -122,7 +122,7 @@ static int extract_only; /** * Command-line option to disable adding creation time. */ -static int do_disable_creation_time; +static int enable_creation_time; /** * Handle to the directory scanner (for recursive insertions). @@ -419,7 +419,7 @@ publish_inspector (void *cls, GNUNET_CONTAINER_meta_data_destroy (meta); meta = NULL; } - if (!do_disable_creation_time) + if (enable_creation_time) GNUNET_CONTAINER_meta_data_add_publication_date (m); if (extract_only) { @@ -902,15 +902,15 @@ main (int argc, "LEVEL", gettext_noop ("set the desired LEVEL of sender-anonymity"), &bo.anonymity_level), - GNUNET_GETOPT_option_flag ('d', - "disable-creation-time", - gettext_noop ("disable adding the creation time to the " - "metadata of the uploaded file"), - &do_disable_creation_time), GNUNET_GETOPT_option_flag ('D', "disable-extractor", gettext_noop ("do not use libextractor to add keywords or metadata"), &disable_extractor), + GNUNET_GETOPT_option_flag ('E', + "enable-creation-time", + gettext_noop ("enable adding the creation time to the " + "metadata of the uploaded file"), + &enable_creation_time), GNUNET_GETOPT_option_flag ('e', "extract", gettext_noop ("print list of extracted keywords that would " -- cgit v1.2.3