[Pkg-shadow-commits] r2454 - in upstream/trunk: . libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sun Nov 23 00:06:57 UTC 2008


Author: nekral-guest
Date: 2008-11-23 00:06:56 +0000 (Sun, 23 Nov 2008)
New Revision: 2454

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/libmisc/chowntty.c
Log:
	* libmisc/chowntty.c: Only closelog() when failure cause an exit.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-11-23 00:05:39 UTC (rev 2453)
+++ upstream/trunk/ChangeLog	2008-11-23 00:06:56 UTC (rev 2454)
@@ -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 at centraliens.net>
 

Modified: upstream/trunk/libmisc/chowntty.c
===================================================================
--- upstream/trunk/libmisc/chowntty.c	2008-11-23 00:05:39 UTC (rev 2453)
+++ upstream/trunk/libmisc/chowntty.c	2008-11-23 00:06:56 UTC (rev 2454)
@@ -90,6 +90,7 @@
 		         "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);
 		}
 	}




More information about the Pkg-shadow-commits mailing list