[Date Prev][Date Next] [Chronological] [Thread] [Top]

slapcommon.c cmdline arg processing fallthru (ITS#2266)



Full_Name: Mark A. Horstman
Version: 2.1.12
OS: Solaris 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (144.160.98.27)


In servers/slapd/tools/slapcommon.c:

   121      while ( (i = getopt( argc, argv, options )) != EOF ) {
   122          switch ( i ) {
   123          case 'b':
   124              base.bv_val = strdup( optarg );
   125              base.bv_len = strlen( base.bv_val );
   126
   127          case 'c':   /* enable continue mode */
   128              continuemode++;
   129              break;

if you use the '-b' option you fall through and get the '-c' option.  Is this
intentional?