chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] udev add wild card compare for ID
[elogind.git]
/
namedev.c
diff --git
a/namedev.c
b/namedev.c
index 59ec08c715e58bdc92a52f669ecc86b8845e6e1e..e4e585b5cd64b5676a3261a736c6b620f3a6dad5 100644
(file)
--- a/
namedev.c
+++ b/
namedev.c
@@
-477,8
+477,9
@@
static int match_id(struct config_device *dev, struct sysfs_class_device *class_
strfieldcpy(path, sysfs_device->path);
temp = strrchr(path, '/');
+ temp++;
dbg("search '%s' in '%s', path='%s'", dev->id, temp, path);
- if (str
str(temp, dev->id) == NULL
)
+ if (str
cmp_pattern(dev->id, temp) != 0
)
return -ENODEV;
else
return 0;