From cd3ccbf34d6f4206f86e9390cceec160135388f9 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 23 Feb 2004 20:59:18 +0000 Subject: [PATCH] 2004-02-23 Marcus Brinkmann * README.gpgconf: Change meaning of type 0 options value if it is the empty string or "0". --- tools/ChangeLog | 3 +++ tools/README.gpgconf | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/ChangeLog b/tools/ChangeLog index b7c9ed0bb..1871f8b15 100644 --- a/tools/ChangeLog +++ b/tools/ChangeLog @@ -1,5 +1,8 @@ 2004-02-23 Marcus Brinkmann + * README.gpgconf: Change meaning of type 0 options value if it is + the empty string or "0". + * gpgconf.h (struct): Add member runtime. * gpgconf.c: Add new option oRuntime. (main): Same here. diff --git a/tools/README.gpgconf b/tools/README.gpgconf index c0e5511c1..848e1c59f 100644 --- a/tools/README.gpgconf +++ b/tools/README.gpgconf @@ -82,7 +82,9 @@ argument depends on the type of the option and on some flags: The simplest case is that the option does not take an argument at all (TYPE is 0). Then the option argument is either empty if the option is not set, or an unsigned number that specifies how often the option -occurs. If the LIST flag is not set, then the only valid number is 1. +occurs. If the LIST flag is not set, then the only valid numbers are +0 and 1. 0 often has a special meaning in this context as it actually +negates setting the option one or more times. If the option takes a number argument (ALT-TYPE is 2 or 3), and it can only occur once (LIST flag is not set), then the option argument is @@ -318,5 +320,5 @@ Example: $ dirmngr --gpgconf-list gpgconf-config-file:/mnt/marcus/.gnupg/dirmngr.conf ldapservers-file:/mnt/marcus/.gnupg/dirmngr_ldapservers.conf -add-servers: +add-servers:0 max-replies:10