1
0
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:
Yu Watanabe 2021-06-02 23:52:46 +09:00
parent 5733bd4862
commit e91454231b

View File

@ -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)