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:
Sheldon Hearn 2000-07-23 13:24:01 +00:00
parent 4c27efd514
commit 4d532a362e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63774

View file

@ -135,6 +135,8 @@ main(int argc, char **argv)
error++;
continue;
}
close(fd);
}
return error ? EXIT_FAILURE : EXIT_SUCCESS;