mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 04:46:46 -05:00
Use eaccess() instead of access()
This commit is contained in:
parent
1f0136f2e5
commit
81995ccc8d
5 changed files with 54 additions and 36 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue