[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.4 and 1.5

version 1.4, 1998/11/18 01:03:16 version 1.5, 1998/11/18 02:57:22
Line 73 
Line 73 
         register int cnt, fd, left, wret;          register int cnt, fd, left, wret;
         struct iovec localiov[6];          struct iovec localiov[6];
         int forked = 0;          int forked = 0;
           struct stat st;
   
         if (iovcnt > sizeof(localiov) / sizeof(localiov[0]))          if (iovcnt > sizeof(localiov) / sizeof(localiov[0]))
                 return ("too many iov's (change code in wall/ttymsg.c)");                  return ("too many iov's (change code in wall/ttymsg.c)");
Line 91 
Line 92 
                     device);                      device);
                 return (errbuf);                  return (errbuf);
         }          }
   
           if (stat(device, &st) < 0)
                   return (NULL);
           if ((st.st_mode & S_IWGRP) == 0)
                   return (NULL);
   
         seteuid(geteuid());          seteuid(geteuid());
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5