summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcrashhandler_unix.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2025-06-06 16:16:10 -0300
committerThiago Macieira <thiago.macieira@intel.com>2025-06-12 23:14:36 -0300
commitc5e6034bbd99459373279f8ae3dcac0f87c1f39c (patch)
treeaf8cb50b771cd3f8802967f17f2509ccbc4c9daa /src/testlib/qtestcrashhandler_unix.cpp
parent07d3d3935c4d8398818d40ee0f341d7555d745d6 (diff)
QFileSystemEngine/Linux: correct a minor problem with lstatx() failures
Our wrappers around the statx(2) system call on Linux return the negative of errno, to avoid setting errno and reading it back for the OSes where the system call doesn't apply. That means the vast majority of errors from qt_lstatx() will not be -1 (the most common being -2 for ENOENT) and we'd thus not enter the next block: // second, we try a regular stat(2) if (statResult == -1 && (what & QFileSystemMetaData::PosixStatFlags)) { Pick-to: 6.10 6.9 6.8 Change-Id: I489e7c9ee1327fb98510fffd315c66948956534f Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/testlib/qtestcrashhandler_unix.cpp')
0 files changed, 0 insertions, 0 deletions