Use eaccess() instead of access()

This commit is contained in:
Andrea Mazzoleni 2026-05-21 12:21:36 +02:00
parent 1f0136f2e5
commit 81995ccc8d
5 changed files with 54 additions and 36 deletions

View file

@ -110,6 +110,21 @@ static void exedir_init(void)
slash[1] = 0;
}
void os_default_conf(char* conf, size_t conf_size, const char* argv0)
{
char* slash;
pathimport(conf, conf_size, argv0);
slash = strrchr(conf, '/');
if (slash) {
slash[1] = 0;
pathcat(conf, conf_size, PACKAGE ".conf");
} else {
pathcpy(conf, conf_size, PACKAGE ".conf");
}
}
void os_init(int opt)
{
HMODULE ntdll, kernel32;