Re: [PATCH 18/23] util: use realpath/g_canonicalize_filename

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

 



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

Attachment: signature.asc
Description: This is a digitally signed message part.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux