!98 修改patch中缺少返回值

From: @shen-chenbang 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2024-09-09 02:44:03 +00:00 committed by Gitee
commit 1a8ad28eb3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 2 deletions

View File

@ -41,7 +41,7 @@ index 68e2799..8ccfec4 100644
- return 0; - return 0;
+ if ((fp = fopen(TTYAMA, "r")) == NULL) { + if ((fp = fopen(TTYAMA, "r")) == NULL) {
+ if ((fp = fopen(SERIAL, "r")) == NULL) { + if ((fp = fopen(SERIAL, "r")) == NULL) {
+ return; + return 0;
+ } + }
+ } + }

View File

@ -1,6 +1,6 @@
Name: sysstat Name: sysstat
Version: 12.7.5 Version: 12.7.5
Release: 2 Release: 3
Summary: System performance tools for the Linux operating system Summary: System performance tools for the Linux operating system
License: GPLv2+ License: GPLv2+
URL: http://sebastien.godard.pagesperso-orange.fr/ URL: http://sebastien.godard.pagesperso-orange.fr/
@ -88,6 +88,9 @@ fi
%{_mandir}/man*/* %{_mandir}/man*/*
%changelog %changelog
* Tue Aug 27 2024 shenchenbang <1944340417@qq.com> - 12.7.5-3
- Fix patch
* Thu Feb 29 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 12.7.5-2 * Thu Feb 29 2024 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 12.7.5-2
- Fix the incorrect command 'is-enable' to 'is-enabled'. - Fix the incorrect command 'is-enable' to 'is-enabled'.