sd-device: do not cache an empty string but clear cache on failre 60/300860/1
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 18 Feb 2021 08:13:41 +0000 (17:13 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Fri, 3 Nov 2023 02:01:13 +0000 (11:01 +0900)
commita31178bd70164b1fc11624d926e1002b34b0efff
tree75446f9ddd7db3acce2366e4f717eb4b843b4454
parenta0204b16ee6fa7c9511ee9803db351bfa93b10a9
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.

Original: upstream, https://github.com/systemd/systemd/pull/18684
Change-Id: I995f86a156b5e974844e0fec9aabf384302a0c3b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/libsystemd/sd-device/sd-device.c