1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-04 16:17:17 +02:00

std::filesystem uses perms::*_exec not _exe

This commit is contained in:
tsjost 2021-10-12 16:52:58 +02:00
parent 26983ffa3d
commit e34884598f

View File

@ -115,15 +115,15 @@ public:
} }
virtual void change_perms_normal() const override { virtual void change_perms_normal() const override {
rwfs::permissions(this->path(), rwfs::permissions(this->path(),
rwfs::perms::owner_read | rwfs::perms::owner_write | rwfs::perms::owner_exe | rwfs::perms::owner_read | rwfs::perms::owner_write | rwfs::perms::owner_exec |
rwfs::perms::group_read | rwfs::perms::group_exe | rwfs::perms::group_read | rwfs::perms::group_exec |
rwfs::perms::others_read | rwfs::perms::others_exe); rwfs::perms::others_read | rwfs::perms::others_exec);
} }
virtual void change_perms_readonly() const override { virtual void change_perms_readonly() const override {
rwfs::permissions(this->path(), rwfs::permissions(this->path(),
rwfs::perms::owner_read | rwfs::perms::owner_exe | rwfs::perms::owner_read | rwfs::perms::owner_exec |
rwfs::perms::group_read | rwfs::perms::group_exe | rwfs::perms::group_read | rwfs::perms::group_exec |
rwfs::perms::others_read | rwfs::perms::others_exe); rwfs::perms::others_read | rwfs::perms::others_exec);
} }
virtual void remove() const override { virtual void remove() const override {
// Remove may fail if this directory contains a read-only entry. Ignore. // Remove may fail if this directory contains a read-only entry. Ignore.