mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-15 11:36:54 +02: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
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue