K 10 svn:author V 2 ed K 8 svn:date V 27 2009-02-12T19:32:52.791671Z K 7 svn:log V 354 Properly invalidate highest pts number when calling setttyent(). 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. END