summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-05-15 09:40:19 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-05-15 09:40:19 +0000
commitb11a52a1f5540aa3c933056cf0232a7ac91ee1cb (patch)
treed5b77f2de2b28eadb698d464bcbbb6d7f6692c9f /Build/source/texk/web2c/luatexdir/tex
parent7ce988c46e804f8ed39694921258a22600976974 (diff)
fix an odd getcwd() problem
git-svn-id: svn://tug.org/texlive/trunk@22481 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/texfileio.w9
1 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/texfileio.w b/Build/source/texk/web2c/luatexdir/tex/texfileio.w
index 2a0a6c88913..703898ea149 100644
--- a/Build/source/texk/web2c/luatexdir/tex/texfileio.w
+++ b/Build/source/texk/web2c/luatexdir/tex/texfileio.w
@@ -23,7 +23,7 @@
#include <kpathsea/absolute.h>
static const char _svn_version[] =
- "$Id: texfileio.w 4256 2011-05-09 13:15:39Z taco $"
+ "$Id: texfileio.w 4267 2011-05-15 09:19:58Z taco $"
"$URL: http://foundry.supelec.fr/svn/luatex/branches/0.70.x/source/texk/web2c/luatexdir/tex/texfileio.w $";
@ @c
@@ -858,11 +858,16 @@ char *get_full_log_name (void)
@ Synctex uses this to get the anchored path of an input file.
+The |2048| instead of a normal low number like |2| is because
+apparently glibc's |getcwd| is buggy: actually executing the
+loop causes errors later on during execution even though the
+initial function calls work just fine.
+
@c
char *luatex_synctex_get_current_name (void)
{
char *pwdbuf = NULL, *ret;
- int pwdbufsize = 2;
+ int pwdbufsize = 2048;
if (kpse_absolute_p(fullnameoffile, false)) {
return xstrdup(fullnameoffile);
}