mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Return better error code for some getinfo IPC commands.
* agent/command.c (cmd_getinfo): Return GPG_ERR_FALSE as boolean False. * g13/server.c (cmd_getinfo): Ditto. * sm/server.c (cmd_getinfo): Ditto. -- GPG_ERR_FALSE was introduced with libgpg-error 1.21 and we now require a later version for gnupg 2. Thus we can switch to this more descriptive code. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
175d194b5d
commit
f325102375
3 changed files with 6 additions and 6 deletions
|
@ -530,7 +530,7 @@ cmd_getinfo (assuan_context_t ctx, char *line)
|
|||
{
|
||||
cmdopt = line;
|
||||
if (!command_has_option (cmd, cmdopt))
|
||||
err = gpg_error (GPG_ERR_GENERAL);
|
||||
err = gpg_error (GPG_ERR_FALSE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue