Fclose() and unlink() errors aren't fatal here, just ignore

This commit is contained in:
Panu Matilainen 2011-04-19 13:04:28 +03:00
parent 6f75f9e764
commit 6e731e2832
1 changed files with 2 additions and 2 deletions

View File

@ -279,11 +279,11 @@ static rpmRC runExtScript(int selinux, ARGV_const_t prefixes,
exit:
if (out)
xx = Fclose(out); /* XXX dup'd STDOUT_FILENO */
Fclose(out); /* XXX dup'd STDOUT_FILENO */
if (script) {
if (!rpmIsDebug())
xx = unlink(fn);
unlink(fn);
fn = _free(fn);
}
return rc;