mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-25 04:07:37 +00:00
Close file descriptors after use so as not to abuse the descriptor
table when a long argument list is given. :-) Reported by: Sven Agnew <afterhours80@hotmail.com>
This commit is contained in:
parent
4c27efd514
commit
4d532a362e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63774
|
@ -135,6 +135,8 @@ main(int argc, char **argv)
|
|||
error++;
|
||||
continue;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
}
|
||||
|
||||
return error ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue