From: Kay Sievers Date: Mon, 21 Aug 2006 00:38:48 +0000 (+0200) Subject: db: don't create a db file for only a node name to store X-Git-Tag: 174~2171 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e3e7358137a35849f81a8e18ca548ded22a2b5cc;hp=e3396a2d383cf19092911a4643e092f6a825b2aa;p=elogind.git db: don't create a db file for only a node name to store --- diff --git a/udev_db.c b/udev_db.c index c3034f503..86a3ea7a3 100644 --- a/udev_db.c +++ b/udev_db.c @@ -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);