New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config file values are truncated after first space. #2059
Milestone
Comments
The culprit is in client_shared.c: my suggested bad fix would be: |
@sectokia It's much easier than that, just a swap of a |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue is present in 1.6.12 and 2.0.6.
In the OPTIONS section of the man pages for
mosquitto_{pub,sub}
, the first sentence reads:When parsing
mosquitto_{pub,sub}
, the values are truncated at the first space instead of end of line. Example:~/.config/mosquitto_sub:
yields:
I've tried escaping the spaces and putting the entire value in single quotes, but escaping spaces isn't valid and wrapping in single quotes yields:
'2021-01-29T22:55:31-0600
~/.config/mosquitto_pub
Will generate an error because the value is truncated:
As a workaround I've replaced all spaces with underscores, which is awful.
The text was updated successfully, but these errors were encountered: