devfs - fix some issues with rules
authorAlex Hornung <ahornung@gmail.com>
Mon, 1 Nov 2010 20:38:14 +0000 (20:38 +0000)
committerAlex Hornung <ahornung@gmail.com>
Mon, 1 Nov 2010 20:53:14 +0000 (20:53 +0000)
commit0d8fd16a53a43ab1002b21caa83a04df52df469e
treeed5cdfd29b67a79a0a92f4307de51746091c3a3e
parentba3d9bec940e50886334abcf1e336a9df99ff425
devfs - fix some issues with rules

* devfs_rule_alloc was still assuming that the rule_type and rule_cmd are not
  bit fields, but they now are.

* return error in a number of places when a null pointer or nil-length string
  is passed in.

Dragonfly-bug: http://bugs.dragonflybsd.org/issue1885
Reported-by: 'fanch'
sys/vfs/devfs/devfs_rules.c