* libmisc/chowntty.c: Only closelog() when failure cause an exit.

This commit is contained in:
nekral-guest 2008-11-23 00:06:56 +00:00
parent cf31f05cfb
commit 1a04bbb044
2 changed files with 2 additions and 0 deletions

View File

@ -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>

View File

@ -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);
}
}