From c79af3f69340b0afbb294f978fb10b7c27e0ccd1 Mon Sep 17 00:00:00 2001 From: kangenbo Date: Sat, 11 Jan 2020 14:29:32 +0800 Subject: [PATCH] tune patch info --- ...h => 9000-Limit-number-of-comparison-characters-to-4.patch | 2 +- ...-of-RPC-port.patch => 9001-Limit-maximum-of-RPC-port.patch | 3 ++- quota.spec | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) rename 0000-Limit-number-of-comparison-characters-to-4.patch => 9000-Limit-number-of-comparison-characters-to-4.patch (91%) rename 0001-Limit-maximum-of-RPC-port.patch => 9001-Limit-maximum-of-RPC-port.patch (94%) diff --git a/0000-Limit-number-of-comparison-characters-to-4.patch b/9000-Limit-number-of-comparison-characters-to-4.patch similarity index 91% rename from 0000-Limit-number-of-comparison-characters-to-4.patch rename to 9000-Limit-number-of-comparison-characters-to-4.patch index 4c2e5e4..f97ea2e 100644 --- a/0000-Limit-number-of-comparison-characters-to-4.patch +++ b/9000-Limit-number-of-comparison-characters-to-4.patch @@ -1,7 +1,7 @@ From 72ffc473b79180c38918d2e8e46f8f6707e35628 Mon Sep 17 00:00:00 2001 From: kangenbo Date: Sat, 11 Jan 2020 13:04:09 +0800 -Subject: [PATCH 1/2] Limit number of comparison characters to 4 +Subject: Limit number of comparison characters to 4 Replace the function strcasecmp with strncasecmp --- diff --git a/0001-Limit-maximum-of-RPC-port.patch b/9001-Limit-maximum-of-RPC-port.patch similarity index 94% rename from 0001-Limit-maximum-of-RPC-port.patch rename to 9001-Limit-maximum-of-RPC-port.patch index e3bf100..03f6fe0 100644 --- a/0001-Limit-maximum-of-RPC-port.patch +++ b/9001-Limit-maximum-of-RPC-port.patch @@ -1,8 +1,9 @@ From f73a0e2c031a482683f39fd8a6aa122186b67a99 Mon Sep 17 00:00:00 2001 From: kangenbo Date: Sat, 11 Jan 2020 13:08:08 +0800 -Subject: [PATCH 2/2] Limit maximum of RPC port +Subject: Limit maximum of RPC port +Limit maximum of RPC port --- rquota_svc.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/quota.spec b/quota.spec index f9d41a6..758e9c9 100644 --- a/quota.spec +++ b/quota.spec @@ -12,8 +12,8 @@ Source2: quota_nld.sysconfig Source3: rpc-rquotad.service Source4: rpc-rquotad.sysconfig -Patch0000: 0000-Limit-number-of-comparison-characters-to-4.patch -Patch0001: 0001-Limit-maximum-of-RPC-port.patch +Patch9000: 9000-Limit-number-of-comparison-characters-to-4.patch +Patch9001: 9001-Limit-maximum-of-RPC-port.patch BuildRequires: autoconf, automake, coreutils, rpcgen, systemd BuildRequires: e2fsprogs-devel, gettext-devel, openldap-devel