diff --git a/ChangeLog b/ChangeLog index 18c1ee12..b278bcb9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/libmisc/chowntty.c b/libmisc/chowntty.c index b43931e3..3d4da107 100644 --- a/libmisc/chowntty.c +++ b/libmisc/chowntty.c @@ -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); } }