From 1c71d12d9da5a4602e12b084394518fb7cecc011 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 27 Oct 2020 10:28:51 -0700 Subject: [PATCH] ams.mitm: avoid inadvertently breaking ftpd/file listers --- stratosphere/ams_mitm/source/amsmitm_initialization.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stratosphere/ams_mitm/source/amsmitm_initialization.cpp b/stratosphere/ams_mitm/source/amsmitm_initialization.cpp index 6ed3acd0b..38759498a 100644 --- a/stratosphere/ams_mitm/source/amsmitm_initialization.cpp +++ b/stratosphere/ams_mitm/source/amsmitm_initialization.cpp @@ -139,8 +139,8 @@ namespace ams::mitm { /* maintaining an open reference prevents cleanly the issue of "automatic" updaters selecting the incorrect */ /* zip, and encourages good updating hygiene -- atmosphere should not be updated on SD while HOS is alive. */ { - R_ABORT_UNLESS(mitm::fs::OpenSdFile(std::addressof(g_secondary_file), "/atmosphere/fusee-secondary.bin", ams::fs::OpenMode_ReadWrite)); - R_ABORT_UNLESS(mitm::fs::OpenSdFile(std::addressof(g_sept_payload_file), "/sept/payload.bin", ams::fs::OpenMode_ReadWrite)); + R_ABORT_UNLESS(mitm::fs::OpenSdFile(std::addressof(g_secondary_file), "/atmosphere/fusee-secondary.bin", ams::fs::OpenMode_Read)); + R_ABORT_UNLESS(mitm::fs::OpenSdFile(std::addressof(g_sept_payload_file), "/sept/payload.bin", ams::fs::OpenMode_Read)); } }