Skip to content

Commit

Permalink
Fix kernel version check in recent ptsname change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Dec 9, 2009
1 parent 4940d71 commit 633bbc1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2009-12-09 Ulrich Drepper <drepper@redhat.com>

[BZ #11046]
* sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel
version check.

2009-11-05 Bruno Haible <bruno@clisp.org>

[BZ #11056]
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/unix/sysv/linux/ptsname.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ __ptsname_internal (int fd, char *buf, size_t buflen, struct stat64 *stp)
}

ptyno = minor (stp->st_rdev);
#if __LINUX_KERNEL_VERSION >= 131443
#if __LINUX_KERNEL_VERSION < 131443
/* This is for the old BSD pseudo terminals. As of Linux
2.1.115 these are no longer supported. */
if (major (stp->st_rdev) == 4)
Expand Down

0 comments on commit 633bbc1

Please sign in to comment.