diff options
author | Benjamin Berg <bberg@redhat.com> | 2022-05-30 16:52:36 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2022-05-31 14:33:16 +0200 |
commit | 71b2fda04dd71c637361e8ead103980ad6f27ed5 (patch) | |
tree | 63bb3c3d35583bd615778ae19437037c62dc29e2 /libgudev.doap | |
parent | cdf730cd860fd54554e3280ec5a0350a293d74e1 (diff) | |
download | libgudev-71b2fda04dd71c637361e8ead103980ad6f27ed5.tar.gz |
gudev: Fix newline stripping by always reading using udev
libudev will strip trailing newline characters ("\r\n") when reading
sysfs attributes. The uncached reading functions however bypassed the
udev mechanism unnecessarily and then added their own cache on top.
Setting the value to NULL clears the internal cache in systemd. As such,
we can simply do this and then fall back to the normal implementation to
implement the _uncached version of the sysfs attribute getters.
Diffstat (limited to 'libgudev.doap')
0 files changed, 0 insertions, 0 deletions