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


From: Tomi Ollila

On Sun, Apr 18 2021, David Bremner wrote:

> Đoàn Trần Công Danh <> 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

    $ rpm -q -f =hostname

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

notmuch mailing list --
To unsubscribe send an email to