devfsctl - Cleanup and several bugfixes
authorAlex Hornung <ahornung@gmail.com>
Fri, 7 Aug 2009 20:52:24 +0000 (21:52 +0100)
committerAlex Hornung <ahornung@gmail.com>
Fri, 7 Aug 2009 20:57:42 +0000 (21:57 +0100)
commit908cd01afea2e88b859f9dad9404c05ba5d77ebd
tree44dfd294b20aff19cf4d6cf10ad332e18d685738
parent0a4e59705dedc9c25d25e3766ee2e93d817d5ef9
devfsctl - Cleanup and several bugfixes

* split lines longer than 80 columns

* Moved TAILQ_INSERT* into get_rule to avoid a problem which
  caused groups to also be inserted and kept in the rule
  list

* Fix several bugs related to config file parsing, including:
  - a bug in the argument checker, which caused a SEGFAULT
  - a bug that would cause lines beginning with whitespaces
    to duplicate their first real token
  - an incorrect check for an empty line, which caused a
    warning about an incorrect verb instead of ignoring
    the line
usr.sbin/devfsctl/devfsctl.c