socat/filan-recovers-the-option-d-that-needs-to-be-parsed.patch

26 lines
751 B
Diff
Raw Normal View History

From a4b0405548cc5d12e0e5888061e1880ea524e8c6 Mon Sep 17 00:00:00 2001
From: cherry530 <707078654@qq.com>
Date: Wed, 3 Apr 2024 10:09:02 +0800
Subject: [PATCH] filan recovers the option d that needs to be parsed
Signed-off-by: cherry530 <707078654@qq.com>
---
error.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/error.c b/error.c
index d0a2a9e..3e91d93 100644
--- a/error.c
+++ b/error.c
@@ -197,6 +197,7 @@ void diag_set(char what, const char *arg) {
case 'p': diagopts.progname = arg;
openlog(diagopts.progname, LOG_PID, diagopts.logfacility);
break;
+ case 'd': --diagopts.msglevel; break;
case 'u': diagopts.micros = true; break;
default: msg(E_ERROR, "unknown diagnostic option %c", what);
}
--
2.27.0