Bug 118251
| Summary: | prelink mishandles temp files if /usr mounted read-only | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Robert Nichols <rnichols42> |
| Component: | prelink | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 1 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 0.3.1-2 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-03-17 12:49:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Robert Nichols
2004-03-14 15:46:29 UTC
--- prelink/src/dso.c~ 2004-03-15 15:34:13.034559500 +0100
+++ prelink/src/dso.c 2004-03-15 15:34:13.034559500 +0100
@@ -1735,10 +1735,14 @@ update_dso (DSO *dso)
utime (name2, &u);
if (set_security_context (dso, name2, name1))
- return 1;
+ {
+ unlink (name2);
+ return 1;
+ }
if (rename (name2, name1))
{
+ unlink (name2);
error (0, errno, "Could not rename temporary to %s", name1);
return 1;
}
should fix this. I'll include it in 0.3.1-2.
An errata has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2004-386.html |