Skip to content

Commit

Permalink
Remove extra '/'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bostick committed Nov 6, 2023
1 parent 1bd2fec commit a477688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion one.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a477688

Please sign in to comment.