2012-10-18 10:15:42 +02:00
|
|
|
Index: LVM2.2.02.58/lib/device/dev-cache.c
|
2009-05-15 22:00:20 +02:00
|
|
|
===================================================================
|
2012-10-18 10:15:42 +02:00
|
|
|
--- LVM2.2.02.58.orig/lib/device/dev-cache.c 2009-07-16 04:02:46.000000000 +0800
|
|
|
|
+++ LVM2.2.02.58/lib/device/dev-cache.c 2010-02-04 15:32:59.000000000 +0800
|
|
|
|
@@ -358,7 +358,11 @@
|
2009-05-15 22:00:20 +02:00
|
|
|
dirent_count = scandir(dir, &dirent, NULL, alphasort);
|
|
|
|
if (dirent_count > 0) {
|
|
|
|
for (n = 0; n < dirent_count; n++) {
|
|
|
|
- if (dirent[n]->d_name[0] == '.') {
|
|
|
|
+ if (dirent[n]->d_name[0] == '.' && dirent[n]->d_name[1] == '\0') {
|
|
|
|
+ free(dirent[n]);
|
|
|
|
+ continue;
|
|
|
|
+ }
|
2012-10-18 10:15:42 +02:00
|
|
|
+ if (dirent[n]->d_name[0] == '.' && dirent[n]->d_name[1] == '.' && dirent[n]->d_name[2] == '\0') {
|
2009-05-15 22:00:20 +02:00
|
|
|
free(dirent[n]);
|
|
|
|
continue;
|
|
|
|
}
|