percent_expand
file = percent_expand(filename, "h", pw->pw_dir,
username = percent_expand(options.authorized_principals_command_user,
tmp = percent_expand(av[i],
username = percent_expand(options.authorized_keys_command_user,
tmp = percent_expand(av[i],
char *percent_expand(const char *, ...) __attribute__((__sentinel__));
host = percent_expand(options->hostname,
ret = (is_include_path ? percent_dollar_expand : percent_expand)(path,
host = percent_expand(options->hostname,
ASSERT_STRING_EQ(percent_expand("%%", "%h", "foo", NULL), "%");
ASSERT_STRING_EQ(percent_expand("%h", "h", "foo", NULL), "foo");
ASSERT_STRING_EQ(percent_expand("%h ", "h", "foo", NULL), "foo ");
ASSERT_STRING_EQ(percent_expand(" %h", "h", "foo", NULL), " foo");
ASSERT_STRING_EQ(percent_expand(" %h ", "h", "foo", NULL), " foo ");
ASSERT_STRING_EQ(percent_expand(" %a%b ", "a", "foo", "b", "bar", NULL),
chroot_path = percent_expand(tmp, "h", pw->pw_dir,
homedir = percent_expand(cp, "d", user_pw->pw_dir,
cp = percent_expand(options.hostname,
return percent_expand(str,
options.local_command = percent_expand(cp,
ret = percent_expand(tmp,
cp = percent_expand(logfile,
cp = percent_expand(logfile,
cp = percent_expand(logfile,