http://people.freebsd.org/~avatar/mac_bsdextended.c Fixing a regression introduced in rev1.25 by honouring the errno. This should keep 'ugidfw list' to stop complaining about "Data error in security.mac.bsdextended.rules.N: Unknown error: 0" if there is a "hole" within the rule set. Index: mac_bsdextended.c =================================================================== RCS file: /home/ncvs/src/sys/security/mac_bsdextended/mac_bsdextended.c,v retrieving revision 1.25 diff -u -p -u -p -r1.25 mac_bsdextended.c --- mac_bsdextended.c 22 Apr 2005 18:49:30 -0000 1.25 +++ mac_bsdextended.c 27 Jul 2005 11:10:59 -0000 @@ -209,13 +209,10 @@ out: mtx_unlock(&mac_bsdextended_mtx); if (ruleptr != NULL) FREE(ruleptr, M_MACBSDEXTENDED); - if (req->oldptr && error == 0) { + if (req->oldptr && error == 0) error = SYSCTL_OUT(req, &temprule, sizeof(temprule)); - if (error) - return (error); - } - return (0); + return (error); } SYSCTL_NODE(_security_mac_bsdextended, OID_AUTO, rules,