diff options
-rw-r--r-- | NEWS | 15 | ||||
-rw-r--r-- | src/fid.c | 3 | ||||
-rw-r--r-- | src/fnid.c | 3 | ||||
-rw-r--r-- | src/lid.c | 3 | ||||
-rw-r--r-- | src/mkid.c | 4 | ||||
-rw-r--r-- | src/xtokid.c | 3 |
6 files changed, 23 insertions, 8 deletions
@@ -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 @@ -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:", @@ -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:", @@ -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", @@ -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:", |