fix(rbw): symlink system pinentry to headless pinentry-rbw #14

Merged
brad merged 1 commit from fix/rbw-pinentry-symlink into main 2026-02-16 14:41:38 -08:00
Owner

rbw ignores the pinentry config setting and calls /usr/bin/pinentry directly. This caused "Inappropriate ioctl for device" errors in containers since pinentry-curses requires a TTY.

Fix: symlink /usr/bin/pinentry -> /usr/local/bin/pinentry-rbw so rbw uses our headless script regardless of config.

Also improved pinentry-rbw script:

  • Use IFS= read -r for safer line reading
  • Handle BYE/QUIT commands explicitly
  • Use $HOME explicitly for path resolution

Tested in research agent container - rbw list and rbw get now work correctly.

rbw ignores the pinentry config setting and calls /usr/bin/pinentry directly. This caused "Inappropriate ioctl for device" errors in containers since pinentry-curses requires a TTY. **Fix:** symlink /usr/bin/pinentry -> /usr/local/bin/pinentry-rbw so rbw uses our headless script regardless of config. Also improved pinentry-rbw script: - Use `IFS= read -r` for safer line reading - Handle BYE/QUIT commands explicitly - Use $HOME explicitly for path resolution Tested in research agent container - `rbw list` and `rbw get` now work correctly.
rbw ignores the pinentry config setting and calls /usr/bin/pinentry
directly. This caused 'Inappropriate ioctl for device' errors in
containers since pinentry-curses requires a TTY.

Fix: symlink /usr/bin/pinentry -> /usr/local/bin/pinentry-rbw so
rbw uses our headless script regardless of config.

Also improved pinentry-rbw script:
- Use 'IFS= read -r' for safer line reading
- Handle BYE/QUIT commands explicitly
- Use $HOME explicitly for path resolution
brad merged commit 560cc3907e into main 2026-02-16 14:41:38 -08:00
brad deleted branch fix/rbw-pinentry-symlink 2026-02-16 14:41:38 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
commune/sandbox!14
No description provided.