!25 [sync] PR-21: add version and help usage

From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-10-21 03:25:06 +00:00 committed by Gitee
commit c2c9736c06
2 changed files with 34 additions and 3 deletions

View File

@ -0,0 +1,27 @@
From 5eeccb85a67bbd365839afc65eda4eb388375e68 Mon Sep 17 00:00:00 2001
From: wang_yue111 <648774160@qq.com>
Date: Wed, 20 Oct 2021 17:37:51 +0800
Subject: [PATCH] add version and help usage
---
ntfsprogs/ntfssecaudit.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ntfsprogs/ntfssecaudit.c b/ntfsprogs/ntfssecaudit.c
index 9484a60..caa3da3 100644
--- a/ntfsprogs/ntfssecaudit.c
+++ b/ntfsprogs/ntfssecaudit.c
@@ -6007,6 +6007,10 @@ static void usage(void)
fprintf(stderr," set the security parameters of file to perms\n");
fprintf(stderr," ntfssecaudit -r[v] volume perms directory\n");
fprintf(stderr," set the security parameters of files in directory to perms\n");
+ fprintf(stderr," ntfssecaudit -V\n");
+ fprintf(stderr," display version\n");
+ fprintf(stderr," ntfssecaudit -H\n");
+ fprintf(stderr," display usage\n");
#ifdef HAVE_SETXATTR
fprintf(stderr," special cases, do not require being root :\n");
fprintf(stderr," ntfssecaudit -u mounted-file\n");
--
2.23.0

View File

@ -1,12 +1,14 @@
Name: ntfs-3g
Version: 2021.8.22
Release: 1
Release: 2
Epoch: 2
Summary: Linux NTFS userspace driver
License: GPLv2+
URL: http://www.ntfs-3g.org/
Source0: http://tuxera.com/opensource/%{name}_ntfsprogs-%{version}%{?subver}.tgz
Patch0: 0000-ntfs-3g_ntfsprogs-2011.10.9-RC-ntfsck-unsupported-return-0.patch
Patch1: add-version-and-help-usage.patch
BuildRequires: libtool, libattr-devel, libconfig-devel, libgcrypt-devel, gnutls-devel, libuuid-devel
Provides: ntfsprogs-fuse = %{epoch}:%{version}-%{release}
Obsoletes: ntfsprogs-fuse
@ -39,8 +41,7 @@ Requires: man
This package includes man files for %{name}.
%prep
%setup -q -n %{name}_ntfsprogs-%{version}%{?subver}
%patch0 -p1 -b .unsupported
%autosetup -n %{name}_ntfsprogs-%{version}%{?subver} -p1
%build
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
@ -88,6 +89,9 @@ rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/README
%{_mandir}/man*/*
%changelog
* Thu Oct 21 2021 wangyue <wangyue92@huawei.com> - 2:2021.8.22-2
- add version and help usage
* Wed Sep 22 2021 houyingchao <houyingchao@huawei.com> - 2:2021.8.22-1
- Upgrade to 2021.8.22 to fix the cves