X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=bsm_audit.c;h=94ed4a8bf5152434c5cd50ae018e21f54125d0c5;hb=f3530d8198251b72d01da9a07b1fa518446ec0f0;hp=a673d281e3c1a7f0456d3635adcdd6dfe98f51aa;hpb=a91c5f78701b90c47a08daa15569ef64c6194504;p=debian%2Fsudo diff --git a/bsm_audit.c b/bsm_audit.c index a673d28..94ed4a8 100644 --- a/bsm_audit.c +++ b/bsm_audit.c @@ -1,4 +1,5 @@ /* + * Copyright (c) 2009-2010 Todd C. Miller * Copyright (c) 2009 Christian S.J. Peron * * Permission to use, copy, modify, and distribute this software for any @@ -35,7 +36,7 @@ * Solaris auditon() returns EINVAL if BSM audit not configured. * OpenBSM returns ENOSYS for unimplemented options. */ -#ifdef __sun__ +#ifdef __sun # define AUDIT_NOT_CONFIGURED EINVAL #else # define AUDIT_NOT_CONFIGURED ENOSYS @@ -62,7 +63,7 @@ audit_sudo_selected(int sf) mask = &ainfo_addr.ai_mask; sorf = (sf == 0) ? AU_PRS_SUCCESS : AU_PRS_FAILURE; rc = au_preselect(AUE_sudo, mask, sorf, AU_PRS_REREAD); - return (rc); + return rc; } void