From: Frantisek Sumsal Date: Fri, 17 Apr 2026 09:52:41 +0000 (+0200) Subject: dissect-image: fix path building for non-raw images X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=376d5ccba116673c3f1f469a02b25aca247e9613;p=thirdparty%2Fsystemd.git dissect-image: fix path building for non-raw images If the passed in image path didn't end with .raw, we'd return an empty string + suffix instead of the intended image + suffix path. Follow-up for 89e62e0bd3cb72915b705b5e2da1834e4d8aea9f. --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index e33e78d3102..2293cd5acbb 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -3728,7 +3728,7 @@ static char *build_auxiliary_path(const char *image, const char *suffix) { e = endswith(image, ".raw"); if (!e) - return strjoin(e, suffix); + return strjoin(image, suffix); n = new(char, e - image + strlen(suffix) + 1); if (!n)