!68 typofix: fix incorrect printing in lxcfs help interface

From: @vegbir 
Reviewed-by: @zhangsong234, @jingwoo 
Signed-off-by: @zhangsong234, @jingwoo
This commit is contained in:
openeuler-ci-bot 2023-12-15 03:18:19 +00:00 committed by Gitee
commit 8ef97f8c61
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From c27c750ba028a65a3d136999e85939dbb9601b06 Mon Sep 17 00:00:00 2001
From: vegbir <yangjiaqi16@huawei.com>
Date: Thu, 14 Dec 2023 07:27:07 +0000
Subject: [PATCH] typofix: fix incorrect printing in lxcfs help interface
Signed-off-by: vegbir <yangjiaqi16@huawei.com>
---
src/lxcfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lxcfs.c b/src/lxcfs.c
index cb0739c..c55a388 100644
--- a/src/lxcfs.c
+++ b/src/lxcfs.c
@@ -1181,7 +1181,7 @@ static void usage(void)
lxcfs_info("Options :");
lxcfs_info(" -d, --debug Run lxcfs with debugging enabled");
lxcfs_info(" -f, --foreground Run lxcfs in the foreground");
- lxcfs_info(" -n, --help Print help");
+ lxcfs_info(" -h, --help Print help");
lxcfs_info(" -l, --enable-loadavg Enable loadavg virtualization");
lxcfs_info(" -o Options to pass directly through fuse");
lxcfs_info(" -p, --pidfile=FILE Path to use for storing lxcfs pid");
--
2.41.0

View File

@ -4,7 +4,7 @@
#Basic Information
Name: lxcfs
Version: 5.0.4
Release: 1
Release: 2
Summary: FUSE filesystem for LXC
License: LGPL 2.1+
URL: http://linuxcontainers.org
@ -25,6 +25,7 @@ Patch9012: 0012-lxcfs-adapt-4.18-kernel.patch
Patch9013: 0013-enable-cfs-option-to-show-correct-proc-cpuinfo-view.patch
Patch9014: 0014-fix-pidfd_open-pidfd_send_signal-function-compilatio.patch
Patch9015: 0015-adapt-meson-build-install.patch
Patch9016: 0016-typofix-fix-incorrect-printing-in-lxcfs-help-interfa.patch
#Dependency
BuildRequires: meson python3-jinja2 help2man
@ -81,6 +82,12 @@ fi
%{_unitdir}/*
%changelog
* Fri Dec 15 2023 yangjiaqi <yangjiaqi16@huawei.com> - 5.0.4-2
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix incorrect printing in lxcfs help interface
* Thu July 27 2023 yangjiaqi <yangjiaqi16@huawei.com> - 5.0.4-1
- Type:bugfix
- CVE:NA