Bugs item #3180826, was opened at 2011-02-14 14:10
Message generated for change (Comment added) made by rd235
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=611248&aid=3180826&group_id=95403

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: megurikuru (megurikuru)
Assigned to: Nobody/Anonymous (nobody)
Summary: Command line option parsing bugs

Initial Comment:
Hi,

in wirefilter.c the long_options structure must terminate with empty element 
(in fact now wirefilter sometime crash while starting with some parameters).
I noticed the same missing last element is present on other components, except 
the last element has a trailing comma there (don't know if in C that syntax 
means that an empty structure element follows...).
Also, there is another command line parameters problem solved in the following 
patch I past here (it refers only to wirefilter).

@@ -1453,7 +1520,8 @@
                {"daemon",0 , 0, DAEMONIZEARG},
                {"pidfile", 1, 0, PIDFILEARG},
                {"blink",1,0,LOGSOCKETARG},
-               {"blinkid",1,0,LOGIDARG}
+               {"blinkid",1,0,LOGIDARG},
+               {0,0,0,0}

@@ -1463,7 +1531,7 @@
 
        while(1) {
                int c;
-               c = GETOPT_LONG (argc, argv, "hnl:d:M:D:m:b:s:c:v:L:f:",
+               c = GETOPT_LONG (argc, argv, "hl:n:d:M:D:m:b:s:c:v:L:f:",
                                long_options, &option_index);


----------------------------------------------------------------------

>Comment By: renzo davoli (rd235)
Date: 2011-02-14 14:48

Message:
Fixed on svn. thank you.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=611248&aid=3180826&group_id=95403

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to