1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

db: don't create a db file for only a node name to store

This commit is contained in:
Kay Sievers 2006-08-21 02:38:48 +02:00
parent e3396a2d38
commit e3e7358137

View File

@ -81,8 +81,7 @@ int udev_db_add_device(struct udevice *udev)
* create only a symlink with the name as the target
* if we don't have any interesting data to remember
*/
if (strcmp(udev->name, udev->dev->kernel) == 0 &&
list_empty(&udev->symlink_list) && list_empty(&udev->env_list) &&
if (list_empty(&udev->symlink_list) && list_empty(&udev->env_list) &&
!udev->partitions && !udev->ignore_remove) {
dbg("nothing interesting to store, create symlink");
unlink(filename);