keygen: replace hardcoded path with sysconf(sub)dir

This commit is contained in:
Koichiro Iwao
2024-12-28 22:21:14 +09:00
parent 75736f4853
commit 981ceadd1f
+1 -1
View File
@@ -463,7 +463,7 @@ key_gen(const char *path_and_file_name)
static int
key_gen_auto(void)
{
return key_gen("/etc/xrdp/rsakeys.ini");
return key_gen(XRDP_CFG_PATH "/rsakeys.ini");
}
/*****************************************************************************/