From: Colin Walters Date: Tue, 25 Apr 2017 21:27:32 +0000 (-0400) Subject: repo: Fix incorrect use of errno() error throwing X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~37^2~70 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=20b0836ec856675416b615315b94d80bad871af8;p=ostree.git repo: Fix incorrect use of errno() error throwing I happened to glance at the top of my most recent patch and noticed that I used an `throw_errno()` function in a non-errno place. I scanned the patch for other instances of this but didn't find one. Closes: #811 Approved by: jlebon --- diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 5a2d94f2..ec2d8c83 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -2631,7 +2631,7 @@ query_info_for_bare_content_object (OstreeRepo *self, return FALSE; } else - return glnx_throw_errno_prefix (error, "Not a regular file or symlink: %s", loose_path_buf); + return glnx_throw (error, "Not a regular file or symlink: %s", loose_path_buf); ot_transfer_out_value (out_info, &ret_info); return TRUE;