summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorJjgod Jiang <gzjjgod@gmail.com>2014-07-28 18:44:05 +0000
committerJjgod Jiang <gzjjgod@gmail.com>2014-07-28 18:44:05 +0000
commit58dec28ac7e930e67e70a4d4c41364209bbf9c77 (patch)
tree4fb228dfe61b65e430cb0c0b09333cec82eb71ea /Build
parent3d78eff486ad745d2fc3fc3e64ad70755c6d095e (diff)
Fix rsrc file access warning when loading non-CID OpenType fonts
git-svn-id: svn://tug.org/texlive/trunk@34758 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog6
-rw-r--r--Build/source/texk/dvipdfm-x/dpxfile.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index d31f85cecb3..f416ebd04c1 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,4 +1,8 @@
-2014-07-18 Peter Breitenlohner <peb@mppmu.mpg.de>
+2014-07-28 Jiang Jiang <gzjjgod@gmail.com>
+
+ * dpxfile.c (qcheck_filetype): Skip opening non-existent file.
+
+2014-07-28 Peter Breitenlohner <peb@mppmu.mpg.de>
* type0.c (Type0Font_*_ToUnicode_stream): Declare once as static
(once again!).
diff --git a/Build/source/texk/dvipdfm-x/dpxfile.c b/Build/source/texk/dvipdfm-x/dpxfile.c
index f599f4fec8b..511e89778ba 100644
--- a/Build/source/texk/dvipdfm-x/dpxfile.c
+++ b/Build/source/texk/dvipdfm-x/dpxfile.c
@@ -1165,6 +1165,10 @@ qcheck_filetype (const char *fqpn, dpx_res_type type)
if (!fqpn)
return 0;
+ struct stat sb;
+ if (stat(fqpn, &sb) != 0)
+ return 0;
+
fp = MFOPEN(fqpn, FOPEN_RBIN_MODE);
if (!fp) {
WARN("File \"%s\" found but I could not open that...", fqpn);