erlyaws / yaws

Yaws webserver
https://erlyaws.github.io
BSD 3-Clause "New" or "Revised" License
1.28k stars 267 forks source link

Fix writing of yaws_dynopts.erl if path contains tilde #300

Closed weisslj closed 7 years ago

weisslj commented 7 years ago

Writing of yaws_dynopts.erl fails if the Yaws include path contains a tilde (~) character. This happens often on Windows for long paths (e.g. c:/Users/ADMINI~1/repos/yaws).

Reproduce:

git clone https://github.com/klacke/yaws.git yaws~1
autoreconf -fi && ./configure && make && make test
[...]
Kernel pid terminated (application_controller) ({application_start_failure,yaws,{{shutdown,{failed_to_start_child,yaws_server,{badarg,[{io,format,[<0.168.0>,"-module(yaws_dynopts).\n\n-include(\"/home ...
capflam commented 7 years ago

good catch. Thanks !