Package: fapg Version: 0.38-2 Severity: normal Tags: patch When I run "fapg --help", the program dies with a segmentation fault inside getopt_long().
According to the getopt_long(3) manpage, "The last element of the [longopts] array has to be filled with zeroes." In fapg, the long_options array is currently not zero-terminated. The patch against fapg-0.38 is included below. fapg-0.39 has the same problem, and the same patch applies. ======= BEGIN PATCH ========= diff -ruN fapg-0.38.orig/fapg.c fapg-0.38/fapg.c --- fapg-0.38.orig/fapg.c 2007-03-13 10:57:53.000000000 -0600 +++ fapg-0.38/fapg.c 2008-02-25 22:37:25.000000000 -0600 @@ -507,7 +507,8 @@ {"recursive", no_argument, NULL, 'r'}, {"stdin", no_argument, NULL, 's'}, {"windows", no_argument, NULL, 'w'}, - {"exclude", required_argument, NULL, 'x'} + {"exclude", required_argument, NULL, 'x'}, + {NULL, 0, NULL, 0} }; int c; int option_index = 0; ======= END PATCH ========= -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core) Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_CA.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages fapg depends on: ii libc6 2.7-4 GNU C Library: Shared libraries fapg recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]