[BACK]Return to w.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / w

Diff for /src/usr.bin/w/w.c between version 1.45 and 1.46

version 1.45, 2005/07/20 04:19:08 version 1.46, 2008/09/30 21:29:58
Line 357 
Line 357 
                 fmt_putc(')', &left);                  fmt_putc(')', &left);
         }          }
         while (*argv) {          while (*argv) {
                 /* ftp is a special case... */                  /*
                    * ftp argv[0] is in the following format:
                    * ftpd: HOSTNAME: [USER/PASS: ]CMD args (ftpd)
                    */
                 if (strncmp(*argv, "ftpd:", 5) == 0) {                  if (strncmp(*argv, "ftpd:", 5) == 0) {
                         str = strrchr(*argv, ':');                          if ((str = strchr(*argv + 5, ':')) != NULL)
                         if (str != (char *)NULL) {                                  str = strchr(str + 1, ':');
                           if (str != NULL) {
                                 if ((str[0] == ':') && isspace(str[1]))                                  if ((str[0] == ':') && isspace(str[1]))
                                         str += 2;                                          str += 2;
                                 fmt_puts(str, &left);                                  fmt_puts(str, &left);

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46