-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysklogd: add patch ro read *.conf files from include/ dirs sorted, r…
…elbump
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 28a1fb30567c6aecb1b50c79c4b7d17a03ed2453 Mon Sep 17 00:00:00 2001 | ||
From: Joachim Wiberg <[email protected]> | ||
Date: Thu, 18 Jul 2024 11:42:36 +0200 | ||
Subject: [PATCH] Read *.conf files from include/ directories sorted | ||
|
||
No point in "saving time" on this operation. It is more important to | ||
users that we read the files in a predefined order, alphabetically. | ||
|
||
Signed-off-by: Joachim Wiberg <[email protected]> | ||
--- | ||
src/syslogd.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/syslogd.c b/src/syslogd.c | ||
index ccd1870..e6d8747 100644 | ||
--- a/src/syslogd.c | ||
+++ b/src/syslogd.c | ||
@@ -3400,7 +3400,7 @@ static int cfparse(FILE *fp, struct files *newf) | ||
p++; | ||
|
||
logit("Searching for %s ...\n", p); | ||
- if (glob(p, GLOB_NOSORT, NULL, &gl)) | ||
+ if (glob(p, 0, NULL, &gl)) | ||
logit("No files match %s\n", p); | ||
|
||
for (size_t i = 0; i < gl.gl_pathc; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters