summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/xdvik/string-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/xdvik/string-utils.c b/Build/source/texk/xdvik/string-utils.c
index 769b2ac8ccc..a09a1b77762 100644
--- a/Build/source/texk/xdvik/string-utils.c
+++ b/Build/source/texk/xdvik/string-utils.c
@@ -636,7 +636,7 @@ canonicalize_path(const char *path)
}
/* Escape all of the following characters in str:
- ` \ ; ( )
+ ` \ ; ( ) &
making it safe to pass str to a shell. Return result in a newly
allocated string, which the caller is responsible to free() after use.
*/
@@ -653,6 +653,7 @@ shell_escape_string(const char *str)
|| *src_ptr == '`'
|| *src_ptr == '('
|| *src_ptr == ')'
+ || *src_ptr == '&'
|| *src_ptr == ';') {
#if 0
/* only if not yet escaped? */