From: Kay Sievers Date: Wed, 24 Oct 2007 14:51:33 +0000 (+0200) Subject: udevinfo: exclude "uevent" file from --attribute-walk X-Git-Tag: 174~1796 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9b647708440d4bff4c250292b72b0c59087e3df;p=systemd udevinfo: exclude "uevent" file from --attribute-walk --- diff --git a/udevinfo.c b/udevinfo.c index eb9b3534..a2bc0136 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));