diff options
Diffstat (limited to 'usr/src/lib/libc/port/gen/ttyname.c')
-rw-r--r-- | usr/src/lib/libc/port/gen/ttyname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libc/port/gen/ttyname.c b/usr/src/lib/libc/port/gen/ttyname.c index d5c321a824..042a738db3 100644 --- a/usr/src/lib/libc/port/gen/ttyname.c +++ b/usr/src/lib/libc/port/gen/ttyname.c @@ -285,7 +285,7 @@ _ttyname_common(struct stat64 *fsp, char *buffer, uint_t match_mask) * Is /dev/pts then just do a quick check. We don't have * to stat the entire /dev/pts dir. */ - if (strcmp(PTS, srch_dirs[dirno].name) == NULL) { + if (strcmp(PTS, srch_dirs[dirno].name) == 0) { if ((pt = ispts(fsp, match_mask)) != NULL) { is_pts = 1; found = 1; |