GNU nano - Bugs: bug #56902, absolute filenames are...
You are not allowed to post comments on this tracker with your current authentication level.
bug #56902: absolute filenames are misconcatenated and can then mismatch a syntax
Submitter: | Brand Huntsman <brand> | ||
Submitted: | Mon 16 Sep 2019 08:54:59 AM UTC | ||
Severity: | 2 - Minor | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Sat 05 Oct 2019 09:45:55 AM UTC, comment #4: |
Benno Schulenberg <bens> |
Tue 17 Sep 2019 11:52:55 AM UTC, comment #3: Hmm... I don't know what I was thinking when wrote that code... I must have followed Mike's original suggestion in bug #44288, to use getcwd() and canonicalize_file_name(), but then realized that canonicalize_file_name() is a GNU extension and sought a replacement for it.
|
Benno Schulenberg <bens> |
Mon 16 Sep 2019 06:05:33 PM UTC, comment #2: update_poshistory() calls get_full_path() directly on the filename and produces the same result color_update() is getting with its charalloc/getcwd/sprintf/get_full_path code. Couldn't all of that code be replaced with one line?
|
Brand Huntsman <brand> |
Mon 16 Sep 2019 03:42:55 PM UTC, comment #1: No, there is no reason why color_update() calls get_full_path() for absolute paths, because it is dead wrong to concatenate two absolute paths. :| A foolish oversight.
|
Benno Schulenberg <bens> |
Mon 16 Sep 2019 08:54:59 AM UTC, original submission:
Create a new syntax:
|
Brand Huntsman <brand> |
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 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2019-10-05 | bens | Open/Closed | Open | Closed | |
2019-09-17 | bens | Summary | [Bug] absolute filenames can become invalid relative paths and not match syntax | absolute filenames are misconcatenated and can then mismatch a syntax | |
2019-09-16 | brand | Attached File | - | Added color-call-get_full_path-directly-on-the-filename.patch, #47534 | |
2019-09-16 | bens | Severity | 3 - Normal | 2 - Minor | |
Status | None | Fixed | |||
Assigned to | None | bens | |||
2019-09-16 | brand | Attached File | - | Added syntax-don-t-concatenate-filename-with-currentdir-when-filename-is-an-absolute-path.patch, #47526 |
Powered by Savane 3.13-4448.
Corresponding source code
The fix has been released in nano-4.5.