Commit 06b5fc2
committed
Fix inherited env vars overriding bootstrap config and Windows fd resolution
Bug 1: Strip T3CODE_MODE, T3CODE_PORT, T3CODE_HOME, T3CODE_NO_BROWSER,
and T3CODE_AUTH_TOKEN from the child process environment in the desktop
launcher. These values are now delivered exclusively via the bootstrap
pipe; inheriting them from the parent shell allowed stray env vars to
silently override the dynamically generated values (e.g. authToken,
port), breaking WebSocket auth.
Bug 2: On Windows there is no /dev/fd/ or /proc/self/fd/ virtual
filesystem. Return undefined from resolveFdPath on win32 and fall back
to using the inherited fd number directly, which Node's fs APIs accept
natively.1 parent 20c0564 commit 06b5fc2
2 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
952 | 959 | | |
953 | 960 | | |
954 | 961 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | | - | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
120 | 127 | | |
121 | 128 | | |
0 commit comments