mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-18 07:08:16 +00:00
PATH_MAX is not defined on some Linux systems.
This commit is contained in:
2
one.cpp
2
one.cpp
@ -1171,7 +1171,7 @@ static int cli(int argc,char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
close(sock);
|
close(sock);
|
||||||
char cwd[PATH_MAX];
|
char cwd[16384];
|
||||||
getcwd(cwd, sizeof(cwd));
|
getcwd(cwd, sizeof(cwd));
|
||||||
sprintf(cwd, "%s%szerotier_dump.txt", cwd, ZT_PATH_SEPARATOR_S);
|
sprintf(cwd, "%s%szerotier_dump.txt", cwd, ZT_PATH_SEPARATOR_S);
|
||||||
fprintf(stdout, "Writing dump to: %s\n", cwd);
|
fprintf(stdout, "Writing dump to: %s\n", cwd);
|
||||||
|
Reference in New Issue
Block a user