~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleadmin.cc

  • Committer: Andrew Hutchings
  • Date: 2008-12-21 21:48:10 UTC
  • mto: (754.1.2 devel)
  • mto: This revision was merged to the branch mainline in revision 755.
  • Revision ID: linuxjedi@linuxjedi-laptop-20081221214810-87ijo310yfb3u2p3
Apply -p means port changes to all client apps

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
      exit(1);
125
125
    }
126
126
    /* If the port number is > 65535 it is not a valid port
127
 
 *  *        This also helps with potential data loss casting unsigned long to a
128
 
 *   *               uint32_t. */
 
127
       This also helps with potential data loss casting unsigned long to a
 
128
       uint32_t. */
129
129
    if ((temp_drizzle_port == 0) || (temp_drizzle_port > 65535))
130
130
    {
131
131
      fprintf(stderr, _("Value supplied for port is not valid.\n"));
150
150
                          "Aborting.\n"));
151
151
        exit(ENOMEM);
152
152
      }
153
 
      while (*argument) *argument++= 'x';   /* Destroy argument */
 
153
      while (*argument)
 
154
      {
 
155
        /* Overwriting password with 'x' */
 
156
        *argument++= 'x';
 
157
      }
154
158
      if (*start)
155
 
        start[1]=0; /* Cut length of argument */
 
159
      {
 
160
        /* Cut length of argument */
 
161
        start[1]= 0;
 
162
      }
156
163
      tty_password= 0;
157
164
    }
158
165
    else