getty: more correct check for O_RDWR

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
1 file changed