mirror of
https://github.com/systemd/systemd.git
synced 2025-01-28 21:47:38 +03:00
udev: do not try to remove /dev
This commit is contained in:
parent
5733bd4862
commit
e91454231b
@ -308,7 +308,7 @@ static int link_update(sd_device *dev, const char *slink_in, bool add) {
|
||||
if (r == -ENOENT) {
|
||||
log_device_debug(dev, "No reference left, removing '%s'", slink);
|
||||
if (unlink(slink) == 0)
|
||||
(void) rmdir_parents(slink, "/");
|
||||
(void) rmdir_parents(slink, "/dev");
|
||||
|
||||
break;
|
||||
} else if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user