tags 495133 + patch
thanks

[Nelson A. de Oliveira]
> While now I know that there is no "--help" option, trying to use it on the
> first time made netgroups segfault (here compiled with noopt nostrip):

Hm, I am unable to reproduce it in etch, but it does segfault in
lenny.  The reason is an incorrect termination of the struct option
array.  This patch solve the issue:

Index: netgroup.c
===================================================================
RCS file: /cvsroot/hungry/ng-utils/netgroup.c,v
retrieving revision 1.12
diff -u -3 -p -r1.12 netgroup.c
--- netgroup.c  17 Jun 2006 19:23:32 -0000      1.12
+++ netgroup.c  23 Aug 2008 11:22:52 -0000
@@ -39,7 +39,8 @@ static struct option long_options[] =
   {"domain",  0, 0, 'd'},
   {"host",    0, 0, 'h'},
   {"user",    0, 0, 'u'},
-  {"version", 0, 0, 'V'}
+  {"version", 0, 0, 'V'},
+  {0, 0, 0, 0}
 };

 #else /* not HAVE_GETOPT_LONG */

I'll see if I manage to get a fix uploaded soon.

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to