]> sourceware.org Git - glibc.git/commitdiff
Fix kernel version check in recent ptsname change.
authorUlrich Drepper <drepper@redhat.com>
Wed, 9 Dec 2009 16:34:48 +0000 (08:34 -0800)
committerUlrich Drepper <drepper@redhat.com>
Wed, 9 Dec 2009 16:34:48 +0000 (08:34 -0800)
ChangeLog
sysdeps/unix/sysv/linux/ptsname.c

index 799448f6d0e8eb533ba7edcd59cc4b8abecf2033..d3e71e65e69d22dc1bb4e90b2f399d749554c826 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 129d09085e190d2284bc7af538a02dbd67371c4a..1f1c64bc8c61dbbf02bcab143f1c9483f7c8ae16 100644 (file)
@@ -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)
This page took 0.06291 seconds and 5 git commands to generate.