From 009b07f082324623049e41041dc51e9a9d07a63b Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 1 Sep 2011 11:53:01 +0200 Subject: [PATCH] sendmail: fixed setmailer.sh to use an absolute path within the generated sendmail wrapper script Note: Without this sendmail will spit out following warning: -------------------------------------------------------------------------- sendmail[11340]: daemon invoked without full pathname; kill -1 won't work -------------------------------------------------------------------------- --- mail/sendmail/setmailer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/sendmail/setmailer.sh b/mail/sendmail/setmailer.sh index 29a0a3248..8dcaf2179 100644 --- a/mail/sendmail/setmailer.sh +++ b/mail/sendmail/setmailer.sh @@ -3,7 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../sendmail/setmailer.sh -# Copyright (C) 2007 The OpenSDE Project +# Copyright (C) 2007 - 2011 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. @@ -17,7 +17,7 @@ prefix=$( cd ${0%/*}/..; pwd -P ) for x in sendmail mailq newaliases; do echo "$0: Re-creating /usr/bin/$x -> ${x}_@mailer@ ..." - echo -e "#!/bin/sh\nexec -a $x ${x}_@mailer@ \"\$@\"" > $prefix/bin/$x + echo -e "#!/bin/sh\nexec -a $prefix/sbin/$x ${x}_@mailer@ \"\$@\"" > $prefix/bin/$x chmod +x $prefix/bin/$x done