From 5aa7c955f1925fde6c95e487df4be532608dc6c9 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 | 2 ++ src/feature/updater-main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index c8d4ed8e7..6d94248d2 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ 0.10.4: (Future) Emulation fixes: - GBA SIO: Fix MULTI mode SIOCNT bit 7 writes on secondary GBAs (fixes mgba.io/i/3110) +Other fixes: + - Updater: Fix updating appimage across filesystems Misc: - Vita: Add imc0 and xmc0 mount point support diff --git a/src/feature/updater-main.c b/src/feature/updater-main.c index becd9c2a3..e324e657f 100644 --- a/src/feature/updater-main.c +++ b/src/feature/updater-main.c @@ -250,7 +250,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);