diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-03-09 01:59:22 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-03-09 02:00:32 +0100 |
commit | b8445cbf0a6d2b904de2c0a8e2458120256bfb59 (patch) | |
tree | c923e27c6fb7b93928af39f19d0fa6d06e6d5b56 | |
parent | e298128e273a984beb3094e9d380a54a0f65b4ce (diff) | |
download | gnunet-b8445cbf0a6d2b904de2c0a8e2458120256bfb59.tar.gz gnunet-b8445cbf0a6d2b904de2c0a8e2458120256bfb59.zip |
make no creation time the default
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | doc/man/gnunet-publish.1 | 6 | ||||
-rw-r--r-- | src/fs/gnunet-publish.c | 14 |
3 files changed, 15 insertions, 11 deletions
@@ -1,5 +1,9 @@ | |||
1 | Sat Mar 9 01:58:22 CET 2019 | ||
2 | gnunet-publish now by default does not expose the creation time, | ||
3 | option -d no longer exists, to enable the old behavior use -E. -CG | ||
4 | |||
1 | Sat Mar 2 14:23:10 2019 +0100 | 5 | Sat Mar 2 14:23:10 2019 +0100 |
2 | utils: gnunet-qr.py now installed under pkgshare instead of bin | 6 | utils: gnunet-qr.py now installed under pkgshare instead of bin |
3 | 7 | ||
4 | Thu Feb 28 19:07:59 CET 2019 | 8 | Thu Feb 28 19:07:59 CET 2019 |
5 | CADET: Fix in order, unrealiable message ordering | 9 | CADET: Fix in order, unrealiable message ordering |
diff --git a/doc/man/gnunet-publish.1 b/doc/man/gnunet-publish.1 index b07208732..5f774580b 100644 --- a/doc/man/gnunet-publish.1 +++ b/doc/man/gnunet-publish.1 | |||
@@ -112,9 +112,9 @@ default is ~/.config/gnunet.conf). | |||
112 | Disable use of GNU libextractor for finding additional keywords and | 112 | Disable use of GNU libextractor for finding additional keywords and |
113 | metadata. | 113 | metadata. |
114 | .TP | 114 | .TP |
115 | \fB\-d\fR, \fB\-\-disable\-creation\-time\fR | 115 | \fB\-E\fR, \fB\-\-enable\-creation\-time\fR |
116 | Disable use of creation time timestamp in metadata. | 116 | Enable use of creation time timestamp in metadata. |
117 | Useful to make created directories deterministic and to avoid leaking | 117 | Setting this information will leak |
118 | information about the time at which a file was made available. | 118 | information about the time at which a file was made available. |
119 | .TP | 119 | .TP |
120 | \fB\-e\fR, \fB\-\-extract\fR | 120 | \fB\-e\fR, \fB\-\-extract\fR |
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 | */ |
125 | static int do_disable_creation_time; | 125 | static 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 " |