summaryrefslogtreecommitdiff
path: root/udevstart.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-04-23 21:55:57 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:17 -0700
commite13fa59953d64e478025fd1200bb5fd0baf671b2 (patch)
treed68cfee1c935885b13210987449e4292f30cb512 /udevstart.c
parentaef6bb132ef2f5b4c446e42f6050033d4f5c177b (diff)
[PATCH] udevstart: close open directories.
Based on a munged patch from Olaf Hering <olh@suse.de>
Diffstat (limited to 'udevstart.c')
-rw-r--r--udevstart.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/udevstart.c b/udevstart.c
index 5e6606d535..1d9b60464c 100644
--- a/udevstart.c
+++ b/udevstart.c
@@ -130,10 +130,13 @@ static void udev_scan(void)
udev_exec(filename, "block");
}
}
+ closedir(dir3);
}
}
+ closedir(dir2);
}
}
+ closedir(dir);
}
devpath = "class";
@@ -176,10 +179,13 @@ static void udev_scan(void)
udev_exec(filename, dent->d_name);
}
}
+ closedir(dir3);
}
}
+ closedir(dir2);
}
}
+ closedir(dir);
}
}