Don't assume that ttys are always located directly in /dev. This
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 23 Aug 2005 12:06:48 +0000 (12:06 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 23 Aug 2005 12:06:48 +0000 (12:06 +0000)
commitfa602fcf56a0ba7a6918dad38b0035d0e5cb5748
tree07bd50b271d633b55fc57f2f94514a9e1a838897
parent16dbe56e683005c1e8909cfd3bcfdadbf4aec552
Don't assume that ttys are always located directly in /dev. This
assumptions breaks as soon as a proper pts filesystem comes into place.
Also ensure the static buffer is not overflown when reading from the
database.
lib/libc/gen/ttyname.c