diff --git a/freeradius.spec b/freeradius.spec index a9e8b10..d6e804e 100644 --- a/freeradius.spec +++ b/freeradius.spec @@ -4,7 +4,7 @@ Name: freeradius Version: 3.0.21 -Release: 2 +Release: 3 Summary: Remote Authentication Dial-In User Service License: GPLv2+ and LGPLv2+ @@ -15,6 +15,7 @@ Source2: freeradius-logrotate Source3: freeradius-pam-conf Source4: freeradius-tmpfiles.conf +Patch0000: remove-unused-arguement.patch # patch for backport CVE BuildRequires: autoconf gdbm-devel openssl openssl-devel pam-devel zlib-devel net-snmp-devel @@ -434,6 +435,9 @@ exit 0 %attr(640,root,radiusd) %config(noreplace) /etc/raddb/mods-available/ldap %changelog +* Fri Dec 25 2020 sunguoshuai - 3.0.21-3 +- Remove unused arguement + * Wed Nov 11 2020 zhangtao - 3.0.21-2 - delete the unused file diff --git a/remove-unused-arguement.patch b/remove-unused-arguement.patch new file mode 100644 index 0000000..476420c --- /dev/null +++ b/remove-unused-arguement.patch @@ -0,0 +1,24 @@ +From f06084a007fdcaad3bd68f29e243fa8edcf0b590 Mon Sep 17 00:00:00 2001 +From: "Alan T. DeKok" +Date: Thu, 24 Dec 2020 07:38:59 -0500 +Subject: [PATCH] remove unused argument. Fixes #3817 + +--- + src/tests/map/map_unit.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/src/tests/map/map_unit.c b/src/tests/map/map_unit.c +index af6d016..df906a5 100644 +--- a/src/tests/map/map_unit.c ++++ b/src/tests/map/map_unit.c +@@ -81,7 +81,6 @@ static void NEVER_RETURNS usage(void) + fprintf(stderr, "usage: map_unit [OPTS] filename ...\n"); + fprintf(stderr, " -d Set user dictionary directory (defaults to " RADDBDIR ").\n"); + fprintf(stderr, " -D Set main dictionary directory (defaults to " DICTDIR ").\n"); +- fprintf(stderr, " -O Set output directory\n"); + fprintf(stderr, " -x Debugging mode.\n"); + fprintf(stderr, " -M Show program version information.\n"); + +-- +2.23.0 +