From 08147f8bbdca40c98c2a094fa48fab15b8339c80 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 19 Jun 2018 08:06:50 +0200 Subject: 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 cab reuse this to avoid a fixed name for sendmail in the send-mail.c helper. Signed-off-by: Werner Koch --- tools/send-mail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/send-mail.c') diff --git a/tools/send-mail.c b/tools/send-mail.c index 9f07c7ac5..6492c43c1 100644 --- a/tools/send-mail.c +++ b/tools/send-mail.c @@ -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"; -- cgit v1.2.3