mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
wks: Take name of sendmail from configure.
* configure.ac (NAME_OF_SENDMAIL): New ac_define. * tools/send-mail.c (run_sendmail): Use it. -- We used to ac_subst the SENDMAIL in the old keyserver via mail script. We can reuse this to avoid a fixed name for sendmail in the send-mail.c helper. Signed-off-by: Werner Koch <wk@gnupg.org> (cherry picked from commit 08147f8bbdca40c98c2a094fa48fab15b8339c80) GnuPG-bug-id: 4886
This commit is contained in:
parent
011a2f5fb7
commit
76d2a02dfe
@ -1220,6 +1220,8 @@ elif test x"$with_mailprog" != xno ; then
|
||||
AC_SUBST(SENDMAIL,$with_mailprog)
|
||||
AC_MSG_RESULT($with_mailprog)
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(NAME_OF_SENDMAIL,"$SENDMAIL",
|
||||
[Tool with sendmail -t interface])
|
||||
|
||||
|
||||
#
|
||||
|
@ -33,7 +33,7 @@ static gpg_error_t
|
||||
run_sendmail (estream_t data)
|
||||
{
|
||||
gpg_error_t err;
|
||||
const char pgmname[] = "/usr/lib/sendmail";
|
||||
const char pgmname[] = NAME_OF_SENDMAIL;
|
||||
const char *argv[3];
|
||||
|
||||
argv[0] = "-oi";
|
||||
|
Loading…
x
Reference in New Issue
Block a user