summaryrefslogtreecommitdiff
path: root/udevinfo.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-10-24 16:51:33 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-10-24 16:51:33 +0200
commite9b647708440d4bff4c250292b72b0c59087e3df (patch)
treea7a6d9783cf19f2fd5630d0dc177ea2c1d4b7b31 /udevinfo.c
parentf1bc0fdb0f411614f380a93d639c641701440d8f (diff)
udevinfo: exclude "uevent" file from --attribute-walk
Diffstat (limited to 'udevinfo.c')
-rw-r--r--udevinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udevinfo.c b/udevinfo.c
index eb9b353404..a2bc013691 100644
--- a/udevinfo.c
+++ b/udevinfo.c
@@ -67,6 +67,9 @@ static void print_all_attributes(const char *devpath, const char *key)
if (dent->d_name[0] == '.')
continue;
+ if (strcmp(dent->d_name, "uevent") == 0)
+ continue;
+
strlcpy(filename, path, sizeof(filename));
strlcat(filename, "/", sizeof(filename));
strlcat(filename, dent->d_name, sizeof(filename));