mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
sd-device: don't complain if the uevent file is missing
Only 'real' devices are required to have an uevent file.
This commit is contained in:
parent
5d236c1f42
commit
2a2137401b
@ -510,6 +510,9 @@ int device_read_uevent_file(sd_device *device) {
|
||||
if (r == -EACCES)
|
||||
/* empty uevent files may be write-only */
|
||||
return 0;
|
||||
else if (r == -ENOENT)
|
||||
/* some devices may not have uevent files, see set_syspath() */
|
||||
return 0;
|
||||
else if (r < 0) {
|
||||
log_debug("sd-device: failed to read uevent file '%s': %s", path, strerror(-r));
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user