7cdadd6789
- Add Fix-NTFS-hidden-check-for-symlinks.patch to avoid hiding symlinks to NTFS mountpoints (kde#402738) OBS-URL: https://build.opensuse.org/request/show/681086 OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kio?expand=0&rev=250
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From 01a7e0e757d3558e131d24fbb079b65af7b70572 Mon Sep 17 00:00:00 2001
|
|
From: Wolfgang Bauer <wbauer@tmo.at>
|
|
Date: Sun, 3 Mar 2019 12:53:37 +0100
|
|
Subject: Fix NTFS hidden check for symlinks to NTFS mountpoints
|
|
|
|
A symlink to the mountpoint of an NTFS partition can have the type
|
|
DT_LNK.
|
|
So extend the check to cover that case as well.
|
|
|
|
BUG: 402738
|
|
FIXED-IN: 5.57.0
|
|
Differential Revision: https://phabricator.kde.org/D18479
|
|
---
|
|
src/ioslaves/file/file_unix.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/ioslaves/file/file_unix.cpp b/src/ioslaves/file/file_unix.cpp
|
|
index 1816f11..5dca327 100644
|
|
--- a/src/ioslaves/file/file_unix.cpp
|
|
+++ b/src/ioslaves/file/file_unix.cpp
|
|
@@ -589,7 +589,7 @@ void FileProtocol::listDir(const QUrl &url)
|
|
bool ntfsHidden = true;
|
|
|
|
// Bug 392913: NTFS root volume is always "hidden", ignore this
|
|
- if (ep->d_type == DT_DIR || ep->d_type == DT_UNKNOWN) {
|
|
+ if (ep->d_type == DT_DIR || ep->d_type == DT_UNKNOWN || ep->d_type == DT_LNK) {
|
|
const QString fullFilePath = QDir(filename).canonicalPath();
|
|
auto mountPoint = KMountPoint::currentMountPoints().findByPath(fullFilePath);
|
|
if (mountPoint && mountPoint->mountPoint() == fullFilePath) {
|
|
--
|
|
cgit v1.1
|
|
|