summaryrefslogtreecommitdiff
path: root/usr/src/lib/pam_modules/sample
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/pam_modules/sample')
-rw-r--r--usr/src/lib/pam_modules/sample/sample_acct_mgmt.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/src/lib/pam_modules/sample/sample_acct_mgmt.c b/usr/src/lib/pam_modules/sample/sample_acct_mgmt.c
index ff09e9d797..96aa5472a2 100644
--- a/usr/src/lib/pam_modules/sample/sample_acct_mgmt.c
+++ b/usr/src/lib/pam_modules/sample/sample_acct_mgmt.c
@@ -2,8 +2,9 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License (the "License").
- * You may not use this file except in compliance with the License.
+ * Common Development and Distribution License, Version 1.0 only
+ * (the "License"). You may not use this file except in compliance
+ * with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,10 +20,12 @@
* CDDL HEADER END
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+#pragma ident "%Z%%M% %I% %E% SMI"
+
#include <syslog.h>
#include <pwd.h>
#include <unistd.h>
@@ -103,12 +106,11 @@ pam_sm_acct_mgmt(
return (error?PAM_SUCCESS:PAM_AUTH_ERR);
}
-static char *getname();
-
static int
parse_allow_name(char *who, char *cp)
{
char name[256];
+ static char *getname();
/* catch "allow=" */
if (*cp == '\0')