From 5c027e3b5c667ad17728cb04265835887fe6eb62 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 17 Jan 2016 19:11:04 +0100 Subject: Fix uninstallation for mi4 based bootloader installs. On case sensitive systems (i.e. Linux) uninstalling the bootloader could fail when renaming the original bootloader file back. Fix this by using the case-resolved filename. Change-Id: I504656f70e7ccc7c0752f5252ddb14a625131f5b --- rbutil/rbutilqt/base/bootloaderinstallmi4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rbutil') diff --git a/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp b/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp index e4722fda23..e18d3e2341 100644 --- a/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp +++ b/rbutil/rbutilqt/base/bootloaderinstallmi4.cpp @@ -109,7 +109,7 @@ bool BootloaderInstallMi4::uninstall(void) QFile blfile(resolved); blfile.remove(); - QFile::rename(Utils::resolvePathCase(original), m_blfile); + QFile::rename(Utils::resolvePathCase(original), resolved); emit logItem(tr("Rockbox bootloader successful removed"), LOGINFO); logInstall(LogRemove); emit done(false); -- cgit