diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2004-02-01 10:03:05 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2004-02-01 10:03:05 +0000 |
commit | 31b98dd09748535a5004e948bb560c320d179a66 (patch) | |
tree | 1eb940e9065e784635878cb7abd2a17f43c2e3e2 /testsuite/rm | |
parent | 083862228a3da88c6890a1a4beba5355367dfd2e (diff) | |
download | busybox-31b98dd09748535a5004e948bb560c320d179a66.tar.gz |
Rewrite parse_config_file(). Among the old version's problems:
No checking for lines that were too long.
No checking that fgets returning NULL was actually due to EOF.
Various whitespace handling inconsistencies.
Bloat (switches and multiple identical function calls).
Failure to check for trailing characters in some cases.
Dynamicly allocated memory was not free()d on error.
Given that this controls suid/sgid behavior, the sloppy coding was
really inexcusable. :-(
Diffstat (limited to 'testsuite/rm')
0 files changed, 0 insertions, 0 deletions