Remove duplicate logging to syslog.
This commit is contained in:
parent
d590d0ccee
commit
1ff4e28748
@ -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>
|
||||
|
||||
* src/newgrp.c: Avoid assignments in conditionals.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user