Репозитории ALT
S: | 4.8.7-alt25 |
5.1: | 4.6.3-alt1.M51.1 |
4.1: | 4.4.3-alt1.M41.1 |
4.0: | 4.3.4-alt5.M40.1 |
3.0: | 4.0.1-alt1 |
+updates: | 4.0.1-alt2 |
+backports: | 4.2.3-alt7.1.M30 |
Группа :: Система/Библиотеки
Пакет: qt4
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0106-qfileinfo-issymlink.diff
Скачать
Скачать
qt-bugs@ issue : N84150
Trolltech task ID : 84207
applied: no
author: dfaure
isSymLink() for a "broken" (dangling) symlink returned true in Qt3.x, but returns false in Qt-4.0.1
Index: qfsfileengine_unix.cpp
===================================================================
--- src/corelib/io/qfsfileengine_unix.cpp.orig (revision 452002)
+++ src/corelib/io/qfsfileengine_unix.cpp (working copy)
@@ -278,7 +278,9 @@
const QByteArray file = QFile::encodeName(this->file);
if(QT_LSTAT(file, &st) == 0)
that->isSymLink = S_ISLNK(st.st_mode);
- that->could_stat = !QT_STAT(file, &st);
+ else
+ that->isSymLink = false;
+ that->could_stat = !QT_STAT(file, &st) || that->isSymLink;
}
}
return could_stat;