far2ledit command fails to open files in /etc
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| far2l (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Noble |
Fix Released
|
Undecided
|
Unassigned | ||
| Oracular |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
[ Impact ]
The far2ledit command incorrectly opens an empty editor when the file path starts with /e, impacting users editing configuration files (often in /etc). This fix corrects the command-line parsing, restoring the expected file editing functionality.
[ Test Plan ]
1. Install the updated far2l (after applying the patch).
2. Run far2ledit /etc/hosts and verify /etc/hosts opens correctly.
3. Compare with the current version from the official repositories where this command opens an empty editor.
[ Where problems could occur ]
The fix alters command-line parsing. Regressions are possible if other valid options are now misinterpreted. Test several random far2l and far2ledit command-line options, including at least one involving file path.
[ Other Info ]
This fix, extensively tested in a public PPA with no reported regressions, addresses a specific parsing issue with minimal code changes. It's crucial for usability and system administration, particularly for editing files within /etc. The patches cover both 24.04 LTS and 24.10.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: far2l 2.6.0~beta+
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu2
Architecture: amd64
CasperMD5CheckM
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Oct 9 08:33:14 2024
InstallationDate: Installed on 2024-04-29 (163 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: far2l
UpgradeStatus: No upgrade log present (probably fresh install)
| Changed in far2l (Ubuntu): | |
| status: | New → Fix Released |

patch for 24.10