help: don't check for confinement when opening a temporary help-text file

This fixes https://savannah.gnu.org/bugs/?56369.
This commit is contained in:
Benno Schulenberg 2019-05-23 12:43:31 +02:00
parent 2f1691079e
commit acd23551c3

View File

@ -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;