Updater: Fix updating appimage across filesystems

This commit is contained in:
Vicki Pfau 2024-01-30 16:01:49 -08:00
parent 7cacae1262
commit 1723a353c2
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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);