sd-device: do not cache an empty string but clear cache on failre
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Feb 2021 08:13:41 +0000 (17:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Feb 2021 19:30:42 +0000 (04:30 +0900)
commit23ff570ba885b4112d6a0c972acf13c17e5ba775
treee97267ba55b274b18771883a8313a4d5722f1055
parent2f7a2e395267138f5279e3e53d24413157663559
sd-device: do not cache an empty string but clear cache on failre

And propagate the original error on write.
Note that some attributes are read-only.
src/libsystemd/sd-device/sd-device.c