fix possible crash while opening help
Suggested by Benno Schulenberg (upstream maintainer) at: http://lists.gnu.org/archive/html/nano-devel/2019-05/msg00027.html
This commit is contained in:
parent
b095242ecd
commit
8de43fc9bf
30
0005-nano-4.2-help-crash.patch
Normal file
30
0005-nano-4.2-help-crash.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From 00351963c03818d058bfc355663fe0d7c86b9386 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Benno Schulenberg <bensberg@telfort.nl>
|
||||||
|
Date: Thu, 23 May 2019 12:43:31 +0200
|
||||||
|
Subject: [PATCH] help: don't check for confinement when opening a temporary
|
||||||
|
help-text file
|
||||||
|
|
||||||
|
This fixes https://savannah.gnu.org/bugs/?56369.
|
||||||
|
|
||||||
|
Upstream-commit: acd23551c3322f397dc43f97796273a8958f6ef9
|
||||||
|
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||||
|
---
|
||||||
|
src/files.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/files.c b/src/files.c
|
||||||
|
index 20bbd942..7952bc00 100644
|
||||||
|
--- a/src/files.c
|
||||||
|
+++ b/src/files.c
|
||||||
|
@@ -420,7 +420,7 @@ bool open_buffer(const char *filename, bool new_buffer)
|
||||||
|
as_an_at = FALSE;
|
||||||
|
|
||||||
|
#ifdef ENABLE_OPERATINGDIR
|
||||||
|
- if (outside_of_confinement(filename, FALSE)) {
|
||||||
|
+ if (!inhelp && outside_of_confinement(filename, FALSE)) {
|
||||||
|
statusline(ALERT, _("Can't read file from outside of %s"),
|
||||||
|
operating_dir);
|
||||||
|
return FALSE;
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: A small text editor
|
Summary: A small text editor
|
||||||
Name: nano
|
Name: nano
|
||||||
Version: 4.2
|
Version: 4.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://www.nano-editor.org
|
URL: https://www.nano-editor.org
|
||||||
Source: https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz
|
Source: https://www.nano-editor.org/dist/latest/%{name}-%{version}.tar.xz
|
||||||
@ -17,6 +17,9 @@ BuildRequires: sed
|
|||||||
BuildRequires: texinfo
|
BuildRequires: texinfo
|
||||||
Conflicts: filesystem < 3
|
Conflicts: filesystem < 3
|
||||||
|
|
||||||
|
# fix possible crash while opening help
|
||||||
|
Patch5: 0005-nano-4.2-help-crash.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GNU nano is a small and friendly text editor.
|
GNU nano is a small and friendly text editor.
|
||||||
|
|
||||||
@ -64,6 +67,9 @@ install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc
|
|||||||
%{_datadir}/nano
|
%{_datadir}/nano
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 28 2019 Kamil Dudka <kdudka@redhat.com> - 4.2-2
|
||||||
|
- fix possible crash while opening help
|
||||||
|
|
||||||
* Wed Apr 24 2019 Kamil Dudka <kdudka@redhat.com> - 4.2-1
|
* Wed Apr 24 2019 Kamil Dudka <kdudka@redhat.com> - 4.2-1
|
||||||
- new upstream release
|
- new upstream release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user