mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 07:51:21 +03:00
sd-device: do not cache action string for uevent file written by sd_device_set_sysattr_value()
As sd_device_get_sysattr_value() may be already used to read uevent file. The read value of uevent file may be usually quite different from the action string.
This commit is contained in:
parent
1dff135bf9
commit
297d1370f8
@ -1999,6 +1999,10 @@ _public_ int sd_device_set_sysattr_value(sd_device *device, const char *sysattr,
|
||||
return r;
|
||||
}
|
||||
|
||||
/* Do not cache action string written into uevent file. */
|
||||
if (streq(sysattr, "uevent"))
|
||||
return 0;
|
||||
|
||||
r = device_cache_sysattr_value(device, sysattr, value);
|
||||
if (r < 0)
|
||||
log_device_debug_errno(device, r,
|
||||
|
Loading…
Reference in New Issue
Block a user