Lines 2061-2070
while computing checksum for debug information"));
Link Here
|
2061 |
close (debug_fd); |
2061 |
close (debug_fd); |
2062 |
} |
2062 |
} |
2063 |
|
2063 |
|
|
|
2064 |
int success; |
2065 |
#ifdef HAVE_FUTIMES |
2066 |
success = futimes (fd, tvp); |
2067 |
#else |
2068 |
success = utimes (fname, tvp); |
2069 |
#endif |
2070 |
|
2064 |
/* If requested, preserve the timestamp. */ |
2071 |
/* If requested, preserve the timestamp. */ |
2065 |
if (tvp != NULL) |
2072 |
if (tvp != NULL) |
2066 |
{ |
2073 |
{ |
2067 |
if (futimes (fd, tvp) != 0) |
2074 |
if (success != 0) |
2068 |
{ |
2075 |
{ |
2069 |
error (0, errno, gettext ("\ |
2076 |
error (0, errno, gettext ("\ |
2070 |
cannot set access and modification date of '%s'"), |
2077 |
cannot set access and modification date of '%s'"), |
Lines 2119-2127
handle_ar (int fd, Elf *elf, const char *prefix, const char *fname,
Link Here
|
2119 |
INTERNAL_ERROR (fname); |
2126 |
INTERNAL_ERROR (fname); |
2120 |
} |
2127 |
} |
2121 |
|
2128 |
|
|
|
2129 |
int success; |
2130 |
#ifdef HAVE_FUTIMES |
2131 |
success = futimes (fd, tvp); |
2132 |
#else |
2133 |
success = utimes (fname, tvp); |
2134 |
#endif |
2135 |
|
2122 |
if (tvp != NULL) |
2136 |
if (tvp != NULL) |
2123 |
{ |
2137 |
{ |
2124 |
if (unlikely (futimes (fd, tvp) != 0)) |
2138 |
if (unlikely (success != 0)) |
2125 |
{ |
2139 |
{ |
2126 |
error (0, errno, gettext ("\ |
2140 |
error (0, errno, gettext ("\ |
2127 |
cannot set access and modification date of '%s'"), fname); |
2141 |
cannot set access and modification date of '%s'"), fname); |
2128 |
- |
|
|