mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
Enable closefrom(2) here, as we have supported it for some time now.
Discussed with: mlaier MFC after: 2 weeks
This commit is contained in:
parent
439f3d8b81
commit
1a28a37578
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210878
@ -583,11 +583,7 @@ main(int argc, char **argv)
|
||||
pcap_handler phandler = dump_packet;
|
||||
const char *errstr = NULL;
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
/* another ?paranoid? safety measure we do not have */
|
||||
#else
|
||||
closefrom(STDERR_FILENO + 1);
|
||||
#endif
|
||||
|
||||
while ((ch = getopt(argc, argv, "Dxd:f:i:s:")) != -1) {
|
||||
switch (ch) {
|
||||
|
Loading…
Reference in New Issue
Block a user