diff --git a/src/libotutil/ot-gio-utils.c b/src/libotutil/ot-gio-utils.c index ba21b467..da32653e 100644 --- a/src/libotutil/ot-gio-utils.c +++ b/src/libotutil/ot-gio-utils.c @@ -309,7 +309,10 @@ ot_gfile_ensure_unlinked (GFile *path, if (unlink (gs_file_get_path_cached (path)) != 0) { if (errno != ENOENT) - return FALSE; + { + glnx_set_error_from_errno (error); + return FALSE; + } } return TRUE; }