GNU nano - Bugs: bug #54732, [Request] allow syntax...
You are not allowed to post comments on this tracker with your current authentication level.
bug #54732: [Request] allow syntax highlighting in Restricted Mode
Submitter: | Mark Webb-Johnson <markwj> | ||
Submitted: | Wed 26 Sep 2018 06:13:07 AM UTC | ||
Severity: | 1 - Wish | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Jump to the original submission
Mon 12 Nov 2018 06:49:00 PM UTC, comment #10: |
Benno Schulenberg <bens> |
Tue 02 Oct 2018 05:34:53 PM UTC, comment #9: Restricted mode now reads nanorc files -- pushed to git, commit 5ca444e5. |
Benno Schulenberg <bens> |
Sun 30 Sep 2018 08:23:54 AM UTC, comment #8: Attached version disables a 'set operatingdir' in a nanorc file but allows one on the command line.
|
Benno Schulenberg <bens> |
Sat 29 Sep 2018 10:10:19 AM UTC, comment #7: Well, when allowing 'set operatingdir /some/user/accessible/path', then it will create the file given with 'rnano' in that path (when the given file is just a name) or it will allow writing an arbitrary file in that path (when the given file has an absolute path). Clearly this should not be allowed. But --operatingdir should be allowed on the command line, so the script that invokes rnano can make use of it. Hmmm... This isn't as simple as it looked.
|
Benno Schulenberg <bens> |
Sat 29 Sep 2018 06:57:18 AM UTC, comment #6: Thanks for reporting back. When on the mailing list no one objects, this will be available from version 3.2. |
Benno Schulenberg <bens> |
Fri 28 Sep 2018 05:00:39 AM UTC, comment #5: Looks good, and works perfectly for me. Great solution. Thanks. |
Mark Webb-Johnson <markwj> |
Thu 27 Sep 2018 06:20:38 PM UTC, comment #4: Okay. Please try the attached patch. It should apply without problem to any recent nano.
|
Benno Schulenberg <bens> |
Thu 27 Sep 2018 12:40:05 AM UTC, comment #3: I just read the last comment at:
|
Mark Webb-Johnson <markwj> |
Thu 27 Sep 2018 12:36:37 AM UTC, comment #2: I would suggest caution modelling behaviour from rvim. That really is unsuitable, as the restrictions are way too open. In rvim you can, for instance, arbitrarily read files from disk.
|
Mark Webb-Johnson <markwj> |
Wed 26 Sep 2018 07:02:14 PM UTC, comment #1: Yeah, retricted mode disallows all customization of nano, which kind off sucks. So I have recently suggested that rnano should read the rcfiles anyway (see at the end of http://lists.gnu.org/archive/html/nano-devel/2018-03/msg00111.html), just like rvim seems to do. But I haven't looked into it because I knew of no one who used restricted mode. So... my question is: what do you use restricted mode for? How often do you use it? |
Benno Schulenberg <bens> |
Wed 26 Sep 2018 06:13:07 AM UTC, original submission:
At the moment, the restricted mode disables a bunch of things including the ability to process nanorc files. Unfortunately, that means syntax highlighting cannot be done in restricted mode.
|
Mark Webb-Johnson <markwj> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 9 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2018-11-12 | bens | Open/Closed | Open | Closed | |
2018-10-02 | bens | Status | In Progress | Fixed | |
2018-09-30 | bens | Attached File | - | Added 0001-startup-allow-reading-nanorc-in-restricted-mode-to-p.patch, #45119 | |
2018-09-27 | bens | Attached File | - | Added 0001-startup-allow-reading-nanorc-in-restricted-mode-to-p.patch, #45108 | |
Status | None | In Progress | |||
Assigned to | None | bens | |||
2018-09-26 | bens | Severity | 3 - Normal | 1 - Wish | |
Summary | Syntax highlighting in Restricted Mode | [Request] allow syntax highlighting in Restricted Mode | |||
2018-09-26 | markwj | Carbon-Copy | - | Added -email is unavailable- |
Powered by Savane 3.13-d3ae.
Corresponding source code
Released in 3.2.