Changeset View
Changeset View
Standalone View
Standalone View
src/ioslaves/file/file_unix.cpp
Show First 20 Lines • Show All 583 Lines • ▼ Show 20 Line(s) | 577 | #endif | |||
---|---|---|---|---|---|
584 | 584 | | |||
585 | } else { | 585 | } else { | ||
586 | if (createUDSEntry(filename, QByteArray(ep->d_name), entry, details)) { | 586 | if (createUDSEntry(filename, QByteArray(ep->d_name), entry, details)) { | ||
587 | #if HAVE_SYS_XATTR_H | 587 | #if HAVE_SYS_XATTR_H | ||
588 | if (isNtfsHidden(filename)) { | 588 | if (isNtfsHidden(filename)) { | ||
589 | bool ntfsHidden = true; | 589 | bool ntfsHidden = true; | ||
590 | 590 | | |||
591 | // Bug 392913: NTFS root volume is always "hidden", ignore this | 591 | // Bug 392913: NTFS root volume is always "hidden", ignore this | ||
592 | if (ep->d_type == DT_DIR || ep->d_type == DT_UNKNOWN) { | 592 | if (ep->d_type == DT_DIR || ep->d_type == DT_UNKNOWN || ep->d_type == DT_LNK) { | ||
593 | const QString fullFilePath = QDir(filename).canonicalPath(); | 593 | const QString fullFilePath = QDir(filename).canonicalPath(); | ||
594 | auto mountPoint = KMountPoint::currentMountPoints().findByPath(fullFilePath); | 594 | auto mountPoint = KMountPoint::currentMountPoints().findByPath(fullFilePath); | ||
595 | if (mountPoint && mountPoint->mountPoint() == fullFilePath) { | 595 | if (mountPoint && mountPoint->mountPoint() == fullFilePath) { | ||
596 | ntfsHidden = false; | 596 | ntfsHidden = false; | ||
597 | } | 597 | } | ||
598 | } | 598 | } | ||
599 | 599 | | |||
600 | if (ntfsHidden) { | 600 | if (ntfsHidden) { | ||
▲ Show 20 Lines • Show All 311 Lines • Show Last 20 Lines |