[vdr] [BUG] check terminal access

Stefan Huelswitt s.huelswitt at gmx.de
Sat Apr 7 15:05:02 CEST 2007


Hi,
I think there is a bug in the RW access check for a terminal
given with commandline option -t.
The check is performed before VDR actualy switches his uid, so if
the user which starts VDR has access rights and the effective
vdr user doesn't have, the check is useless.
In addition VDR should check the return value of freopen() when
claiming the terminal later on.

The current code segfaults on the first terminal access (e.g.
printf), if the effective vdr user doesn't have sufficient
rights.

Regards.

-- 
Stefan Huelswitt
s.huelswitt at gmx.de  | http://www.muempf.de/



More information about the vdr mailing list