Commit 10a58ca2 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Do not follow . and ..

svn path=/trunk/KDE/kdeutils/ark/; revision=980560
parent 587907db
......@@ -402,7 +402,7 @@ bool LibArchiveInterface::addFiles( const QStringList & files, const Compression
return false;
if (QFileInfo(selectedFile).isDir()) {
QDirIterator it(selectedFile, QDir::AllEntries | QDir::Readable | QDir::Hidden, QDirIterator::Subdirectories);
QDirIterator it(selectedFile, QDir::AllEntries | QDir::Readable | QDir::Hidden | QDir::NoDotAndDotDot, QDirIterator::Subdirectories);
while (it.hasNext()) {
QString path = it.next();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment