Changeset 27 for trunk/src/sh_getopt.c


Ignore:
Timestamp:
Apr 6, 2006, 8:55:51 PM (19 years ago)
Author:
rainer
Message:

Support for server-to-server relay and more user policies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_getopt.c

    r22 r27  
    8080    sh_util_set_interactive },
    8181#endif
     82#if defined(SH_WITH_SERVER) || defined(SH_WITH_CLIENT)
     83  { N_("server-port"), 
     84    '-',
     85    N_("Set the server port to connect to"), 
     86    HAS_ARG_YES,
     87    sh_forward_server_port },
     88#endif
    8289#ifdef SH_WITH_SERVER
    8390  { N_("server"), 
     
    112119    HAS_ARG_YES,
    113120    sh_calls_set_bind_addr },
    114 #ifdef SH_WITH_CLIENT
     121#if defined(SH_WITH_SERVER) || defined(SH_WITH_CLIENT)
    115122  { N_("set-export-severity"), 
    116123    'e',
     
    554561          for (i = 0; op_table[i].longopt != NULL; ++i)
    555562            {
    556      
     563
    557564              if (sl_strncmp(_(op_table[i].longopt),
    558565                             &argv[1][2],
     
    562569                  if ( op_table[i].hasArg == HAS_ARG_YES )
    563570                    {
    564                       if ( (theequal = strchr(argv[1], '=')) == NULL)
     571                      theequal = strchr(argv[1], '=');
     572                      if (theequal == NULL)
    565573                        {
    566574                          if (argc < 3)
Note: See TracChangeset for help on using the changeset viewer.