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
@ -135,6 +135,8 @@ main(int argc, char **argv)
|
||||
error++;
|
||||
continue;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
}
|
||||
|
||||
return error ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user