]> git.saurik.com Git - apple/shell_cmds.git/blobdiff - id/id.c
shell_cmds-170.tar.gz
[apple/shell_cmds.git] / id / id.c
diff --git a/id/id.c b/id/id.c
index 5bdb99c772459e2b178fff0e7f545883fd1b5bf5..4506f9b75ec096b4343677d9676008840a569e6b 100644 (file)
--- a/id/id.c
+++ b/id/id.c
@@ -347,14 +347,14 @@ id_print(struct passwd *pw, int use_ggl, int p_euid, int p_egid)
 void
 auditid(void)
 {
-       auditinfo_t auditinfo;
+       auditinfo_addr_t auditinfo;
 
-       if (getaudit(&auditinfo) < 0)
+       if (getaudit_addr(&auditinfo, sizeof(auditinfo)) < 0)
                err(1, "getaudit");
        printf("auid=%d\n", auditinfo.ai_auid);
        printf("mask.success=0x%08x\n", auditinfo.ai_mask.am_success);
        printf("mask.failure=0x%08x\n", auditinfo.ai_mask.am_failure);
-       printf("termid.port=0x%08x\n", auditinfo.ai_termid.port);
+       printf("termid.port=0x%08x\n", auditinfo.ai_termid.at_port);
        printf("asid=%d\n", auditinfo.ai_asid);
 }
 #endif
@@ -365,7 +365,7 @@ group(struct passwd *pw, int nflag)
        struct group *gr;
        int cnt, id, lastid, ngroups;
 #ifdef __APPLE__
-       gid_t *groups;
+       gid_t *groups = NULL;
 #else
        gid_t groups[NGROUPS + 1];
 #endif