devfs - Change setattr code to use vop_helper fns
authorAlex Hornung <ahornung@gmail.com>
Tue, 29 Mar 2011 09:06:29 +0000 (10:06 +0100)
committerAlex Hornung <ahornung@gmail.com>
Tue, 29 Mar 2011 09:13:33 +0000 (10:13 +0100)
commitdffaed1b353f1021277eaf511b1e2f4a3db290a6
treebc547becfb77aeecdf063b09a1a1fa44717b106b
parentaab0fc620f3127f0cb10ddcd5110ce55280adf2d
devfs - Change setattr code to use vop_helper fns

* Change the devfs vop_setattr to use the vop_helper functions for chown
  and chmod.

* This gets rid of the previous roll-your-own solution and fixes several
  edge cases.

* It also fixes a warning thrown by xterm when closing it.

Reported-by: luxh
sys/vfs/devfs/devfs_vnops.c