1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Make x11_get_auth_from_authfile take a Filename.

I think the only reason it currently takes a plain string is because
its interesting caller (in unix/x11.c) has just constructed a string
out of an environment variable, and it seemed like the path of least
effort not to bother wrapping it into a proper Filename. But when
Filename on Windows becomes more interesting, we'll need it to take
the full version.
This commit is contained in:
Simon Tatham
2023-05-28 11:27:09 +01:00
parent 1adcb200f7
commit 85680c77c0
4 changed files with 10 additions and 7 deletions

View File

@ -11,9 +11,9 @@
void platform_get_x11_auth(struct X11Display *disp, Conf *conf)
{
char *xauthpath = conf_get_filename(conf, CONF_xauthfile)->path;
if (xauthpath[0])
x11_get_auth_from_authfile(disp, xauthpath);
Filename *xauthfn = conf_get_filename(conf, CONF_xauthfile);
if (!filename_is_null(xauthfn))
x11_get_auth_from_authfile(disp, xauthfn);
}
const bool platform_uses_x11_unix_by_default = false;