summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog4
-rw-r--r--Build/source/texk/dvipdfm-x/dpxfile.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index aed0743afec..2daed04ff11 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-27 Jiang Jiang <gzjjgod@gmail.com>
+
+ * dpxfile.c: Ignore empty file in filetype checking.
+
2015-04-26 Jiang Jiang <gzjjgod@gmail.com>
* cidtype0.c, cidtype2.c: Support loading CID type 0 font from
diff --git a/Build/source/texk/dvipdfm-x/dpxfile.c b/Build/source/texk/dvipdfm-x/dpxfile.c
index 11fcb1de5b9..34ab9b0d6b3 100644
--- a/Build/source/texk/dvipdfm-x/dpxfile.c
+++ b/Build/source/texk/dvipdfm-x/dpxfile.c
@@ -1168,6 +1168,9 @@ qcheck_filetype (const char *fqpn, dpx_res_type type)
if (stat(fqpn, &sb) != 0)
return 0;
+ if (sb.st_size == 0)
+ return 0;
+
fp = MFOPEN(fqpn, FOPEN_RBIN_MODE);
if (!fp) {
WARN("File \"%s\" found but I could not open that...", fqpn);