From: nekral-guest Date: Sun, 23 Nov 2008 00:06:56 +0000 (+0000) Subject: * libmisc/chowntty.c: Only closelog() when failure cause an exit. X-Git-Tag: 4.1.3~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a04bbb044bdec1ea4342ac0d13fc68267792a01;p=shadow * libmisc/chowntty.c: Only closelog() when failure cause an exit. --- 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); } }