summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff3/diff3prog.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-05 07:09:46 +0000
committerderaadt <deraadt@openbsd.org>2015-10-05 07:09:46 +0000
commitfc0cd8cb943fedf9e271ebd66105beb1d79efa77 (patch)
treefa57a4c5f1eefb9d412beb67178e1ffca52b8076 /usr.bin/diff3/diff3prog.c
parenttame "stdio rpath" initially; if we find out the only file operated on (diff)
downloadwireguard-openbsd-fc0cd8cb943fedf9e271ebd66105beb1d79efa77.tar.xz
wireguard-openbsd-fc0cd8cb943fedf9e271ebd66105beb1d79efa77.zip
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
Diffstat (limited to 'usr.bin/diff3/diff3prog.c')
0 files changed, 0 insertions, 0 deletions