summaryrefslogtreecommitdiff
path: root/sysdeps/unix/bsd
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-20 04:49:43 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-20 04:49:43 +0100
commit83fe26e0287277ce7d5ac4738ce7170420484c1a (patch)
tree5b2ba0e640835c92ea69ec8f00d3bc5c86a9d146 /sysdeps/unix/bsd
parent0234227d25807a330c27d549b9c17956a2f3fe35 (diff)
Fix pty path in chroot
when e.g. using a chroot, the pty path is not so short.
Diffstat (limited to 'sysdeps/unix/bsd')
-rw-r--r--sysdeps/unix/bsd/unlockpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/bsd/unlockpt.c b/sysdeps/unix/bsd/unlockpt.c
index 59fc7392e3..4c3dc5b9bc 100644
--- a/sysdeps/unix/bsd/unlockpt.c
+++ b/sysdeps/unix/bsd/unlockpt.c
@@ -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)))