mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
(ar_member_touch) [EINTR]: Do EINTR looping around fstat.
This commit is contained in:
parent
b574b8ea5a
commit
30c1465265
1 changed files with 4 additions and 0 deletions
4
arscan.c
4
arscan.c
|
@ -495,7 +495,11 @@ ar_member_touch (arname, memname)
|
|||
if (AR_HDR_SIZE != write (fd, (char *) &ar_hdr, AR_HDR_SIZE))
|
||||
goto lose;
|
||||
/* The file's mtime is the time we we want. */
|
||||
#ifdef EINTR
|
||||
while (fstat (fd, &statbuf) < 0 && errno == EINTR);
|
||||
#else
|
||||
fstat (fd, &statbuf);
|
||||
#endif
|
||||
#if defined(ARFMAG) || defined(AIAMAG)
|
||||
/* Advance member's time to that time */
|
||||
for (i = 0; i < sizeof ar_hdr.ar_date; i++)
|
||||
|
|
Loading…
Reference in a new issue