
6 Jan
2020
6 Jan
'20
9:12 a.m.
On Thursday, 2 January 2020 15:53:52 CET Daniel P. Berrangé wrote:
The canonicalize_file_name(path) is equivalent to calling realpath(path, NULL). Passing NULL for the second arg of realpath is not standardized behaviour, however, Linux, FreeBSD > 6.4 and macOS > 10.5 all support this critical extension.
This is not correct: POSIX.1-2008 standardizes null as possible value for the second argument; see: https://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html -- Pino Toscano