installed with pkg install rlwrap
rlwrap creates /tmp/rlwrap.debug
When switching users I then get:
rlwrap: error: Cannot open debug log /tmp/rlwrap.debug for appending: Permission denied
It seems like some debug related piece of code is not properly #ifdef DEBUG ... #endif enclosed.
Partially fixed also here: https://github.com/hanslub42/rlwrap/commit/5aa2609a7e4c76f37c721110bcec312d3efa7e2d
but this fix is not complete.
A commit in branch main references this bug:
Author: Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2021-06-16 22:01:40 +0000
Commit: Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2021-06-16 22:05:43 +0000
devel/rlwrap: Update to 0.45.2
- rlwrap enables bracketed-paste when instructed to do so by .inputrc,
but would then never disable it at exit.
- rlwrap -z (i.e. rlwrap when using a filter) would still open
/tmp/rlwrap.debug after forking the filter command, preventing other
users from running it afterwards
devel/rlwrap/Makefile | 7 +++++--
devel/rlwrap/distinfo | 6 +++---
devel/rlwrap/pkg-plist | 6 +++++-
3 files changed, 13 insertions(+), 6 deletions(-)
It'd be nice to upstream this change. Julian, would you mind doing that?
0.45.2 is already fixed in upstream.
Fixed in upstream version 0.45.2