projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2569b6
)
Excluce some known dir from old scan.
author
Milan Broz
<gmazyland@gmail.com>
Tue, 24 May 2011 11:39:39 +0000
(11:39 +0000)
committer
Milan Broz
<gmazyland@gmail.com>
Tue, 24 May 2011 11:39:39 +0000
(11:39 +0000)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@532
36d66b0a
-2a48-0410-832c-
cd162a569da5
lib/utils_devpath.c
patch
|
blob
|
history
diff --git
a/lib/utils_devpath.c
b/lib/utils_devpath.c
index
af6cec0
..
ded0c04
100644
(file)
--- a/
lib/utils_devpath.c
+++ b/
lib/utils_devpath.c
@@
-56,6
+56,13
@@
static char *__lookup_dev(char *path, dev_t dev, int dir_level, const int max_le
!strncmp(entry->d_name, "..", 2))
continue;
+ if (dir_level == 0 &&
+ (!strcmp(entry->d_name, "shm") ||
+ !strcmp(entry->d_name, "fd") ||
+ !strcmp(entry->d_name, "char") ||
+ !strcmp(entry->d_name, "pts")))
+ continue;
+
strncpy(ptr, entry->d_name, space);
if (stat(path, &st) < 0)
continue;