By moving expand_filename() from auth.c into tildexpand.c, '%' substitution can be used but any programs that use tilde_expand_filename() as opposed to just sshd. The reason for this was to allow for IdentityFile inclusion like as follows: [..ssh_config..] IdentityFile /var/spool/ssh/%u/idenity IdentityFile ~/.ssh/identity
Created attachment 18 [details] patch to tildexpand.c and auth.c to allow '%' substitution everywhere
you leak memory every time you call expand_filename(). so the patch expands ~ first and then % ? hm, shouldn't there be only just _one_ interface.
There is now (OpenBSD -current 20050606) a misc.c:percent_expand() function that you can use for things like this. Patches welcome.
Closing as duplicate: this bug has been around longer, but Bug #1159 has a patch :) *** This bug has been marked as a duplicate of bug 1159 ***
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.