mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 18:50:31 -04:00
Old fix from Robert Crowe <bob@speakez.com> that has been sitting in
my mailbox since early last year. Fixes a problem with running out of fds (by hitting the limit or whatever) when ar is given a long list of objects. The fix was to add a missing close(). Submitted by: Robert Crowe <bob@speakez.com>
This commit is contained in:
parent
10824ac8f3
commit
cfc22f9026
1 changed files with 3 additions and 1 deletions
|
|
@ -102,8 +102,10 @@ replace(argv)
|
|||
goto useold;
|
||||
}
|
||||
(void)fstat(sfd, &sb);
|
||||
if (options & AR_U && sb.st_mtime <= chdr.date)
|
||||
if (options & AR_U && sb.st_mtime <= chdr.date) {
|
||||
(void) close(sfd);
|
||||
goto useold;
|
||||
}
|
||||
|
||||
if (options & AR_V)
|
||||
(void)printf("r - %s\n", file);
|
||||
|
|
|
|||
Loading…
Reference in a new issue