On Thursday 15 September 2011 14:41:22 Martin Quinson wrote:
> Hello,
>
> here is an old patch laying in the debian package. It is maybe a bit
> debian specific, but it shouldn't cause any arm to other systems, and
> I'd really like to reduce the divergences between debian's version and
> common one.
I agree. How about the slightly simplified attached version though?
Andreas
diff --git a/quilt/mail.in b/quilt/mail.in
index d16b3c1..b9b73b1 100644
--- a/quilt/mail.in
+++ b/quilt/mail.in
@@ -267,7 +267,13 @@ fi
if [ -z "$opt_sender" ]
then
- hostname=$(hostname -f 2>/dev/null)
+ if [ -e /etc/mailname ]
+ then
+ hostname=$(< /etc/mailname)
+ else
+ hostname=$(hostname -f 2>/dev/null)
+ fi
+
if [ "$hostname" = "${hostname/.}" ]
then
hostname=$(hostname)
_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev