CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2015/10/11 01:32:06

Modified files:
        usr.sbin/npppd/npppd: npppd_iface.c npppd_tun.c privsep.c 
                              privsep.h 
        usr.sbin/npppd/pppoe: pppoed.c 

Log message:
Simplify and lock down priv_open():
* kill the 'mode' argument
* fail if passed any flags other than O_ACCMODE OR O_NONBLOCK
* paranoia: mask O_CREAT when calling open() with only two arguments
* instead of using ioctl(FIONBIO) after the fact, pass O_NONBLOCK to
priv_open()

"good start" deraadt@
ok yasuoka@

Reply via email to