Commit 2aeb448
gitk: sanitize 'open' arguments: simple commands, readable and writable
As in the previous commits, introduce a function that sanitizes
arguments and also keeps the returned file handle writable to pass
data to stdin.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Taylor Blau <me@ttaylorr.com>1 parent 42a64b4 commit 2aeb448
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
| |||
4897 | 4904 | | |
4898 | 4905 | | |
4899 | 4906 | | |
4900 | | - | |
4901 | | - | |
| 4907 | + | |
| 4908 | + | |
4902 | 4909 | | |
4903 | 4910 | | |
4904 | 4911 | | |
| |||
0 commit comments