summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd
diff options
context:
space:
mode:
authorkn <kn@cvs.openbsd.org>2021-07-20 11:20:10 +0000
committerkn <kn@cvs.openbsd.org>2021-07-20 11:20:10 +0000
commit3e94dd002c19cc33630df7ef1afea2c42c0cec0d (patch)
treed95a98c0601d2b8f2a53c3e5dde25141cd97eafc /usr.sbin/vmd
parent7e497cb1fa8938755e6ab2274d178e78355de314 (diff)
Simplify DHCP lease file parer after switch to dhcpleased
dhcpleased(8)'s lease files are much simpler than dhclient.leases(5): - exactly one lease per file (not many) - only option lines (not statement, declaration, etc.) - every option/value is separated by a single ": " (no optional leading "option ") - values are not quoted or escaped (like dhclient does) lease_value() is hard to read, mostly because it strips optional double quotes around option values as was required with dhclient. dhclient VIS_ALL's values if they contain backticks, backslashes and other characters, otherwise it VIS_SAFE's (and optionally quotes them). dhcpleased VIS_SAFE's all value strings equally. All install.sub users of lease_value() quote its output so they should be safe without any special unescaping as previously done. OK florian
Diffstat (limited to 'usr.sbin/vmd')
0 files changed, 0 insertions, 0 deletions