Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/yulectl.c

    r22 r1  
    300300  if (0 != good)
    301301    {
    302       fprintf (stderr, _("ERROR: Bounced message != original message (possible reason: superfluous password).\n"));
     302      fprintf (stderr, _("ERROR: Bounced message != original message.\n"));
    303303      return -1;
    304304    }
     
    321321  printf(_("          transfer to the client <client_hostname> when\n"));
    322322  printf(_("          this client connects to deliver a message.\n\n"));
    323   printf(_("          If password is required, it is read from\n"));
    324   printf(_("          $HOME/.yulectl_cred or taken from the environment\n"));
    325   printf(_("          variable YULECTL_PASSWORD (not recommended).\n\n"));
    326323
    327324  printf(_("Commands: RELOAD    <reload configuration>\n"));
     
    340337  FILE * fp;
    341338  struct passwd * pwent;
    342   char * pw;
    343 
    344   pw = getenv(_("YULECTL_PASSWORD"));
    345   if (pw && strlen(pw) < 15)
    346     {
    347       strcpy(password, pw);
    348       strcpy(message2, password);
    349       goto do_msg;
    350     }
     339
    351340 
    352341  pwent = getpwuid(geteuid());
     
    399388      exit(EXIT_FAILURE);
    400389    }
    401   if (strlen(message2) > 14)
     390  if (strlen(message2) > 15)
    402391    {
    403392      fprintf (stderr,
     
    411400    }
    412401  strcpy(password, message2);
     402  strcat(message2, "@");
    413403  fclose(fp);
    414  do_msg:
    415   strcat(message2, "@");
    416404
    417405  strncat(message2, message, SH_MAXMSG - strlen(message2) -1);
Note: See TracChangeset for help on using the changeset viewer.