diff options
author | Simon Bünzli <zeniko@gmail.com> | 2013-08-24 22:05:31 +0200 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-08-28 13:35:52 +0100 |
commit | 299be6676f1c7283382a5b6cb2c9a1f9b0d088bd (patch) | |
tree | 47314f618aca69d6864480deb8e97a0ea6d068f7 | |
parent | 3cc28e9828a1ce1ba69955a68c7e71ef7cd5f0d4 (diff) | |
download | mupdf-299be6676f1c7283382a5b6cb2c9a1f9b0d088bd.tar.xz |
make cmapdump ignore VCS folders
If MuPDF is used in a project using Subversion or another VCS adding
hidden subfolders to each folder, cmapdump breaks when trying to
load the subfolder as cmap file. This fix is required starting with
643370f04348569b5e5e577660031d638537671c
-rw-r--r-- | scripts/cmapdump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/cmapdump.c b/scripts/cmapdump.c index cc1534dc..88f1f800 100644 --- a/scripts/cmapdump.c +++ b/scripts/cmapdump.c @@ -75,6 +75,10 @@ main(int argc, char **argv) else realname = argv[i]; + /* ignore VCS folders (such as .svn) */ + if (*realname == '.') + continue; + if (strlen(realname) > (sizeof name - 1)) { fprintf(stderr, "cmapdump: file name too long\n"); |