ttyslot(3) - Update for unix98 ptys
authorAlex Hornung <ahornung@gmail.com>
Wed, 2 Sep 2009 08:12:58 +0000 (09:12 +0100)
committerAlex Hornung <ahornung@gmail.com>
Wed, 2 Sep 2009 08:40:24 +0000 (09:40 +0100)
commitbd476febe7d2b2f4a2c325c6f55b7ab980073776
tree79b0a120e7f28273a7de309f969d8ad45694203b
parentf4f08bf86d7cdb348ec32197213a775f86f0f178
ttyslot(3) - Update for unix98 ptys

* Update ttyslot(3) to be compatible with unix98 ptys. This fixes
  problems with logins on unix98 ptys not appearing in utmp.

* ttyslot was calling rindex, which is invalid for unix98 pty files,
  so now we just strip "/dev/".

Obtained-from: FreeBSD
lib/libc/gen/ttyslot.c