Commit de8882d
fix: eliminate nested bash layer in chroot command execution
Docker CMD passes commands as ['/bin/bash', '-c', 'command_string'].
Previously, this was written to the chroot script file via printf '%q',
creating an extra bash -c wrapper. This caused /proc/self/exe to resolve
as /bin/bash for runtimes like Java and .NET that check their process
identity. Now the command string is written directly when the standard
bash -c pattern is detected.
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>1 parent 9a40e46 commit de8882d
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | | - | |
349 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
350 | 364 | | |
351 | 365 | | |
352 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
0 commit comments