From: Zbigniew Jędrzejewski-Szmek Date: Tue, 6 Jul 2021 07:14:22 +0000 (+0200) Subject: import: use SYNTHETIC_ERRNO in one more place X-Git-Tag: v250-rc1~952^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22fd4a8f85aacc2c9d5e185f6d692922b4dacc83;p=thirdparty%2Fsystemd.git import: use SYNTHETIC_ERRNO in one more place --- diff --git a/src/import/pull-job.c b/src/import/pull-job.c index cd32ecc1887..038fa2be8ba 100644 --- a/src/import/pull-job.c +++ b/src/import/pull-job.c @@ -502,8 +502,7 @@ static size_t pull_job_header_callback(void *contents, size_t size, size_t nmemb if (j->content_length != UINT64_MAX) { if (j->content_length > j->compressed_max) { - log_error("Content too large."); - r = -EFBIG; + r = log_error_errno(SYNTHETIC_ERRNO(EFBIG), "Content too large."); goto fail; }