From b44bfb7443f121250f0343dc8883ec52617f2a91 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Wed, 9 Mar 2022 18:08:57 +0800 Subject: [PATCH] Fix help doc --- fix-help-doc.patch | 25 +++++++++++++++++++++++++ rootsh.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 fix-help-doc.patch diff --git a/fix-help-doc.patch b/fix-help-doc.patch new file mode 100644 index 0000000..9953d18 --- /dev/null +++ b/fix-help-doc.patch @@ -0,0 +1,25 @@ +From 35be39adfbd81b3256ef7d3dffe274c7ef520dd5 Mon Sep 17 00:00:00 2001 +From: wk333 <13474090681@163.com> +Date: Wed, 9 Mar 2022 17:51:25 +0800 +Subject: [PATCH 1/1] test + +--- + src/rootsh.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/rootsh.c b/src/rootsh.c +index 9d6ffc7..c24cc1a 100644 +--- a/src/rootsh.c ++++ b/src/rootsh.c +@@ -1517,7 +1517,7 @@ void version() { + + void usage() { + printf("Usage: %s [OPTION [ARG]] ...\n" +- " -?, --help show this help statement\n" ++ " -h, --help show this help statement\n" + " -i, --login start a (initial) login shell\n" + " -u, --user=username run shell as a different user\n" + " -f, --logfile=file name of your logfile (standalone only)\n" +-- +2.27.0 + diff --git a/rootsh.spec b/rootsh.spec index 2c39fcf..121c900 100644 --- a/rootsh.spec +++ b/rootsh.spec @@ -1,13 +1,14 @@ Name: rootsh Summary: Shell wrapper for auditing Version: 1.5.3 -Release: 16 +Release: 17 License: GPLv3+ Source0: http://download.sourceforge.net/rootsh/%{name}-%{version}.tar.gz Source1: rootsh.logrotate Source2: logrotate-rootsh.sh Patch0: rootsh-1.5.3-open-needs-3-args.patch Patch1: rootsh-1.5.3_change_permissions.patch +Patch2: fix-help-doc.patch URL: http://sourceforge.net/projects/rootsh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -54,6 +55,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/rootsh.1.gz %changelog +* Wed Mar 09 2022 wangkai - 1.5.3-17 +- Fix help doc + * Wed Jun 23 2021 yuanxin - 1.5.3-16 - Type:bugfix - CVE:NA -- Gitee