summaryrefslogtreecommitdiffstats
path: root/tests/auto/sql/kernel
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2023-09-20 18:31:38 -0700
committerThiago Macieira <thiago.macieira@intel.com>2023-09-23 16:16:09 -0700
commit36a169e31e86fadde41c61804ce437164977f60a (patch)
treed7d120bd6f927c2287840cb76c3baeabea998ae5 /tests/auto/sql/kernel
parent6c504f2519e1180dbcfd77d5bb08b0db9742eeaa (diff)
moveToTrash/Unix: use lstat() to confirm $root/.Trash is suitableHEADdev
We can't use QFileSystemEngine::fillMetaData() because there's no bit in QFileSystemMetaData to indicate the sticky flag, so we must make a at least one stat() or lstat() call ourselves. Given that we need to know if $root/.Trash is a symlink, that system call must be lstat(). And it turns out that system call provides everything we need to confirm its suitability. This avoids QDir overhead just to manipulate strings. Pick-to: 6.6 Change-Id: I9d43e5b91eb142d6945cfffd1786c5e54199ecb2 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/sql/kernel')
0 files changed, 0 insertions, 0 deletions