Remove duplicate logging to syslog.

This commit is contained in:
nekral-guest 2008-01-01 23:45:44 +00:00
parent d590d0ccee
commit 1ff4e28748
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Remove duplicate logging to syslog.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net> 2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
* src/newgrp.c: Avoid assignments in conditionals. * src/newgrp.c: Avoid assignments in conditionals.

View File

@ -447,9 +447,6 @@ int main (int argc, char **argv)
* will be set, and the group added to the concurrent groupset. * will be set, and the group added to the concurrent groupset.
*/ */
#ifdef USE_SYSLOG #ifdef USE_SYSLOG
if (getdef_bool ("SYSLOG_SG_ENAB"))
SYSLOG ((LOG_INFO, "user `%s' switched to group `%s'",
name, group));
if (getdef_bool ("SYSLOG_SG_ENAB")) { if (getdef_bool ("SYSLOG_SG_ENAB")) {
char *loginname = getlogin (); char *loginname = getlogin ();
char *tty = ttyname (0); char *tty = ttyname (0);