diff --git a/filan-recovers-the-option-d-that-needs-to-be-parsed.patch b/filan-recovers-the-option-d-that-needs-to-be-parsed.patch new file mode 100644 index 0000000000000000000000000000000000000000..d598b851bcde51db8741f6a0dae5063e513842e1 --- /dev/null +++ b/filan-recovers-the-option-d-that-needs-to-be-parsed.patch @@ -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 + diff --git a/socat.spec b/socat.spec index 06f594561daf0713c9d01dff861f4c91f5aec220..d0a43156440e0d77d4ea248d4eb8312f8b4be073 100644 --- a/socat.spec +++ b/socat.spec @@ -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 - 1.8.0.0-1 - update to 1.8.0.0