summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS15
-rw-r--r--src/fid.c3
-rw-r--r--src/fnid.c3
-rw-r--r--src/lid.c3
-rw-r--r--src/mkid.c4
-rw-r--r--src/xtokid.c3
6 files changed, 23 insertions, 8 deletions
diff --git a/NEWS b/NEWS
index 9fd3304..89fe053 100644
--- a/NEWS
+++ b/NEWS
@@ -4,16 +4,17 @@ idutils NEWS - User visible changes.
** Bug fixes
-fid: avoid a buffer overrun
-handle failed allocation, e.g., by strdup
-avoid potential realloc overflow
-mkid: avoid an infloop on some .el files
+ fid: avoid a buffer overrun
+ handle failed allocation, e.g., by strdup
+ avoid potential realloc overflow
+ mkid: avoid an infloop on some .el files
+ all programs: detect write error on stdout
** Miscellaneous improvements
-revamp code and infrastructure, bringing it closer to coreutils' standards
-add automatically-generated man pages
-mkid recognize more suffixes: .ac, .mk, .bz2, .lzma.
+ revamp code and infrastructure, bringing it closer to coreutils' standards
+ add automatically-generated man pages
+ mkid recognize more suffixes: .ac, .mk, .bz2, .lzma.
Version 4.2 - August 5, 2006, by Claudio Fontana
diff --git a/src/fid.c b/src/fid.c
index 45c6853..05130fd 100644
--- a/src/fid.c
+++ b/src/fid.c
@@ -28,6 +28,7 @@
#include <pathmax.h>
#include <xalloc.h>
+#include "closeout.h"
#include "xnls.h"
#include "idfile.h"
#include "iduglobal.h"
@@ -113,6 +114,8 @@ main (int argc, char **argv)
textdomain (PACKAGE);
#endif
+ atexit (close_stdout);
+
for (;;)
{
int optc = getopt_long (argc, argv, "f:",
diff --git a/src/fnid.c b/src/fnid.c
index d20c543..6a81189 100644
--- a/src/fnid.c
+++ b/src/fnid.c
@@ -29,6 +29,7 @@
#include <pathmax.h>
#include <error.h>
+#include "closeout.h"
#include "xnls.h"
#include "idfile.h"
#include "iduglobal.h"
@@ -97,6 +98,8 @@ main (int argc, char **argv)
textdomain (PACKAGE);
#endif
+ atexit (close_stdout);
+
for (;;)
{
int optc = getopt_long (argc, argv, "f:S:",
diff --git a/src/lid.c b/src/lid.c
index d7c3770..2ea305c 100644
--- a/src/lid.c
+++ b/src/lid.c
@@ -38,6 +38,7 @@
#include <pathmax.h>
#include <error.h>
+#include "closeout.h"
#include "xnls.h"
#include "idfile.h"
#include "iduglobal.h"
@@ -304,6 +305,8 @@ main (int argc, char **argv)
textdomain (PACKAGE);
#endif
+ atexit (close_stdout);
+
for (;;)
{
int optc = getopt_long (argc, argv, "f:F:a:k:R:S:ilrwsxdo",
diff --git a/src/mkid.c b/src/mkid.c
index fdf9926..c0528cb 100644
--- a/src/mkid.c
+++ b/src/mkid.c
@@ -34,6 +34,7 @@
#include <xalloc.h>
#include <error.h>
+#include "closeout.h"
#include "xnls.h"
#include "idfile.h"
#include "hash.h"
@@ -59,7 +60,6 @@ struct summary
void usage (void);
static void help_me (void);
-int main (int argc, char **argv);
static int ceil_log_8 (unsigned long n);
static int ceil_log_2 (unsigned long n);
static void assert_writeable (char const *file_name);
@@ -209,6 +209,8 @@ main (int argc, char **argv)
textdomain (PACKAGE);
#endif
+ atexit (close_stdout);
+
for (;;)
{
int optc = getopt_long (argc, argv, "o:f:i:x:l:m:d:p:vVs",
diff --git a/src/xtokid.c b/src/xtokid.c
index 5dc97fe..3ee8e92 100644
--- a/src/xtokid.c
+++ b/src/xtokid.c
@@ -26,6 +26,7 @@
#include <pathmax.h>
#include <error.h>
+#include "closeout.h"
#include "xnls.h"
#include "scanners.h"
#include "idfile.h"
@@ -102,6 +103,8 @@ main (int argc, char **argv)
textdomain (PACKAGE);
#endif
+ atexit (close_stdout);
+
for (;;)
{
int optc = getopt_long (argc, argv, "i:x:l:m:d:p:",