Version: 0.3.8
* glibc-2.1 does no longer need `_GNU_SOURCE' defined to use <getopt.h>
* Changed description of package; adopted Red Hat's one
(thanks to whoever wrote it)
* Close all the file descriptors used before executing program (close-on-exec)
* Updated copyright file for new location /usr/share/common-licenses/GPL.
* Used GNU autoconf instead of "uname" to guess host system type
* Install man page in /usr/share/man instead of /usr/man
* Added a few functions to /etc/ltrace.conf
* Updated list of syscalls and signals to linux-2.2.12
* Fixed bugs in C++ demangle (Morten Eriksen <mortene@sim.no>)
* New Standards-Version: 3.0.1 (but keeping docs in /usr/doc)
diff --git a/options.c b/options.c
index 57a0f8e..a5b10a6 100644
--- a/options.c
+++ b/options.c
@@ -5,13 +5,12 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
+#include <fcntl.h>
#include <errno.h>
#include <limits.h>
#if HAVE_GETOPT_H
-#define _GNU_SOURCE
#include <getopt.h>
-#undef _GNU_SOURCE
#endif
#include "ltrace.h"
@@ -192,6 +191,7 @@
exit(1);
}
setvbuf(output, (char *)NULL, _IOLBF, 0);
+ fcntl(fileno(output), F_SETFD, FD_CLOEXEC);
break;
case 'u': opt_u = optarg;
break;