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

View File

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