KConfig: handle directory symlinks correctly.

Authored by dfaure on Aug 19 2018, 10:32 AM.

Description

KConfig: handle directory symlinks correctly.

Summary:
When /home is a symlink, for instance (as is often the case on FreeBSD),
group deletion would fail because KConfig was comparing non-canonical
paths with canonical-paths:

QDEBUG : KConfigTest::testDelete() Comparing "/home/adridg/.qttest/config/
kconfigtest_subdir/kconfigtest" and "/usr/home/adridg/.qttest/config/
kconfigtest_subdir/kconfigtest"

Test Plan:
mkdir /tmp/derp; ln -s /tmp/derp /tmp/drop
HOME=/tmp/derp bin/kconfigtest testDelete # Success
HOME=/tmp/drop bin/kconfigtest testDelete # Fail

Reviewers: adridg, arichardson, apol

Reviewed By: apol

Subscribers: kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D14927

Details

Committed
dfaureFeb 4 2019, 12:42 PM
Reviewer
apol
Differential Revision
D14927: KConfig: handle directory symlinks correctly.
Parents
R237:d60c5c516880: GIT_SILENT Upgrade ECM and KF5 version requirements for 5.55.0 release.
Branches
Unknown
Tags
Unknown