Skip to content

Commit 3690bfe

Browse files
committed
ipn/ipnlocal: fix cert fetching on macOS GUI platforms
And clarify the directory they get written to when under the sandbox. Fixes tailscale#3667 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
1 parent 28bf53f commit 3690bfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/tailscale/cli/cert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func runCert(ctx context.Context, args []string) error {
108108
if version.IsMacSysExt() {
109109
dir = "io.tailscale.ipn.macsys"
110110
}
111-
printf("Warning: the macOS CLI runs in a sandbox; this binary's filesystem writes go to $HOME/Library/Containers/%s\n", dir)
111+
printf("Warning: the macOS CLI runs in a sandbox; this binary's filesystem writes go to $HOME/Library/Containers/%s/Data\n", dir)
112112
}
113113
if certArgs.certFile != "" {
114114
certChanged, err := writeIfChanged(certArgs.certFile, certPEM, 0644)

ipn/ipnlocal/local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,7 +2121,7 @@ func (b *LocalBackend) TailscaleVarRoot() string {
21212121
return b.varRoot
21222122
}
21232123
switch runtime.GOOS {
2124-
case "ios", "android":
2124+
case "ios", "android", "darwin":
21252125
dir, _ := paths.AppSharedDir.Load().(string)
21262126
return dir
21272127
}

0 commit comments

Comments
 (0)