Commit 66c20af7 authored by Fabian Vogt's avatar Fabian Vogt

kio_iso: Make the root directory a KIsoDirectory as well

In other places the code assumes that every KArchiveEntry is either a
KIsoDirectory or KIsoFile, but that was not true for rootDir().

FIXED: [ 418077 ] Kio_iso crash
BUG: 418077
Discussion: !17
parent d2d1affa
......@@ -401,6 +401,10 @@ bool KIso::openArchive(QIODevice::OpenMode mode)
gid.setNum(buf.st_gid);
access = buf.st_mode & ~S_IFMT;
root = new KIsoDirectory(this, QStringLiteral("/"), 0777 | S_IFDIR,
buf.st_mtime, buf.st_atime, buf.st_ctime, uid, gid, QString());
setRootDir(root);
//qDebug() << "KIso::openArchive number of tracks: " << trackno << endl;
if (trackno == 0) trackno = 1;
......
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