CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2015/10/05 01:09:46

Modified files:
        usr.bin/write  : write.c 

Log message:
Since the dawn of time, this has contained freopen() for the tty path
with mode "w", as root, since "w" implies O_CREAT.  That will create
the raw file in /dev if it does not yet exist (due to a lie in utmp).
It should use "r+", to open it for for O_RDWR only.
Oh man this reminds me of 1988, how old is this bug?
ok doug

Reply via email to