* libmisc/chowntty.c: Only closelog() when failure cause an exit.
This commit is contained in:
parent
cf31f05cfb
commit
1a04bbb044
@ -2,6 +2,7 @@
|
||||
|
||||
* libmisc/chowntty.c: Improve the logs for fchown and fchmod
|
||||
failures.
|
||||
* libmisc/chowntty.c: Only closelog() when failure cause an exit.
|
||||
|
||||
2008-11-23 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user