From 4ed4a522e1f0b92986bb9002bf5fb845ff0fdc9e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 25 Dec 2010 17:58:02 +0100 Subject: [PATCH] ptsname: Avoid ERANGE failure on some systems. * lib/ptsname.c (buffer): Increase size. --- ChangeLog | 5 +++++ lib/ptsname.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 84c1e7ca1..adc21adaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-12-25 Bruno Haible + ptsname: Avoid ERANGE failure on some systems. + * lib/ptsname.c (buffer): Increase size. + +2010-12-25 Bruno Haible + rename, renameat: Avoid test failures at NFS mounted locations. * tests/test-rename.h (assert_nonexistent): Remove the old directory, so that subsequent mkdir calls succeed. diff --git a/lib/ptsname.c b/lib/ptsname.c index 3c7a9e043..c2bea0164 100644 --- a/lib/ptsname.c +++ b/lib/ptsname.c @@ -43,7 +43,7 @@ static int __ptsname_r (int fd, char *buf, size_t buflen); /* Static buffer for `ptsname'. */ -static char buffer[sizeof (_PATH_TTY) + 2]; +static char buffer[64]; /* Return the pathname of the pseudo terminal slave associated with -- 2.11.0