diff options
author | Andre Heinecke <[email protected]> | 2017-01-02 12:11:10 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2017-01-02 13:05:06 +0000 |
commit | 7103315829847163f1c6f52cad25d1ddb33358f0 (patch) | |
tree | 6b9f908d588d7502f64691d697ad307bd3c505f4 /src/engine-gpgconf.c | |
parent | Fix gpg_addkey() to work with GPGME_CREATE_NOPASSWD as well. (diff) | |
download | gpgme-7103315829847163f1c6f52cad25d1ddb33358f0.tar.gz gpgme-7103315829847163f1c6f52cad25d1ddb33358f0.zip |
core: Always use runtime for gpgconf changes
* src/engine-gpgconf.c (gpgconf_write): Add --runtime.
* src/gpgme.h.in (gpgme_conf_opt_change): Document this
behavior.
--
If a tool uses GPGME for changing configuration values it
needs a way to ensure that these changes take effect. Otherwise
users may change and see config values and do not understand
why they are not working.
Diffstat (limited to 'src/engine-gpgconf.c')
-rw-r--r-- | src/engine-gpgconf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine-gpgconf.c b/src/engine-gpgconf.c index 2ea86738..01a60eb1 100644 --- a/src/engine-gpgconf.c +++ b/src/engine-gpgconf.c @@ -708,7 +708,7 @@ gpgconf_write (void *engine, const char *arg1, char *arg2, gpgme_data_t conf) #define BUFLEN 1024 char buf[BUFLEN]; int buflen = 0; - char *argv[6]; + char *argv[7]; int argc = 0; int rp[2]; struct spawn_fd_item_s cfd[] = { {-1, 0 /* STDIN_FILENO */}, {-1, -1} }; @@ -724,6 +724,7 @@ gpgconf_write (void *engine, const char *arg1, char *arg2, gpgme_data_t conf) argv[argc++] = gpgconf->home_dir; } + argv[argc++] = (char*)"--runtime"; argv[argc++] = (char*)arg1; argv[argc++] = arg2; argv[argc] = NULL; |