!50 fix coredump in gdbmtool history command
From: @foolstrong Reviewed-by: @liuzhiqiang26 Signed-off-by: @liuzhiqiang26
This commit is contained in:
commit
26b7e23284
30
Fix-coredump-in-gdbmtool-history-command.patch
Normal file
30
Fix-coredump-in-gdbmtool-history-command.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From d3f504875cb94d2e458e1e233e5ab8b40281fe2b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Sergey Poznyakoff <gray@gnu.org>
|
||||||
|
Date: Mon, 27 Jun 2022 11:49:31 +0300
|
||||||
|
Subject: [PATCH] Fix bug#569
|
||||||
|
|
||||||
|
* src/gdbmshell.c (input_history_begin): return GDBMSHELL_ERR
|
||||||
|
if history is not available.
|
||||||
|
|
||||||
|
Conflict: tools/gdbmshell.c --> src/gdbmshell.c
|
||||||
|
Reference: https://puszcza.gnu.org.ua/bugs/index.php?569
|
||||||
|
---
|
||||||
|
src/gdbmshell.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/gdbmshell.c b/src/gdbmshell.c
|
||||||
|
index 4b84c23..12fc2bd 100644
|
||||||
|
--- a/src/gdbmshell.c
|
||||||
|
+++ b/src/gdbmshell.c
|
||||||
|
@@ -1714,7 +1714,7 @@ input_history_begin (struct command_param *param,
|
||||||
|
/* TRANSLATORS: %s is the stream name */
|
||||||
|
terror (_("input history is not available for %s input stream"),
|
||||||
|
input_stream_name ());
|
||||||
|
- return GDBMSHELL_OK;
|
||||||
|
+ return GDBMSHELL_ERR;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (param->argc)
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: gdbm
|
Name: gdbm
|
||||||
Version: 1.22
|
Version: 1.22
|
||||||
Release: 6
|
Release: 7
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: A library of database functions that work similar to the standard UNIX dbm
|
Summary: A library of database functions that work similar to the standard UNIX dbm
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -11,6 +11,7 @@ Patch0: Fix-gdbmtool-import-command.patch
|
|||||||
Patch1: Fix-binary-dump-format-for-key-and-or-data-of-zero-s.patch
|
Patch1: Fix-binary-dump-format-for-key-and-or-data-of-zero-s.patch
|
||||||
Patch2: gdbm_dump-fix-command-line-error-detection.patch
|
Patch2: gdbm_dump-fix-command-line-error-detection.patch
|
||||||
Patch3: Fix-location-tracking-in-gdbmtool.-Fix-the-recover-c.patch
|
Patch3: Fix-location-tracking-in-gdbmtool.-Fix-the-recover-c.patch
|
||||||
|
Patch4: Fix-coredump-in-gdbmtool-history-command.patch
|
||||||
|
|
||||||
BuildRequires: gcc libtool gettext readline-devel bison flex
|
BuildRequires: gcc libtool gettext readline-devel bison flex
|
||||||
|
|
||||||
@ -102,6 +103,9 @@ fi
|
|||||||
%{_infodir}/*.info*
|
%{_infodir}/*.info*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 28 2022 wangzhqiang <wangzhiqiang95@huawei.com> - 1:1.22-7
|
||||||
|
- DESC: Fix coredump in gdbmtool history command
|
||||||
|
|
||||||
* Thu Jun 23 2022 wangzhqiang <wangzhiqiang95@huawei.com> - 1:1.22-6
|
* Thu Jun 23 2022 wangzhqiang <wangzhiqiang95@huawei.com> - 1:1.22-6
|
||||||
- DESC: fix location tracking in gdbmtool, fix the recover command
|
- DESC: fix location tracking in gdbmtool, fix the recover command
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user