[Pkg-shadow-commits] r3472 - in upstream/trunk: . src
Nicolas FRANÇOIS
nekral-guest at alioth.debian.org
Mon Aug 15 14:38:49 UTC 2011
Author: nekral-guest
Date: 2011-08-15 14:38:49 +0000 (Mon, 15 Aug 2011)
New Revision: 3472
Modified:
upstream/trunk/ChangeLog
upstream/trunk/src/groupmod.c
Log:
* src/groupmod.c: Check atexit failures.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2011-08-15 14:22:33 UTC (rev 3471)
+++ upstream/trunk/ChangeLog 2011-08-15 14:38:49 UTC (rev 3472)
@@ -2,6 +2,7 @@
* src/groupmod.c: Ignore return value from snprintf.
* src/groupmod.c: Add static qualifier to the cleanup structures.
+ * src/groupmod.c: Check atexit failures.
2011-08-15 Nicolas François <nicolas.francois at centraliens.net>
Modified: upstream/trunk/src/groupmod.c
===================================================================
--- upstream/trunk/src/groupmod.c 2011-08-15 14:22:33 UTC (rev 3471)
+++ upstream/trunk/src/groupmod.c 2011-08-15 14:38:49 UTC (rev 3472)
@@ -736,7 +736,6 @@
#ifdef WITH_AUDIT
audit_help_open ();
#endif
- atexit (do_cleanups);
/*
* Get my name so that I can use it to report errors.
@@ -747,6 +746,13 @@
(void) bindtextdomain (PACKAGE, LOCALEDIR);
(void) textdomain (PACKAGE);
+ if (atexit (do_cleanups) != 0) {
+ fprintf (stderr,
+ _("%s: Cannot setup cleanup service.\n"),
+ Prog);
+ exit (1);
+ }
+
process_flags (argc, argv);
OPENLOG ("groupmod");
More information about the Pkg-shadow-commits
mailing list