diff options
author | Jjgod Jiang <gzjjgod@gmail.com> | 2014-07-28 18:44:05 +0000 |
---|---|---|
committer | Jjgod Jiang <gzjjgod@gmail.com> | 2014-07-28 18:44:05 +0000 |
commit | 58dec28ac7e930e67e70a4d4c41364209bbf9c77 (patch) | |
tree | 4fb228dfe61b65e430cb0c0b09333cec82eb71ea /Build/source/texk/dvipdfm-x/dpxfile.c | |
parent | 3d78eff486ad745d2fc3fc3e64ad70755c6d095e (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/source/texk/dvipdfm-x/dpxfile.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/dpxfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |