[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.19 and 1.20

version 1.19, 2019/06/28 13:35:05 version 1.20, 2021/10/24 21:24:17
Line 91 
Line 91 
          * open will fail on slip lines or exclusive-use lines           * open will fail on slip lines or exclusive-use lines
          * if not running as root; not an error.           * if not running as root; not an error.
          */           */
         if ((fd = open(device, O_WRONLY|O_NONBLOCK, 0)) == -1) {          if ((fd = open(device, O_WRONLY|O_NONBLOCK)) == -1) {
                 if (errno == EBUSY || errno == EACCES)                  if (errno == EBUSY || errno == EACCES)
                         return (NULL);                          return (NULL);
                 (void) snprintf(errbuf, sizeof(errbuf),                  (void) snprintf(errbuf, sizeof(errbuf),

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20