summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
Diffstat (limited to 'bounce.c')
-rw-r--r--bounce.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bounce.c b/bounce.c
index 7f0add5..12cacf5 100644
--- a/bounce.c
+++ b/bounce.c
@@ -139,10 +139,10 @@ static void unveilTarget(const char *path, const char *mode) {
 }
 
 static void unveilConfig(const char *path) {
-	const char *dirs = NULL;
-	for (const char *abs; NULL != (abs = configPath(&dirs, path));) {
-		unveilParent(abs, "r");
-		unveilTarget(abs, "r");
+	char buf[PATH_MAX];
+	for (int i = 0; configPath(buf, sizeof(buf), path, i); ++i) {
+		unveilParent(buf, "r");
+		unveilTarget(buf, "r");
 	}
 }
 #endif /* __OpenBSD__ */