[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r2956 - in glibc-package/trunk/debian: . patches patches/hurd-i386



Author: sthibaul-guest
Date: 2008-05-26 22:46:24 +0000 (Mon, 26 May 2008)
New Revision: 2956

Added:
   glibc-package/trunk/debian/patches/hurd-i386/local-unlockpt-chroot.diff
Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/patches/series.hurd-i386
Log:
  * patches/hurd-i386/local-unlockpt-chroot.diff: new patch to fix ptys in
    chroots.


Modified: glibc-package/trunk/debian/changelog
===================================================================
--- glibc-package/trunk/debian/changelog	2008-05-26 21:14:33 UTC (rev 2955)
+++ glibc-package/trunk/debian/changelog	2008-05-26 22:46:24 UTC (rev 2956)
@@ -15,6 +15,8 @@
   * patches/hurd-i386/local-pthread-unsupported-stubs.diff: new patch to
     declare the unsupported function stubs, fixes compilation of pike.  Also
     bump the dependency on hurd-dev to get <gnu/stubs-pthread.h>.
+  * patches/hurd-i386/local-unlockpt-chroot.diff: new patch to fix ptys in
+    chroots.
 
  -- Clint Adams <schizo@debian.org>  Sun, 18 May 2008 07:42:57 -0400
 

Added: glibc-package/trunk/debian/patches/hurd-i386/local-unlockpt-chroot.diff
===================================================================
--- glibc-package/trunk/debian/patches/hurd-i386/local-unlockpt-chroot.diff	                        (rev 0)
+++ glibc-package/trunk/debian/patches/hurd-i386/local-unlockpt-chroot.diff	2008-05-26 22:46:24 UTC (rev 2956)
@@ -0,0 +1,18 @@
+when e.g. using a chroot, the pty path is not so short.
+
+Index: ./sysdeps/unix/bsd/unlockpt.c
+===================================================================
+RCS file: /cvs/glibc/libc/sysdeps/unix/bsd/unlockpt.c,v
+retrieving revision 1.4
+diff -u -p -r1.4 unlockpt.c
+--- glibc/sysdeps/unix/bsd/unlockpt.c	6 Jul 2001 04:56:07 -0000	1.4
++++ glibc/sysdeps/unix/bsd/unlockpt.c	26 May 2008 22:32:29 -0000
+@@ -28,7 +28,7 @@
+ int
+ unlockpt (int fd)
+ {
+-  char buf[sizeof (_PATH_TTY) + 2];
++  char buf[1024]; /* XXX */
+ 
+   /* BSD doesn't have a lock, but it does have `revoke'.  */
+   if (__ptsname_r (fd, buf, sizeof (buf)))

Modified: glibc-package/trunk/debian/patches/series.hurd-i386
===================================================================
--- glibc-package/trunk/debian/patches/series.hurd-i386	2008-05-26 21:14:33 UTC (rev 2955)
+++ glibc-package/trunk/debian/patches/series.hurd-i386	2008-05-26 22:46:24 UTC (rev 2956)
@@ -3,3 +3,4 @@
 hurd-i386/local-no-strerror_l.diff
 hurd-i386/local-pthread_stubs.diff
 hurd-i386/local-pthread-unsupported-stubs.diff
+hurd-i386/local-unlockpt-chroot.diff


Reply to: