From 1376bca509a4e30172c3ab822619a6d27c6ff235 Mon Sep 17 00:00:00 2001 From: wangchen2020 <15955488707@163.com> Date: Fri, 27 Nov 2020 15:44:40 +0800 Subject: [PATCH] fix nice case fail if noroot --- fix-nice-case-fail-if-noroot.patch | 24 ++++++++++++++++++++++++ tcsh.spec | 9 ++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 fix-nice-case-fail-if-noroot.patch diff --git a/fix-nice-case-fail-if-noroot.patch b/fix-nice-case-fail-if-noroot.patch new file mode 100644 index 0000000..e9dfedb --- /dev/null +++ b/fix-nice-case-fail-if-noroot.patch @@ -0,0 +1,24 @@ +From 1c74ba6a5332e5f9dfb6eb893fbd1d59ee5e15ec Mon Sep 17 00:00:00 2001 +From: openEuler Buildteam +Date: Mon, 29 Jun 2020 20:12:56 +0800 +Subject: [PATCH] fix nice case fail if noroot + +--- + tests/commands.at | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/commands.at b/tests/commands.at +index cf0fcf0..daf87fc 100755 +--- a/tests/commands.at ++++ b/tests/commands.at +@@ -891,6 +891,7 @@ TCSH_UNTESTED([newgrp]) + + + AT_SETUP([nice]) ++AT_SKIP_IF([test 'whoami' != 'root']) + + # Nothing really tested + AT_CHECK([tcsh -f -c 'nice set var=1; echo $?var'], , +-- +1.8.3.1 + diff --git a/tcsh.spec b/tcsh.spec index 4d4be36..2ff5760 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -1,6 +1,6 @@ Name: tcsh Version: 6.22.02 -Release: 1 +Release: 2 Summary: C shell with file name completion and command line editing License: BSD URL: http://www.tcsh.org/ @@ -13,6 +13,7 @@ Provides: /bin/csh /bin/tcsh Provides: csh = %{version} Patch0: fix-testcase-fail-if-noroot.patch +Patch1: fix-nice-case-fail-if-noroot.patch %description Tcsh is an enhanced but completely compatible version of the Berkeley @@ -94,6 +95,12 @@ fi %changelog +* Fri Nov 27 2020 wangchen - 6.22.02-2 +- Type: bugfix +- ID: NA +- SUG: NA +- DESC: fix nice case fail if noroot + * Tue Aug 4 2020 yangzhuangzhuang - 6.22.02-1 - Type: enhancement - ID: NA -- Gitee