deraadt@ pointed out that NetBSD committed a uid_t fix for their
sa(8), and as far as I can tell, it's needed in our tree too.

I'd really appreciate if someone who actually uses sa(8) could test
that this diff still works for them and save me the trouble of
learning how to use it. :) The important thing to test here is that
the per-user accounting summary database (i.e., /var/account/usracct)
is still updated correctly.


Index: usrdb.c
===================================================================
RCS file: /cvs/src/usr.sbin/sa/usrdb.c,v
retrieving revision 1.8
diff -u -p -r1.8 usrdb.c
--- usrdb.c     27 Oct 2009 23:59:54 -0000      1.8
+++ usrdb.c     30 Aug 2010 15:51:19 -0000
@@ -264,7 +264,7 @@ usracct_print(void)
 static int
 uid_compare(const DBT *k1, const DBT *k2)
 {
-       u_long d1, d2;
+       uid_t d1, d2;
 
        memcpy(&d1, k1->data, sizeof(d1));
        memcpy(&d2, k2->data, sizeof(d2));

Reply via email to