[svn-upgrade] Integrating new upstream version, shadow (4.0.14)

This commit is contained in:
nekral-guest
2007-10-07 11:47:11 +00:00
parent 8451bed8b0
commit 24178ad677
502 changed files with 27080 additions and 14708 deletions

View File

@@ -73,24 +73,9 @@ void audit_logger (int type, const char *pgname, const char *op,
{
if (audit_fd < 0)
return;
else {
char buf[PATH_MAX];
const char *success;
if (result)
success = "success";
else
success = "failed";
if (name)
snprintf (buf, sizeof (buf), "%s: op=%s acct=%s res=%s",
pgname, op, name, success);
else
snprintf (buf, sizeof (buf), "%s: op=%s id=%u res=%s",
pgname, op, id, success);
audit_send_user_message (audit_fd, type, buf);
}
else
audit_log_acct_message (audit_fd, type, NULL, op, name, id,
NULL, NULL, NULL, result);
}
#endif /* WITH_AUDIT */

View File

@@ -2,7 +2,7 @@
#ifdef USE_PAM
#ident "$Id: pam_pass.c,v 1.11 2005/08/31 17:24:57 kloczek Exp $"
#ident "$Id: pam_pass.c,v 1.12 2005/10/19 15:21:07 kloczek Exp $"
/*
@@ -17,10 +17,6 @@
#include <sys/types.h>
#include "defines.h"
#include "pam_defs.h"
static const struct pam_conv conv = {
misc_conv,
NULL
};
void do_pam_passwd (const char *user, int silent, int change_expired)
{

View File

@@ -1,6 +1,6 @@
#include <config.h>
#ident "$Id: pwdcheck.c,v 1.8 2005/08/31 17:24:58 kloczek Exp $"
#ident "$Id: pwdcheck.c,v 1.9 2005/10/19 15:21:07 kloczek Exp $"
#include <pwd.h>
#include <stdio.h>
@@ -19,7 +19,6 @@ void passwd_check (const char *user, const char *passwd, const char *progname)
#ifdef USE_PAM
pam_handle_t *pamh = NULL;
int retcode;
struct pam_conv conv = { misc_conv, NULL };
if (pam_start (progname, user, &conv, &pamh)) {
bailout:

View File

@@ -29,7 +29,7 @@
#include <config.h>
#ident "$Id: sulog.c,v 1.9 2005/08/31 17:24:58 kloczek Exp $"
#ident "$Id: sulog.c,v 1.10 2005/11/02 16:21:29 kloczek Exp $"
#include <sys/types.h>
#include <sys/stat.h>
@@ -49,6 +49,14 @@ void sulog (const char *tty, int success, const char *oldname, const char *name)
FILE *fp;
mode_t oldmask;
if (success) {
SYSLOG ((LOG_INFO,
"Successful su for %s by %s",name,oldname));
} else {
SYSLOG ((LOG_NOTICE,
"FAILED su for %s by %s",name,oldname));
}
if ((sulog_file = getdef_str ("SULOG_FILE")) == (char *) 0)
return;