From b697ad6ca0ec7c7df87884e2e65cf719ca58b91e Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Wed, 17 Aug 2022 02:54:09 +0200 Subject: [PATCH] Remove access checks in windows fs operations These were giving false negatives on samba shares, which broke the font collector. Windows also recommends to not use access checks in these cases, and instead just see if the operations succeeds or not. --- libaegisub/windows/fs.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libaegisub/windows/fs.cpp b/libaegisub/windows/fs.cpp index 8102c6ee3..f626407e2 100644 --- a/libaegisub/windows/fs.cpp +++ b/libaegisub/windows/fs.cpp @@ -60,9 +60,7 @@ void Touch(path const& file) { } void Copy(fs::path const& from, fs::path const& to) { - acs::CheckFileRead(from); CreateDirectory(to.parent_path()); - acs::CheckDirWrite(to.parent_path()); if (!CopyFile(from.wstring().c_str(), to.wstring().c_str(), false)) { switch (GetLastError()) {