!9 filan recovers the option d that needs to be parsed

From: @cherry530 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-04-03 06:28:04 +00:00 committed by Gitee
commit c055dc4573
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 2 deletions

View File

@ -0,0 +1,25 @@
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

View File

@ -3,11 +3,13 @@
Summary: Multipurpose relay
Name: socat
Version: 1.8.0.0
Release: 1
Release: 2
License: GPLv2
Url: http://www.dest-unreach.org/socat/
Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.gz
Patch0: filan-recovers-the-option-d-that-needs-to-be-parsed.patch
BuildRequires: gcc openssl-devel readline-devel ncurses-devel
BuildRequires: autoconf kernel-headers > 2.6.18
BuildRequires: iproute net-tools coreutils procps-ng openssl iputils
@ -22,7 +24,7 @@ line editor (readline), a program, or a combination of two of these.
%package_help
%prep
%autosetup
%autosetup -n %{name}-%{version} -p1
iconv -f iso8859-1 -t utf-8 CHANGES > CHANGES.utf8
mv CHANGES.utf8 CHANGES
@ -60,6 +62,9 @@ cp -a *.sh %{buildroot}/%{_docdir}/socat/
%doc %{_mandir}/man1/*
%changelog
* Wed Apr 03 2024 xu_ping <707078654@qq.com> - 1.8.0.0-2
- filan recovers the option d that needs to be parsed
* Wed Feb 28 2024 liyanan <liyanan61@h-partners.com> - 1.8.0.0-1
- update to 1.8.0.0