https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122677
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- For an absolute path the first call to mkdir sets errno to ENOENT: "A component of the path prefix specified by path does not name an existing directory or path is an empty string."
