ChanServ changed the topic of #nixos-systemd to: NixOS <3 systemd | https://jitsi.nixcon.net/systemd | Next meeting 08.12.2020 14:00 UTC (every two weeks)
<V>
each time you read from /dev/rfkill, it produces a new rfkill object, which means that reading only the v1 fields is safe and will not cause you to read the start of the v2 fields on the next read. what systemd were doing here was definitely incorrect
<V>
(source: have written rfkill bindings)
<hexa->
V++
<{^_^}>
V's karma got increased to 13
<andi->
V: isn't that a user space breakage and should be reported upstream?
<andi->
or are readers supposed to ignore new trailing fields
<V>
andi-: the latter
<V>
There's the _V1 constant so readers know how many bytes they're dealing with
<V>
Presumably there will be a _V2 constant, so you can go if (nread >= _V2) { v2 fields }