Commit 0cbdeb1f authored by Méven Car's avatar Méven Car
Browse files

sftp: avoid bogus KIO::UDSEntry::UDS_CREATION_TIME values

"flags & SSH_FILEXFER_ATTR_CREATETIME" check was missing in listDir

CCBUG: 375305
parent 679bcb3e
Pipeline #86932 passed with stage
in 1 minute and 53 seconds
......@@ -2304,7 +2304,9 @@ Result SFTPInternal::listDir(const QUrl &url)
entry.fastInsert(KIO::UDSEntry::UDS_ACCESS_TIME, dirent->atime);
entry.fastInsert(KIO::UDSEntry::UDS_MODIFICATION_TIME, dirent->mtime);
entry.fastInsert(KIO::UDSEntry::UDS_CREATION_TIME, dirent->createtime);
if (dirent->flags & SSH_FILEXFER_ATTR_CREATETIME) {
entry.fastInsert(KIO::UDSEntry::UDS_CREATION_TIME, dirent->createtime);
}
}
q->listEntry(entry);
......
Supports Markdown
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