cvs commit: src/sys/kern tty.c

Ed Schouten ed at FreeBSD.org
Fri Sep 26 18:17:17 UTC 2008


ed          2008-09-26 18:17:04 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             tty.c 
  Log:
  SVN rev 183386 on 2008-09-26 18:17:04Z by ed
  
  Don't forget to initialize `int error' in ttydev_open().
  
  I've had some reports in the past that opening an already opened TTY
  through, for example, /dev/tty can fail with random error codes. Looking
  at ttydev_open(), I can see there is a way `error' is returned without
  initialising it. Even though I haven't had any confirmation this fixes
  the bug, I'll fix it anyway.
  
  Reported by:    Andrzej Tobola <ato iem pw edu pl>
  
  Revision  Changes    Path
  1.292     +1 -1      src/sys/kern/tty.c


More information about the cvs-src mailing list