mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-07 20:14:25 +00:00
a73306e14e
When calling setttyent() after calling endttyent(), pts_valid will never be set to 1, because the readdir()-loop will likely never vind a pts that has a higher number than before. Simplify the code by removing pts_valid. We'll just set maxpts to -1 when we don't have a valid count yet.