[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.28 and 1.29

version 1.28, 2015/01/16 06:40:14 version 1.29, 2015/10/05 07:09:46
Line 238 
Line 238 
         }          }
   
         (void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);          (void)snprintf(path, sizeof(path), "%s%s", _PATH_DEV, tty);
         if ((freopen(path, "w", stdout)) == NULL)          if ((freopen(path, "r+", stdout)) == NULL)
                 err(1, "%s", path);                  err(1, "%s", path);
   
         /* revoke privs, now that we have opened the tty */          /* revoke privs, now that we have opened the tty */

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29