Remove USE_SYSLOG preprocessor conditional, which was always defined
Reported-by: Iker Pedrosa <ipedrosa@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Iker Pedrosa
parent
350b1e8683
commit
5d7a3b80e9
@@ -231,7 +231,6 @@ failure:
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
#ifdef USE_SYSLOG
|
||||
/*
|
||||
* syslog_sg - log the change of group to syslog
|
||||
*
|
||||
@@ -365,7 +364,6 @@ static void syslog_sg (const char *name, const char *group)
|
||||
free(free_login);
|
||||
free(free_tty);
|
||||
}
|
||||
#endif /* USE_SYSLOG */
|
||||
|
||||
/*
|
||||
* newgrp - change the invokers current real and effective group id
|
||||
@@ -665,11 +663,9 @@ int main (int argc, char **argv)
|
||||
* all successful validations pass through this point. The group id
|
||||
* will be set, and the group added to the concurrent groupset.
|
||||
*/
|
||||
#ifdef USE_SYSLOG
|
||||
if (getdef_bool ("SYSLOG_SG_ENAB")) {
|
||||
syslog_sg (name, group);
|
||||
}
|
||||
#endif /* USE_SYSLOG */
|
||||
|
||||
gid = grp->gr_gid;
|
||||
|
||||
|
||||
4
src/su.c
4
src/su.c
@@ -188,7 +188,6 @@ static bool restricted_shell (const char *shellname)
|
||||
static /*@noreturn@*/void su_failure (const char *tty, bool su_to_root)
|
||||
{
|
||||
sulog (tty, false, caller_name, name); /* log failed attempt */
|
||||
#ifdef USE_SYSLOG
|
||||
if (getdef_bool ("SYSLOG_SU_ENAB")) {
|
||||
SYSLOG ((su_to_root ? LOG_NOTICE : LOG_INFO,
|
||||
"- %s %s:%s", tty,
|
||||
@@ -196,7 +195,6 @@ static /*@noreturn@*/void su_failure (const char *tty, bool su_to_root)
|
||||
('\0' != name[0]) ? name : "???"));
|
||||
}
|
||||
closelog ();
|
||||
#endif
|
||||
|
||||
#ifdef WITH_AUDIT
|
||||
audit_fd = audit_open ();
|
||||
@@ -1050,13 +1048,11 @@ int main (int argc, char **argv)
|
||||
}
|
||||
|
||||
sulog (caller_tty, true, caller_name, name); /* save SU information */
|
||||
#ifdef USE_SYSLOG
|
||||
if (getdef_bool ("SYSLOG_SU_ENAB")) {
|
||||
SYSLOG ((LOG_INFO, "+ %s %s:%s", caller_tty,
|
||||
('\0' != caller_name[0]) ? caller_name : "???",
|
||||
('\0' != name[0]) ? name : "???"));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_PAM
|
||||
/* set primary group id and supplementary groups */
|
||||
|
||||
Reference in New Issue
Block a user