From 1723a353c206996882d9bdb4b138dd19d128d378 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 30 Jan 2024 16:01:49 -0800 Subject: [PATCH] Updater: Fix updating appimage across filesystems --- CHANGES | 1 + src/tools/updater-main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index d43f3ad1a..d850f2002 100644 --- a/CHANGES +++ b/CHANGES @@ -19,6 +19,7 @@ Other fixes: - Debugger: Fix writing to specific segment in command-line debugger - GB: Fix uninitialized save data when loading undersized temporary saves - Qt: Fix savestate preview sizes with different scales (fixes mgba.io/i/2560) + - Updater: Fix updating appimage across filesystems Misc: - Core: Handle relative paths for saves, screenshots, etc consistently (fixes mgba.io/i/2826) - GB: Prevent incompatible BIOSes from being used on differing models diff --git a/src/tools/updater-main.c b/src/tools/updater-main.c index 6a1e2a822..a27a07a08 100644 --- a/src/tools/updater-main.c +++ b/src/tools/updater-main.c @@ -271,7 +271,7 @@ int main(int argc, char* argv[]) { // Cross-dev, need to copy manually int infd = open(updateArchive, O_RDONLY); int outfd = -1; - if (infd >= 0) { + if (infd < 0) { ok = 2; } else { outfd = open(bin, O_CREAT | O_WRONLY | O_TRUNC, 0755);