chiark / gitweb /
udevinfo: exclude "uevent" file from --attribute-walk
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 24 Oct 2007 14:51:33 +0000 (16:51 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 24 Oct 2007 14:51:33 +0000 (16:51 +0200)
udevinfo.c

index eb9b353..a2bc013 100644 (file)
@@ -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));