From: Bruno Haible Date: Sat, 25 Dec 2010 16:58:02 +0000 (+0100) Subject: ptsname: Avoid ERANGE failure on some systems. X-Git-Tag: v0.1~3458 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=4ed4a522e1f0b92986bb9002bf5fb845ff0fdc9e;p=gnulib.git ptsname: Avoid ERANGE failure on some systems. * lib/ptsname.c (buffer): Increase size. --- 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