diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-10-24 16:51:33 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-10-24 16:51:33 +0200 |
commit | e9b647708440d4bff4c250292b72b0c59087e3df (patch) | |
tree | a7a6d9783cf19f2fd5630d0dc177ea2c1d4b7b31 /udevinfo.c | |
parent | f1bc0fdb0f411614f380a93d639c641701440d8f (diff) |
udevinfo: exclude "uevent" file from --attribute-walk
Diffstat (limited to 'udevinfo.c')
-rw-r--r-- | udevinfo.c | 3 |
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)); |