Rewrite parse_config_file(). Among the old version's problems:
authorManuel Novoa III <mjn3@codepoet.org>
Sun, 1 Feb 2004 10:03:05 +0000 (10:03 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Sun, 1 Feb 2004 10:03:05 +0000 (10:03 -0000)
commit31b98dd09748535a5004e948bb560c320d179a66
tree1eb940e9065e784635878cb7abd2a17f43c2e3e2
parent083862228a3da88c6890a1a4beba5355367dfd2e
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.  :-(
applets/applets.c