diff --git a/config/has_fdopendir_nofollow.cpp b/config/has_fdopendir_nofollow.cpp index 0c8c268..0fe048f 100644 --- a/config/has_fdopendir_nofollow.cpp +++ b/config/has_fdopendir_nofollow.cpp @@ -16,6 +16,7 @@ int main() { int fd = open(".", O_DIRECTORY | O_RDONLY | O_NOFOLLOW); DIR* dir = fdopendir(fd); + // Note: dirfd is a macro on FreeBSD 9 and older int internal_fd = dirfd(dir); return dir != 0 && internal_fd >= 0; } diff --git a/doc/release_history.html b/doc/release_history.html index c7744ec..1cb4c37 100644 --- a/doc/release_history.html +++ b/doc/release_history.html @@ -46,6 +46,7 @@
canonical is now based on the GetFinalPathNameByHandleW WinAPI function. As a side effect, drive letters are converted to upper case, which makes the resulting paths more interoperable. (#325)canonical no longer produces a trailing directory separator in the resulting path, if the input path has one.path constructor or member function is called with an argument of a user-defined type that is convertible to path and one or more Source types, the conversion to path is now chosen by default. This may resolve argument conversion ambiguities in some cases, but may also result in a less optimal conversion path. If a different conversion path is desired, users are recommended to use explicit type casts. (#326)dirfd being a macro on FreeBSD 9 and older. (#328)