chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3396a2
)
db: don't create a db file for only a node name to store
author
Kay Sievers
<kay.sievers@suse.de>
Mon, 21 Aug 2006 00:38:48 +0000
(
02:38
+0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Mon, 21 Aug 2006 00:38:48 +0000
(
02:38
+0200)
udev_db.c
patch
|
blob
|
history
diff --git
a/udev_db.c
b/udev_db.c
index c3034f5037f1320e6090c43799eb747212ee0ce9..86a3ea7a39bb6d20f6c5f51feae1b4c5fe60fdbf 100644
(file)
--- 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);