summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/luatexdir/ChangeLog4
-rw-r--r--Build/source/texk/web2c/luatexdir/pdf/pdfgen.w2
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index 6aabd31036b..7ead13f9f81 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-01 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * pdf/pdfgen.w: Sync with the upstream trunk.
+
2015-09-01 Peter Breitenlohner <peb@mppmu.mpg.de>
* lua/lepdflib.cc: Drop useless casts 'const char *' -> 'char *'
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
index c818c39e08a..d825b885a49 100644
--- a/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
+++ b/Build/source/texk/web2c/luatexdir/pdf/pdfgen.w
@@ -1679,7 +1679,7 @@ char *getcreationdate(PDF pdf)
void remove_pdffile(PDF pdf)
{
if (pdf != NULL) {
- if (!kpathsea_debug && pdf->file_name && (pdf->draftmode != 0)) {
+ if (!kpathsea_debug && pdf->file_name && (pdf->draftmode == 0)) {
xfclose(pdf->file, pdf->file_name);
remove(pdf->file_name);
}