Skip to content

Edit fixes - #1662

Merged
troglobit merged 2 commits into
mainfrom
edit-fixes
Sep 26, 2026
Merged

troglobit merged 2 commits into
mainfrom
edit-fixes

Conversation

@troglobit

Copy link
Copy Markdown
Contributor

Description

Fix broken /usr/bin/askline functionality, used by, e.g., edit system hostname. Broke when the binsh was merged because BusyBox ash, which is now /bin/sh, does not support read -e.

Also, add some hardening to /usr/bin/askpass, lessons from askline.

Regression in the same release cycle, so no ChangeLog changes needed.

Setting ci:skip on this since none of the changes have any tests or are compiled.

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

With /bin/sh now BusyBox ash, askline fails before prompting:

    askline: read: line 13: illegal option -e

This breaks the CLI edit command on string settings, datetime -e, and
editing the boot order.  Prefilling the line with the current value
needs read -e -i, which only bash has.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
The result of read was never checked, so Ctrl-D at the first prompt
did not abort.  askpass asked for the retype and only then failed with
"Empty Passphrase, try again."

The mismatch and empty errors went to stdout, which is where the
encoded secret goes when no OUTPUT file is given.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@troglobit troglobit added the ci:skip Skip CI for this PR, started jobs are stopped. label Sep 26, 2026
@troglobit
troglobit merged commit bec0f55 into main Sep 26, 2026
14 checks passed
@troglobit
troglobit deleted the edit-fixes branch September 26, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:skip Skip CI for this PR, started jobs are stopped.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants