批踢踢實業坊
›
看板
DFBSD_submit
關於我們
聯絡資訊
返回看板
發信人
"Douwe Kiela" <virtus@wanadoo.nl>,
看板
DFBSD_submit
標 題
/usr/bin/who performs no error checking [patch]
發信站
(null) (Thu Jul 22 14:10:40 2004)
轉信站
ptt!crater_reader.dragonflybsd.org!crater.dragonflybsd.org!127.0.0.1.M
Hello, /usr/bin/who performs no error checking on the stat() call, while it should error out when a utmp file can not be accessed. Here is a simple patch:
http://virtus.ath.cx/dfbsd/who.c.diff
Regards, Douwe