aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-publish.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-03-09 01:59:22 +0100
committerChristian Grothoff <christian@grothoff.org>2019-03-09 02:00:32 +0100
commitb8445cbf0a6d2b904de2c0a8e2458120256bfb59 (patch)
treec923e27c6fb7b93928af39f19d0fa6d06e6d5b56 /src/fs/gnunet-publish.c
parente298128e273a984beb3094e9d380a54a0f65b4ce (diff)
downloadgnunet-b8445cbf0a6d2b904de2c0a8e2458120256bfb59.tar.gz
gnunet-b8445cbf0a6d2b904de2c0a8e2458120256bfb59.zip
make no creation time the default
Diffstat (limited to 'src/fs/gnunet-publish.c')
-rw-r--r--src/fs/gnunet-publish.c14
1 files changed, 7 insertions, 7 deletions
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;
122/** 122/**
123 * Command-line option to disable adding creation time. 123 * Command-line option to disable adding creation time.
124 */ 124 */
125static int do_disable_creation_time; 125static int enable_creation_time;
126 126
127/** 127/**
128 * Handle to the directory scanner (for recursive insertions). 128 * Handle to the directory scanner (for recursive insertions).
@@ -419,7 +419,7 @@ publish_inspector (void *cls,
419 GNUNET_CONTAINER_meta_data_destroy (meta); 419 GNUNET_CONTAINER_meta_data_destroy (meta);
420 meta = NULL; 420 meta = NULL;
421 } 421 }
422 if (!do_disable_creation_time) 422 if (enable_creation_time)
423 GNUNET_CONTAINER_meta_data_add_publication_date (m); 423 GNUNET_CONTAINER_meta_data_add_publication_date (m);
424 if (extract_only) 424 if (extract_only)
425 { 425 {
@@ -902,15 +902,15 @@ main (int argc,
902 "LEVEL", 902 "LEVEL",
903 gettext_noop ("set the desired LEVEL of sender-anonymity"), 903 gettext_noop ("set the desired LEVEL of sender-anonymity"),
904 &bo.anonymity_level), 904 &bo.anonymity_level),
905 GNUNET_GETOPT_option_flag ('d',
906 "disable-creation-time",
907 gettext_noop ("disable adding the creation time to the "
908 "metadata of the uploaded file"),
909 &do_disable_creation_time),
910 GNUNET_GETOPT_option_flag ('D', 905 GNUNET_GETOPT_option_flag ('D',
911 "disable-extractor", 906 "disable-extractor",
912 gettext_noop ("do not use libextractor to add keywords or metadata"), 907 gettext_noop ("do not use libextractor to add keywords or metadata"),
913 &disable_extractor), 908 &disable_extractor),
909 GNUNET_GETOPT_option_flag ('E',
910 "enable-creation-time",
911 gettext_noop ("enable adding the creation time to the "
912 "metadata of the uploaded file"),
913 &enable_creation_time),
914 GNUNET_GETOPT_option_flag ('e', 914 GNUNET_GETOPT_option_flag ('e',
915 "extract", 915 "extract",
916 gettext_noop ("print list of extracted keywords that would " 916 gettext_noop ("print list of extracted keywords that would "