[ofw] Allow opensm to read the command line parameters
    Tzachi Dar 
    tzachid at mellanox.co.il
       
    Mon Aug 16 05:30:08 PDT 2010
    
    
  
Please note that although  this solution works for opensm it creates a change from the Linux code base.
A different solution might be needed if we want to keep the same code base .
Thanks
Tzachi
Index: opensm/main.c
===================================================================
--- opensm/main.c          (revision 6229)
+++ opensm/main.c       (working copy)
@@ -725,7 +725,7 @@
                                }
                } while (next_option != -1);
-              optind = 0;                          /* reset command line */
+             optind = 1;                          /* reset command line */
                if (config_file && osm_subn_parse_conf_file(config_file, &opt) < 0)
                                printf("\nFail to parse config file \'%s\'\n", config_file);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100816/f386d9c9/attachment.html>
    
    
More information about the ofw
mailing list