]> err.no Git - systemd/commitdiff
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 eb9b3534046ea6de2c2014219945d1ab31b83eff..a2bc0136913070d569a62cf87a77d07181ab8977 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));