mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-18 20:47:53 +00:00
Remove extra '/'
On macOS, dump gives this output: % sudo zerotier-cli dump Writing dump to: /Users/brenton/Desktop//zerotier_dump.txt No reason for extra '/' in path
This commit is contained in:
parent
1bd2fecbf6
commit
a477688e51
2
one.cpp
2
one.cpp
@ -1210,7 +1210,7 @@ static int cli(int argc,char **argv)
|
||||
FSRefMakePath(&fsref, path, sizeof(path)) == noErr) {
|
||||
|
||||
} else if (getenv("SUDO_USER")) {
|
||||
sprintf((char*)path, "/Users/%s/Desktop/", getenv("SUDO_USER"));
|
||||
sprintf((char*)path, "/Users/%s/Desktop", getenv("SUDO_USER"));
|
||||
} else {
|
||||
fprintf(stdout, "%s", dump.str().c_str());
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user