diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-04-19 23:34:22 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-04-19 23:34:22 +0000 |
commit | b958422b5e64017476e2f902ba8ee01dc2141be6 (patch) | |
tree | 79f70968bdbd7522eb79c4d3799780062782f17d /usr.bin/login | |
parent | 901982532143dd15841b3ba3de8c712772a56b6f (diff) | |
download | FreeBSD-src-b958422b5e64017476e2f902ba8ee01dc2141be6.zip FreeBSD-src-b958422b5e64017476e2f902ba8ee01dc2141be6.tar.gz |
Pass int arguments to auditon(2)'s A_GETCOND API rather than long
arguments. This change should be MFC'd with OpenBSM 1.1 since they
are interdependent.
MFC after: 2 weeks
Obtained from: TrustedBSD Project
Sponsored by: Apple, Inc.
Diffstat (limited to 'usr.bin/login')
-rw-r--r-- | usr.bin/login/login_audit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/login/login_audit.c b/usr.bin/login/login_audit.c index a50a158..210f2d7 100644 --- a/usr.bin/login/login_audit.c +++ b/usr.bin/login/login_audit.c @@ -67,10 +67,10 @@ au_login_success(void) uid_t uid = pwd->pw_uid; gid_t gid = pwd->pw_gid; pid_t pid = getpid(); - long au_cond; + int au_cond; /* If we are not auditing, don't cut an audit record; just return. */ - if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) { + if (auditon(A_GETCOND, &au_cond, sizeof(au_cond)) < 0) { if (errno == ENOSYS) return; errx(1, "login: Could not determine audit condition"); @@ -115,13 +115,13 @@ au_login_fail(const char *errmsg, int na) { token_t *tok; int aufd; - long au_cond; + int au_cond; uid_t uid; gid_t gid; pid_t pid = getpid(); /* If we are not auditing, don't cut an audit record; just return. */ - if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) { + if (auditon(A_GETCOND, &au_cond, sizeof(au_cond)) < 0) { if (errno == ENOSYS) return; errx(1, "login: Could not determine audit condition"); @@ -175,10 +175,10 @@ audit_logout(void) uid_t uid = pwd->pw_uid; gid_t gid = pwd->pw_gid; pid_t pid = getpid(); - long au_cond; + int au_cond; /* If we are not auditing, don't cut an audit record; just return. */ - if (auditon(A_GETCOND, &au_cond, sizeof(long)) < 0) { + if (auditon(A_GETCOND, &au_cond, sizeof(int)) < 0) { if (errno == ENOSYS) return; errx(1, "login: Could not determine audit condition"); |