From ff3db5d2a3d2d0d7cd910ffe27489e0b98a97688 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 3 Jul 2014 20:57:00 -0500 Subject: [PATCH] wimboot.c: Set correct error code if rename fails --- src/wimboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wimboot.c b/src/wimboot.c index 86081dfc..35fe13a9 100644 --- a/src/wimboot.c +++ b/src/wimboot.c @@ -807,6 +807,7 @@ update_wimoverlay_manually(const wchar_t *drive, const wchar_t *wim_path, if (ret) { ERROR_WITH_ERRNO("Can't rename \"%ls\" => \"%ls\"", path_main, path_wimlib_backup); + ret = WIMLIB_ERR_RENAME; goto out_free_new_contents; } } @@ -816,6 +817,7 @@ update_wimoverlay_manually(const wchar_t *drive, const wchar_t *wim_path, if (ret) { ERROR_WITH_ERRNO("Can't rename \"%ls\" => \"%ls\"", path_new, path_main); + ret = WIMLIB_ERR_RENAME; } out_free_new_contents: FREE(new_contents); -- 2.43.0