Re: [PATCH v2] send-email: try to get fqdn by running hostname --fqdn on Linux and macOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> On 13 May 2025, at 1:45 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote:
> 
> Eric Sunshine <sunshine@xxxxxxxxxxxxxx> writes:
> 
>> The problem is not restricted only to macOS (and Alpine), but more
>> generally to all BSD-lineage `hostname` which does not understand
>> --fqdn but does understand -f.
> 
> True, but the proposed patch limits itself to
> 
>      $^O eq 'linux' || $^O eq 'darwin'
> 
> for unfathomable reason, so BSD's are safe already ;-)

Exactly. I had tested hostname -f on both macOS and Linux, but was lazy
enough to not check --fqdn, thus resulting in a wrong patch. v3 and v4 should
work properly. I'll also avoid laziness in the future.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux