From: Jonathan McDowell Date: Wed, 16 Feb 2005 14:12:47 +0000 (+0000) Subject: Fix path bug in sendkeysync. X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/5538c5782135666d73f7615a37ea9689afa07dcd?ds=inline;hp=e18b268d5c83bc3ad5d8cec975fa3adbf96ba2ae Fix path bug in sendkeysync. We weren't using the path configured for the MTA from the config file, instead it was a hard coded value. This causes problems if the MTA isn't on the path. --- diff --git a/sendsync.c b/sendsync.c index 568ba3f..ffcf705 100644 --- a/sendsync.c +++ b/sendsync.c @@ -43,7 +43,7 @@ int sendkeysync(struct openpgp_publickey *keys) struct openpgp_packet_list *list_end = NULL; if (config.syncsites != NULL && - (fd=popen("sendmail -t", "w")) != NULL) { + (fd=popen(config.mta, "w")) != NULL) { fprintf(fd, "From: %s\n", config.adminemail); fprintf(fd, "To: ");