* commit '616f368076c9d7f0fc4459b79ba26c1d1ec0a247': Fix a TEMP_FAILURE_RETRY usage error in the linker.
This commit is contained in:
commit
c823b2c741
@ -648,16 +648,15 @@ typedef struct {
|
||||
static unsigned long
|
||||
is_prelinked(int fd, const char *name)
|
||||
{
|
||||
off_t sz;
|
||||
prelink_info_t info;
|
||||
|
||||
sz = lseek(fd, -sizeof(prelink_info_t), SEEK_END);
|
||||
off_t sz = lseek(fd, -sizeof(prelink_info_t), SEEK_END);
|
||||
if (sz < 0) {
|
||||
DL_ERR("lseek() failed!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (TEMP_FAILURE_RETRY(read(fd, &info, sizeof(info)) != sizeof(info))) {
|
||||
prelink_info_t info;
|
||||
int rc = TEMP_FAILURE_RETRY(read(fd, &info, sizeof(info)));
|
||||
if (rc != sizeof(info)) {
|
||||
WARN("Could not read prelink_info_t structure for `%s`\n", name);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user