We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5263661 commit 5374994Copy full SHA for 5374994
options.c
@@ -2510,7 +2510,7 @@ char *safe_arg(const char *opt, const char *arg)
2510
char *ret;
2511
if (!protect_args && old_style_args < 2 && (!old_style_args || (!is_filename_arg && opt != SPLIT_ARG_WHEN_OLD))) {
2512
const char *f;
2513
- if (!trust_sender_args && *arg == '~'
+ if (*arg == '~' && is_filename_arg && !am_sender && !trust_sender_args
2514
&& ((relative_paths && !strstr(arg, "/./"))
2515
|| !strchr(arg, '/'))) {
2516
extras++;
0 commit comments