you probably have a version of chm2pdf that came from a Linux
distribution, like Debian for example.
If you try the version from my homepage
http://www.karakas-online.de/forum/viewtopic.php?t=10275
you should not encounter the problem you describe.
However, I must warn you that the way "my" version creates temporary
directories is considered a security vulnerability (AFAIR the problem is
that the name of the temp dirs is predictable).
If you are the only person who uses chm2pdf, then this should not pose a
problem IMO. However, I can imagine that there are scenarios where such
"openness" in creating temporary directories might lead to priviliedge
escalation (i.e. someone else becoming root on your computer).
If you are interested in the details, which lie some years back, you
should check the Debian mailing lists, as well as the bugs reporting
system at the Google groups page of chm2pdf.
The decision to practically destroy the --extract-only option, taken by
the Debian people, was the main reason from my withdrawal from further
development of this project. I understood the reasons, but it was so
frustrating an interruption for me - and, as you see, it takes *years*
for me to recover (if at all) from interruptions.
"No man ever steps in the same river twice, for it's not the same river
and he's not the same man." - Heraclitus.
Regards
Chris Karakas
http://www.karakas-online.de
Say "thank you" to Debian, who destroyed them without offering
alternatives for this use case.
I am not inclined to spend time on fixing something that was
deliberately broken.
And say "thank you" to your CHM creator for not distinguishing between
capital and small letters (breaking the HTML standard, but possibly
still conforming to CHM...).
Regards
Chris Karakas
http://www.karakas-online.de