On Thu, Sep 15, 2011 at 03:03:26PM +0200, Andreas Gruenbacher wrote:
> 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?

Your version is indeed much superior to what we had. I already replace
it here.

Thanks, Mt.


> 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)


-- 
Le sens commun n'est pas si commun (Common sense is not so common).
  -- Voltaire

_______________________________________________
Quilt-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to