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

Diff for /src/usr.bin/write/write.c between version 1.35 and 1.36

version 1.35, 2019/06/28 13:35:05 version 1.36, 2021/10/24 21:24:18
Line 236 
Line 236 
                 login = user_from_uid(myuid, 0);                  login = user_from_uid(myuid, 0);
   
         (void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);          (void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);
         fd = open(path, O_WRONLY, 0666);          fd = open(path, O_WRONLY);
         if (fd == -1)          if (fd == -1)
                 err(1, "open %s", path);                  err(1, "open %s", path);
         fflush(stdout);          fflush(stdout);

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36