diff --git a/src/ioslaves/file/file_unix.cpp b/src/ioslaves/file/file_unix.cpp --- a/src/ioslaves/file/file_unix.cpp +++ b/src/ioslaves/file/file_unix.cpp @@ -355,11 +355,6 @@ if (LSTAT(path.data(), &buff, details) == 0) { - if (details & KIO::StatInode) { - entry.fastInsert(KIO::UDSEntry::UDS_DEVICE_ID, stat_dev(buff)); - entry.fastInsert(KIO::UDSEntry::UDS_INODE, stat_ino(buff)); - } - if ((stat_mode(buff) & QT_STAT_MASK) == QT_STAT_LNK) { QByteArray linkTargetBuffer; @@ -481,6 +476,11 @@ #endif } + if (details & KIO::StatInode) { + entry.fastInsert(KIO::UDSEntry::UDS_DEVICE_ID, stat_dev(buff)); + entry.fastInsert(KIO::UDSEntry::UDS_INODE, stat_ino(buff)); + } + return true; }