Commit 15865bf6 authored by Stefan Brüns's avatar Stefan Brüns Committed by Christoph Cullmann
Browse files

Fix UDS_ACCESS for toplevel entries on Windows

Commit ec972526 ("Fix Windows build") essentially reverted the
change it meant to fix, by readding write permissions to the directories
on Windows.
parent 5dab2a0d
......@@ -275,7 +275,7 @@ void NetworkSlave::feedEntryAsNetwork( KIO::UDSEntry* entry )
// entry->fastInsert( KIO::UDSEntry::UDS_ICON_NAME, NetworkIconName );
entry->fastInsert( KIO::UDSEntry::UDS_MIME_TYPE, QLatin1String(Mimetypes::NetworkMimetype) );
#ifdef Q_OS_WIN
entry->fastInsert( KIO::UDSEntry::UDS_ACCESS, _S_IREAD | _S_IWRITE );
entry->fastInsert( KIO::UDSEntry::UDS_ACCESS, _S_IREAD );
#else
entry->fastInsert( KIO::UDSEntry::UDS_ACCESS, S_IRUSR | S_IXUSR );
#endif
......@@ -288,7 +288,7 @@ void NetworkSlave::feedEntryAsDevice( KIO::UDSEntry* entry, const Mollet::NetDev
entry->fastInsert( KIO::UDSEntry::UDS_DISPLAY_NAME, deviceData.name() );
entry->fastInsert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR );
#ifdef Q_OS_WIN
entry->fastInsert( KIO::UDSEntry::UDS_ACCESS, _S_IREAD | _S_IWRITE );
entry->fastInsert( KIO::UDSEntry::UDS_ACCESS, _S_IREAD );
#else
entry->fastInsert( KIO::UDSEntry::UDS_ACCESS, S_IRUSR | S_IXUSR );
#endif
......
......@@ -160,7 +160,7 @@ void RecentDocuments::stat(const QUrl& url)
uds.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
uds.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QString::fromLatin1("inode/directory"));
#ifdef Q_OS_WIN
uds.fastInsert(KIO::UDSEntry::UDS_ACCESS, _S_IREAD | _S_IWRITE );
uds.fastInsert(KIO::UDSEntry::UDS_ACCESS, _S_IREAD );
#else
uds.fastInsert(KIO::UDSEntry::UDS_ACCESS, S_IRUSR | S_IXUSR );
#endif
......
......@@ -234,7 +234,7 @@ KIO::UDSEntry RecentlyUsed::udsEntryForRoot(const QString &dirName, const QStrin
uds.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR);
uds.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, QStringLiteral("inode/directory"));
#ifdef Q_OS_WIN
uds.fastInsert(KIO::UDSEntry::UDS_ACCESS, _S_IREAD | _S_IWRITE );
uds.fastInsert(KIO::UDSEntry::UDS_ACCESS, _S_IREAD );
#else
uds.fastInsert(KIO::UDSEntry::UDS_ACCESS, S_IRUSR | S_IXUSR );
#endif
......
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