Version: (using KDE KDE 3.0.9) Installed from: Unlisted Binary Package OS: Linux When kded is starting up mountwatcher it ends up infinite loop trying to stat() for example /dev/cdrom which is symlink to itself. I know this is itself errorneus situation, but it was somehow created and ordinary user just thinks KDE is shit if such things happen and nothing is said to user. Please apply some checks to prevent this.
Subject: kdebase/kioslave/devices/kdedmodule CVS commit by waba: CCMAIL: 51470-done@bugs.kde.org Don't hang on cyclic symlinks M +2 -2 disks.cpp 1.24 --- kdebase/kioslave/devices/kdedmodule/disks.cpp #1.23:1.24 @@ -26,4 +26,5 @@ #include <kglobal.h> +#include <kstandarddirs.h> #include <kdebug.h> #include <qfileinfo.h> @@ -167,6 +168,5 @@ void DiskEntry::setDeviceName(const QStr if (deviceName.startsWith("/dev/")) { - for (QFileInfo finfo=QFileInfo(realDevice);finfo.isSymLink();finfo=QFileInfo(realDevice)) - realDevice=finfo.readLink(); + realDevice=KStandardDirs::realPath(deviceName); kdDebug(7020)<<"Device "<<deviceName<<" is a actually "<<realDevice<<endl;