[Bug 3140] support a token for XDG_RUNTIME_DIR
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Fri Apr 10 18:56:06 AEST 2020
https://bugzilla.mindrot.org/show_bug.cgi?id=3140
--- Comment #2 from Darren Tucker <dtucker at dtucker.net> ---
Created attachment 3375
--> https://bugzilla.mindrot.org/attachment.cgi?id=3375&action=edit
allow environment variables in path config keywords
This adds support for shell-style ${VAR} keyword expansions in config
keywords that take paths. It applies on top of OpenBSD -current. Your
use case would be something like this in ~/.ssh/config:
RemoteForward ${XDG_RUNTIME_DIR}/S.gpg-agent
${XDG_RUNTIME_DIR}/S.gpg-agent
There's a few potential problems with this:
- the expansions are exclusively client side and I'm not sure the
server should ever do this type of expansion.
- there'a existing environment variable support in IdentityAgent and
ForwardAgent which has a different, more limited format. Right now the
patch supports both. I think we'd be better off removing the old
format since having two is potentially confusing, but that's a user
visible potentially incompatible change.
- I am unsure if this is generally worth the extra complexity and
maintenance or what the other OpenSSH maintainers will think of this.
--
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list