#4195: Poco::File::created() on macOS should use birthtime

This commit is contained in:
Günter Obiltschnig 2023-10-18 08:00:40 +02:00
parent 69fd22c4e0
commit 8a268d4413
3 changed files with 6 additions and 8 deletions

View File

@ -200,7 +200,7 @@ Release 1.12.0 (2022-07-08)
- GH #3665 MSVC does not properly recognize std version
Release 1.11.8 (2023-10-16)
Release 1.11.8 (2023-10-18)
===========================
- GH #1372: Possible deadlock in SessionPool
@ -213,6 +213,7 @@ Release 1.11.8 (2023-10-16)
- GH #4174: AbstractConfiguration: support Int16/UInt16 and Int32/UInt32
- GH #4182: Util: Make load()/save()/clear() operations on configurations thread-safe
- GH #4184: Poco::TemporaryFile: make filenames less predictable
- GH #4195: Poco::File::created() on macOS should use birthtime
Release 1.11.7 (2023-07-11)

View File

@ -212,11 +212,7 @@ Timestamp FileImpl::createdImpl() const
{
poco_assert (!_path.empty());
#if defined(__APPLE__) && defined(st_birthtime) && !defined(POCO_NO_STAT64) // st_birthtime is available only on 10.5
struct stat64 st;
if (stat64(_path.c_str(), &st) == 0)
return Timestamp::fromEpochTime(st.st_birthtime);
#elif defined(__FreeBSD__)
#if defined(__FreeBSD__) || (defined(__APPLE__) && defined(_DARWIN_FEATURE_64_BIT_INODE))
struct stat st;
if (stat(_path.c_str(), &st) == 0)
return Timestamp::fromEpochTime(st.st_birthtime);

View File

@ -226,6 +226,7 @@ AAAIntroduction
- GH #4174: AbstractConfiguration: support Int16/UInt16 and Int32/UInt32
- GH #4182: Util: Make load()/save()/clear() operations on configurations thread-safe
- GH #4184: Poco::TemporaryFile: make filenames less predictable
- GH #4195: Poco::File::created() on macOS should use birthtime
!!!Release 1.11.7