git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1e3434
)
Add backtick to SHELL_CHARS.
author
Wayne Davison
<wayne@opencoder.net>
Thu, 5 Jan 2023 05:52:48 +0000
(21:52 -0800)
committer
Wayne Davison
<wayne@opencoder.net>
Thu, 5 Jan 2023 05:52:48 +0000
(21:52 -0800)
options.c
patch
|
blob
|
history
diff --git
a/options.c
b/options.c
index ded0e7a301ef69782d5b17556ad289e980ac4b56..c9c8252739f29f9454dc8505770da5e417d03763 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-2518,7
+2518,7
@@
static char SPLIT_ARG_WHEN_OLD[1];
**/
char *safe_arg(const char *opt, const char *arg)
{
-#define SHELL_CHARS "!#$&;|<>(){}\"' \t\\"
+#define SHELL_CHARS "!#$&;|<>(){}\"'
`
\t\\"
#define WILD_CHARS "*?[]" /* We don't allow remote brace expansion */
BOOL is_filename_arg = !opt;
char *escapes = is_filename_arg ? SHELL_CHARS : WILD_CHARS SHELL_CHARS;