commit 4f337f1f6ae698a6cab0e0afe56c60057b3c6dff
parent da1e95cc41b379eef126e174440814b815d6a8b7
Author: Gerrit Pape <pape@smarden.org>
Date: Mon, 21 Oct 2002 14:32:06 +0000
* runsvdir.c: continue reading directory when stat() on entry fails.
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/CHANGES b/package/CHANGES
@@ -1,3 +1,5 @@
+ * runsvdir.c: continue reading directory when stat() on entry fails.
+
runit 0.7.0
Mon, 07 Oct 2002 11:26:27 +0200
* runsvdir.c: check service directory's inode and device in addition
diff --git a/src/runsvdir.c b/src/runsvdir.c
@@ -95,7 +95,7 @@ void runsvdir() {
if (d->d_name[0] == '.') continue;
if (stat(d->d_name, &s) == -1) {
warn("unable to stat ", d->d_name);
- return;
+ continue;
}
if (! S_ISDIR(s.st_mode))
continue;