From: noxiouz Date: Fri, 27 Feb 2026 00:02:12 +0000 (+0000) Subject: import: fix AlreadyInProgress Varlink error missing remote field X-Git-Tag: v257.12~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37a302904633e2e8dc07a86c458fb8b58a058023;p=thirdparty%2Fsystemd.git import: fix AlreadyInProgress Varlink error missing remote field The handler sends the remote URL as a parameter via sd_varlink_errorbo() but the IDL declared the error with no fields, making the payload undiscoverable via introspection. (cherry picked from commit c22a131e7438098e24239e8ed21a64ffb20631cc) (cherry picked from commit 86586394fcf13129cf0cdb5fd75daebfdf9b873d) (cherry picked from commit 66d294a24f524cc49283679997d9885bdcb696bf) --- diff --git a/src/shared/varlink-io.systemd.Import.c b/src/shared/varlink-io.systemd.Import.c index 66030e63fc0..250b2ec469c 100644 --- a/src/shared/varlink-io.systemd.Import.c +++ b/src/shared/varlink-io.systemd.Import.c @@ -99,7 +99,10 @@ static SD_VARLINK_DEFINE_METHOD_FULL( SD_VARLINK_FIELD_COMMENT("The numeric ID of this download"), SD_VARLINK_DEFINE_OUTPUT(id, SD_VARLINK_INT, SD_VARLINK_NULLABLE)); -static SD_VARLINK_DEFINE_ERROR(AlreadyInProgress); +static SD_VARLINK_DEFINE_ERROR( + AlreadyInProgress, + SD_VARLINK_FIELD_COMMENT("The URL of the transfer already in progress."), + SD_VARLINK_DEFINE_FIELD(remote, SD_VARLINK_STRING, 0)); static SD_VARLINK_DEFINE_ERROR(TransferCancelled); static SD_VARLINK_DEFINE_ERROR(TransferFailed); static SD_VARLINK_DEFINE_ERROR(NoTransfers);