* libmisc/chowntty.c: Only closelog() when failure cause an exit.
This commit is contained in:
@@ -90,6 +90,7 @@ void chown_tty (const struct passwd *info)
|
||||
"unable to change owner or mode of tty stdin for user `%s': %s\n",
|
||||
info->pw_name, strerror (err)));
|
||||
if (EROFS != err) {
|
||||
closelog ();
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user