diff options
Diffstat (limited to 'gpgme/rungpg.c')
-rw-r--r-- | gpgme/rungpg.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gpgme/rungpg.c b/gpgme/rungpg.c index 9a556cee..88afaea9 100644 --- a/gpgme/rungpg.c +++ b/gpgme/rungpg.c @@ -1486,10 +1486,9 @@ gpg_keylist (void *engine, const char *pattern, int secret_only, if (!err) err = add_arg (gpg, "--with-fingerprint"); if (!err) - err = add_arg (gpg, (keylist_mode & GPGME_KEYLIST_MODE_SIGS) ? - "--check-sigs" : - secret_only ? "--list-secret-keys" - : "--list-keys"); + err = add_arg (gpg, secret_only ? "--list-secret-keys" + : ((keylist_mode & GPGME_KEYLIST_MODE_SIGS) + ? "--check-sigs" : "--list-keys")); /* Tell the gpg object about the data. */ if (!err) @@ -1519,8 +1518,10 @@ gpg_keylist_ext (void *engine, const char *pattern[], int secret_only, if (!err) err = add_arg (gpg, "--with-fingerprint"); if (!err) - err = add_arg (gpg, secret_only ? "--list-secret-keys" : "--list-keys"); - + err = add_arg (gpg, secret_only ? "--list-secret-keys" + : ((keylist_mode & GPGME_KEYLIST_MODE_SIGS) + ? "--check-sigs" : "--list-keys")); + /* Tell the gpg object about the data. */ if (!err) err = add_arg (gpg, "--"); |