mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-17 14:07:03 +01:00
wkd: gpg-wks-client --send checks if build with sendmail support
* tools/gpg-wks-client.c (main): Return GPG_ERR_NOT_IMPLEMENTED if gnupg was build without sendmail support. (NAME_OF_SENDMAIL=="")
This commit is contained in:
parent
1383aa4750
commit
55eef71dbe
@ -306,6 +306,14 @@ main (int argc, char **argv)
|
||||
cmd = parse_arguments (&pargs, opts);
|
||||
gpgrt_argparse (NULL, &pargs, NULL);
|
||||
|
||||
/* Check if gpg is build with sendmail support */
|
||||
if (opt.use_sendmail && !NAME_OF_SENDMAIL[0])
|
||||
{
|
||||
err = gpg_error (GPG_ERR_NOT_IMPLEMENTED);
|
||||
log_error ("sending mail is not supported in this build: %s\n",
|
||||
gpg_strerror (err));
|
||||
}
|
||||
|
||||
if (log_get_errorcount (0))
|
||||
exit (2);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user