From: Karel Zak Date: Fri, 25 Sep 2009 13:33:07 +0000 (+0200) Subject: libblkid: don't scan private /dev/.udev directory X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1679f19004e0afee000d1f6f2c4929c61e2292d;p=util-linux libblkid: don't scan private /dev/.udev directory Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/devno.c b/shlibs/blkid/src/devno.c index 11f212ef..f48f26ec 100644 --- a/shlibs/blkid/src/devno.c +++ b/shlibs/blkid/src/devno.c @@ -189,6 +189,11 @@ void blkid__scan_dir(char *dirname, dev_t devno, struct dir_list **list, !S_ISDIR(st.st_mode)) continue; /* symlink or lstat() failed */ } + + if (strcmp(".udev", dp->d_name) == 0) + /* udev private direcory is huge and uninteresting */ + continue; + add_to_dirlist(dirname, dp->d_name, list); } closedir(dir);