Skip to content

configuration file: quotes #23

@reynir

Description

@reynir

dnsmasq allows in configuration files only to quote strings using a pair of double qutoes ("). Inside the quotes some escape sequences using back slash are allowed.

The implementation (dnsmasq:src/option.c function read_file()) is super hairy and hard to understand. The quote handling is done by replacing the backslash with the escaped value and calling memmove(p, p+1, strlen(p+1)+1) so it is potentially quadratic (why?!)

Since I think this would not be straight forward to implement (particularly with angstrom) and none of the example configs have quoted strings I suggest we investigate if it makes sense to not implement this feature. Particularly, it would be interesting to look for configurations that use quotes to determine the value of this feature. In the meantime I suggest we don't implement this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions