nano/0005-nano-4.2-help-crash.patch
2019-05-28 14:14:25 +02:00

31 lines
933 B
Diff

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