diff options
| author | Johannes Sixt <j6t@kdbg.org> | 2025-03-17 20:36:04 +0100 |
|---|---|---|
| committer | Taylor Blau <me@ttaylorr.com> | 2025-05-23 17:03:30 -0400 |
| commit | b966b738e1923badc788b9111cc81653b50ff164 (patch) | |
| tree | b8ee1c60fab44e178e250c552927410f0cf88755 /commit-slab.h | |
| parent | gitk: include y coord in recorded sash position (diff) | |
| download | git-b966b738e1923badc788b9111cc81653b50ff164.tar.gz git-b966b738e1923badc788b9111cc81653b50ff164.zip | |
gitk: treat file names beginning with "|" as relative paths
The Tcl 'open' function has a vary wide interface. It can open files as
well as pipes to external processes. The difference is made only by the
first character of the file name: if it is "|", an process is spawned.
We have a number of calls of Tcl 'open' that take a file name from the
environment in which Gitk is running. Be prepared that insane values are
injected. In particular, when we intend to open a file, do not mistake
a file name that happens to begin with "|" as a request to run a process.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'commit-slab.h')
0 files changed, 0 insertions, 0 deletions
