From: Ulrich Drepper Date: Wed, 9 Dec 2009 16:34:48 +0000 (-0800) Subject: Fix kernel version check in recent ptsname change. X-Git-Tag: fedora/glibc-2.11.90-4~1^2~10 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=633bbc1d9199b63b0bccaef57bbd15878a5980cc;p=glibc.git Fix kernel version check in recent ptsname change. --- diff --git a/ChangeLog b/ChangeLog index 799448f6d0..d3e71e65e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-12-09 Ulrich Drepper + + [BZ #11046] + * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Fix kernel + version check. + 2009-11-05 Bruno Haible [BZ #11056] diff --git a/sysdeps/unix/sysv/linux/ptsname.c b/sysdeps/unix/sysv/linux/ptsname.c index 129d09085e..1f1c64bc8c 100644 --- a/sysdeps/unix/sysv/linux/ptsname.c +++ b/sysdeps/unix/sysv/linux/ptsname.c @@ -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)