From: nekral-guest Date: Tue, 1 Jan 2008 23:45:44 +0000 (+0000) Subject: Remove duplicate logging to syslog. X-Git-Tag: 4.1.1~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ff4e287485df67c9953a9f521b1570def586a4c;p=shadow Remove duplicate logging to syslog. --- diff --git a/ChangeLog b/ChangeLog index cbd4737b..8e4a3d89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-01 Nicolas François + + * src/newgrp.c: Remove duplicate logging to syslog. + 2008-01-01 Nicolas François * src/newgrp.c: Avoid assignments in conditionals. diff --git a/src/newgrp.c b/src/newgrp.c index d1e0cff3..8e3e926b 100644 --- a/src/newgrp.c +++ b/src/newgrp.c @@ -447,9 +447,6 @@ int main (int argc, char **argv) * will be set, and the group added to the concurrent groupset. */ #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")) { char *loginname = getlogin (); char *tty = ttyname (0);