diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2015-03-11 14:38:59 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2019-05-21 13:59:34 +0200 |
commit | bd55a9d91227d1ac38f51b21ca23dec7fa5e82af (patch) | |
tree | cc2855e2078f4550025a82eff2758d010c3c32e5 /config_help.txt | |
parent | bba44746f9f2cfca785a309deb056033ae0bea6e (diff) |
Fix canonicalFilePath() for files with trailing slashes
Such files do not exist (as per QFileInfo::exists), but on some
platforms that rely on realpath(), QFileInfo::canonicalFilePath did
not return the empty string.
Use the same logic on macOS as we already did on Android, and include
a test case. Remove the unnecessary dynamic memory allocation and
use a stack-allocated array instead, unless we use modern POSIX in
which case realpath() will alloc the memory for the result for us.
Change-Id: Ide987c68ebf00cbb7b1a66c2e9245a12c7807128
Fixes: QTBUG-44242
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'config_help.txt')
0 files changed, 0 insertions, 0 deletions