mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
add error check to getcwd
This commit is contained in:
parent
515ba33902
commit
83dace40c1
1 changed files with 5 additions and 1 deletions
|
@ -2196,7 +2196,11 @@ read_config(const char *config_file, const char *log_file)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
getcwd(path, MAX_PATH);
|
if (!getcwd(path, MAX_PATH))
|
||||||
|
{
|
||||||
|
log_fatal("Cannot getcwd (%s). Aborting.", errno);
|
||||||
|
abort();
|
||||||
|
}
|
||||||
strcat(path, "/pool.conf");
|
strcat(path, "/pool.conf");
|
||||||
if (access(path, R_OK) != 0)
|
if (access(path, R_OK) != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue