From a1679f19004e0afee000d1f6f2c4929c61e2292d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 25 Sep 2009 15:33:07 +0200 Subject: [PATCH] libblkid: don't scan private /dev/.udev directory Signed-off-by: Karel Zak --- shlibs/blkid/src/devno.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.5