Update libglnx, port various bits to new API

Using the error prefixing in the delta processing allows us to
do new code style.  Also strip trailing whitespace.

Use error prefixing in a few other random places.  I didn't
hunt for all of them, just testing out the new API.

Use `glnx_fchmod()`.  Also note I dropped one `fchmod (tmpf, 0600)`
which is no longer necessary.

Update submodule: libglnx

Closes: #1011
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2017-07-18 19:18:38 +00:00
1 parent efd460782a
commit 2a9689b76a
10 files changed
+111 -176

No files matched your search

+5 -8
View File
@@ -1386,11 +1386,10 @@ process_verify_result (OtPullData *pull_data,
OstreeGpgVerifyResult *result,
GError **error)
{
const char *error_prefix = glnx_strjoina ("Commit ", checksum);
GLNX_AUTO_PREFIX_ERROR(error_prefix, error);
if (result == NULL)
{
g_prefix_error (error, "Commit %s: ", checksum);
return FALSE;
}
return FALSE;
/* Allow callers to output the results immediately. */
g_signal_emit_by_name (pull_data->repo,
@@ -1398,10 +1397,8 @@ process_verify_result (OtPullData *pull_data,
checksum, result);
if (!ostree_gpg_verify_result_require_valid_signature (result, error))
{
g_prefix_error (error, "Commit %s: ", checksum);
return FALSE;
}
return FALSE;
return TRUE;
}