From: Eric Biggers Date: Fri, 4 Jul 2014 01:57:00 +0000 (-0500) Subject: wimboot.c: Set correct error code if rename fails X-Git-Tag: v1.7.1~69 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=ff3db5d2a3d2d0d7cd910ffe27489e0b98a97688 wimboot.c: Set correct error code if rename fails --- 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);