Re: [PATCH] compat: expose canonicalize_file_name to C++

Subject: Re: [PATCH] compat: expose canonicalize_file_name to C++

Date: Sun, 18 Apr 2021 19:19:24 +0300

To: David Bremner, Đoàn Trần Công Danh

Cc: notmuch@notmuchmail.org

From: Tomi Ollila


On Sun, Apr 18 2021, David Bremner wrote:

> Đoàn Trần Công Danh <congdanhqx@gmail.com> writes:
>
>>
>> Anyway, I see some failure in the testsuite due to:
>> - *My* hostname(1) (from coreutils) doesn't understand "-f"

Interesting (neither of these use coreutils hostname) 

    $ rpm -q -f =hostname
    hostname-3.23-3.fc33.x86_64 

    $ rpm -q -f =hostname
    'net-tools-1.60-109.el6.x86_64

Out of curiosity, about non-linux systems hostname...

>
> ah, any suggestions for a portable replacement? I guess some perl one
> liner might work.

not perl, but python3 -c 'import socket; print(socket.getfqdn())'

(dropped other comments I had for notmuch_passwd_sanitize() (this time ;) 

Tomi
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: