chiark / gitweb /
bin/sendmail-hack: Grim hack for Emacs to invoke sendmail.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 27 Apr 2011 09:38:10 +0000 (10:38 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 27 Apr 2011 09:38:10 +0000 (10:38 +0100)
Emacs gets upset by the LD_PRELOAD warning, issued because sendmail
(actually qmail-send in my case) is setuid.

bin/sendmail-hack [new file with mode: 0755]
setup

diff --git a/bin/sendmail-hack b/bin/sendmail-hack
new file mode 100755 (executable)
index 0000000..0ce0ea3
--- /dev/null
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+set -e
+unset LD_PRELOAD
+exec ${REAL_SENDMAIL-/usr/sbin/sendmail} "$@"
diff --git a/setup b/setup
index 508180726f20ffaafbecdf30d44f449e2f74c4b9..97be9714ca815cd8da571eb4fbdcfbd9c4d5244f 100755 (executable)
--- a/setup
+++ b/setup
@@ -229,6 +229,7 @@ scripts="
   mdw-build
   emacsclient-hack
   movemail-hack
+  sendmail-hack
   aspell-hack
   emerge-hack
   lesspipe.sh