make no creation time the default
authorChristian Grothoff <christian@grothoff.org>
Sat, 9 Mar 2019 00:59:22 +0000 (01:59 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sat, 9 Mar 2019 01:00:32 +0000 (02:00 +0100)
ChangeLog
doc/man/gnunet-publish.1
src/fs/gnunet-publish.c

index c5473865e9e39275e7c242ff651ec6d90eb85319..0bf4dffdfcea607150c0fe4e5abc282ebe33d0e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
+Sat Mar  9 01:58:22 CET 2019
+       gnunet-publish now by default does not expose the creation time,
+       option -d no longer exists, to enable the old behavior use -E. -CG
+
 Sat Mar 2 14:23:10 2019 +0100
-  utils: gnunet-qr.py now installed under pkgshare instead of bin
+       utils: gnunet-qr.py now installed under pkgshare instead of bin
 
 Thu Feb 28 19:07:59 CET 2019
   CADET: Fix in order, unrealiable message ordering
index b072087321758908d45341a1110cd232fc97c6a2..5f774580bb6ce3e53a4490dab5eb2e85c0235899 100644 (file)
@@ -112,9 +112,9 @@ default is ~/.config/gnunet.conf).
 Disable use of GNU libextractor for finding additional keywords and
 metadata.
 .TP
-\fB\-d\fR, \fB\-\-disable\-creation\-time\fR
-Disable use of creation time timestamp in metadata.
-Useful to make created directories deterministic and to avoid leaking
+\fB\-E\fR, \fB\-\-enable\-creation\-time\fR
+Enable use of creation time timestamp in metadata.
+Setting this information will leak
 information about the time at which a file was made available.
 .TP
 \fB\-e\fR, \fB\-\-extract\fR
index eb8a7ed19e082b2c7d3b6b5f3c99fc9d539f26b4..fbf32c2a7ff2aebb217065cc495e3de968e62598 100644 (file)
@@ -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 "