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

Diff for /src/usr.bin/wall/ttymsg.c between version 1.10 and 1.11

version 1.10, 2002/05/26 09:27:11 version 1.11, 2003/04/02 20:07:49
Line 82 
Line 82 
         /*          /*
          * Ignore lines that start with "ftp" or "uucp".           * Ignore lines that start with "ftp" or "uucp".
          */           */
         if ((strncmp(line, "ftp", 3) == 0)          if ((strncmp(line, "ftp", 3) == 0) ||
             || (strncmp(line, "uucp", 4) == 0))              (strncmp(line, "uucp", 4) == 0))
                 return (NULL);                  return (NULL);
   
         (void) strcpy(device + sizeof(_PATH_DEV) - 1, line);          (void) strlcpy(device + sizeof(_PATH_DEV) - 1, line,
               sizeof(device) - (sizeof(_PATH_DEV) - 1));
         if (strchr(device + sizeof(_PATH_DEV) - 1, '/')) {          if (strchr(device + sizeof(_PATH_DEV) - 1, '/')) {
                 /* A slash is an attempt to break security... */                  /* A slash is an attempt to break security... */
                 (void) snprintf(errbuf, sizeof(errbuf), "'/' in \"%s\"",                  (void) snprintf(errbuf, sizeof(errbuf), "'/' in \"%s\"",

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11